<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hello,</p>
<p>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.</p>
<p>I am trying to uderstand by collecting pieces of known code, looking into openssl sources but...</p>
<p>PKCS7_SIGNER_INFO *p7si = PKCS7_SIGNER_INFO_new();<br />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);</p>
<p>Could somebody help how to do it or give a link to some useful documentation?<br />Search internet looks completely not useful in this topic... or do not know how to ask...</p>
<p>Regards,<br />Libor</p>
<div> </div>
</body></html>