Hi,

> If you use the CMS routines instead it should work OK.

Yes, works fine with openssl-1.0.0, thx!

It took me a while to to figure it out due to the lack of samples, so 
attached is a basic sample program to parse the contents of an SOD file
(a CMS-based file in the RFID chip on e-passports).

(To compile with VS: cl -I..\inc32 parseSOD.c ..\inc32\openssl\applink.c
..\out32dll\libeay32.lib)

Best regards,
Stef

> -----Original Message-----
> From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org]
> On Behalf Of Dr. Stephen Henson
> Sent: maandag 22 maart 2010 13:54
> To: openssl-users@openssl.org
> Subject: Re: PKCS7 - SubjectKeyIdentifier CHOICE in SignerIdentifier
fails?
> 
> On Mon, Mar 22, 2010, Stef Hoeben wrote:
> 
> > Hello,
> >
> >         subjectKeyIdentifier [0] SubjectKeyIdentifier }
> >
> > Could it be that the SubjectKeyIdentifier CHOICE isn't supported
here,
> > that the parser expects a IssuerAndSerialNumber only?
> >
> 
> Yes the SKID option is not part of the PKCS#7 standard so it is
illegal in a
> PKCS#7 file. If you use the CMS routines instead it should work OK.
> 
> 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
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org

Attachment: parseSOD.c
Description: parseSOD.c

Reply via email to