[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtasn1 fail to process CHOICE inside CHOICE syntax
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: libtasn1 fail to process CHOICE inside CHOICE syntax |
Date: |
Wed, 26 Feb 2014 19:26:15 +0100 |
On Wed, Feb 26, 2014 at 9:20 AM, d_bulavski <address@hidden> wrote:
> Package: libtasn1
> Version: 3.4
> asn1_der_decoding() fails to process DER-encoded data for ASN.1 syntax
> with CHOICE inside CHOICE.
>
> Syntax example from RFC 5055.
> PKCReference ::= CHOICE {
> cert [0] Certificate,
> pkcRef [1] SCVPCertID }
>
> ACReference ::= CHOICE {
> attrCert [2] AttributeCertificate,
> acRef [3] SCVPCertID }
>
> CertReference::= CHOICE {
> pkc PKCReference,
> ac ACReference }
>
> asn1_der_decoding() returns ASN1_DER_ERROR for DER data encoded
> with asn1_der_coding().
Hello,
It would really speed things up if you could send a small program
(with the DER data in question) that reproduces the issue. Are the DER
data encoded right?
regards,
Nikos