Re: cryptCreateSignatureEx segfaults on ASN.1 objects; what am I doing wrong?

Peter Gutmann <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Paul Parker <[email protected]> writes:

>I'm using cryptAddCertExtension to add extensions to CRYPT_FORMAT_CMS, by
>setting properties of a  CRYPT_CERTTYPE_CMS_ATTRIBUTES certificate and
>feeding that as the last parameter to cryptCreateSignatureEx.  However,
>cryptCreateSignatureEx segfaults if I populate the certificate extension with
>ASN.1 data.

Thanks for the (detailed :-) info.  To fix this, in cert/ext_wr.c, line 753,
change:

  if( checkAttributeProperty( attributeListPtr,
                              ATTRIBUTE_PROPERTY_BLOBATTRIBUTE ) )

to:

  if( checkAttributeProperty( currentAttributePtr,
                              ATTRIBUTE_PROPERTY_BLOBATTRIBUTE ) )

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.