[openssl-users] How to parse DER encoded x509 attributes?

Libor Chocholaty ossl at mts.cz
Wed Nov 15 12:26:20 UTC 2017


Hello, 

I would like to parse DER encoded x509 attributes and have no clue how
to use d2i_ASN1_SET_OF_X509_ATTRIBUTE. There are params that cannot find
what to pass like free_func. 

I am trying to uderstand by collecting pieces of known code, looking
into openssl sources but... 

PKCS7_SIGNER_INFO *p7si = PKCS7_SIGNER_INFO_new();
d2i_ASN1_SET_OF_X509_ATTRIBUTE(&p7si->auth_attr, &der_data,
der_data_length, d2i_X509_ATTRIBUTE, free_func, V_ASN1_SET,
V_ASN1_UNIVERSAL); 

Could somebody help how to do it or give a link to some useful
documentation?
Search internet looks completely not useful in this topic... or do not
know how to ask... 

Regards,
Libor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20171115/26b250b9/attachment-0001.html>


More information about the openssl-users mailing list