On Fri, Jan 29, 2010, karthik.chama...@infineon.com wrote:

> Hi,
> 
> I am trying to parse a verisign certificate in Openssl.
> 
> But, this fails because of a check in openssl.
> If the tag is set to -1, then it is set to Universal as below.
>                 /* If no IMPLICIT tagging set to SEQUENCE, UNIVERSAL */
>                 if(tag == -1) {
>                         tag = V_IFX_TLS_ASN1_SEQUENCE;
>                         aclass = V_ASN1_UNIVERSAL;
>                 }
> 
> When the certificate is parsed, in ASN1_get_object, it checks whether it is 
> V_ASN1_PRIMITIVE_TAG.
> It is not and so it fails.
> 
> I would like to know how to proceed with this.
> 

It sounds like you haven't got a certificate but an certificate that has an
IMPLICIT tag on it. If you write an appopriate ASN1 module that is handled
automatically.

This is an openssl-users question btw.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to