[openssl-users] Fwd: CMS_NOATTR and CMS_SignerInfo_sign

2017-01-16 Thread Luis Bernardo
Hello, I have been unable to prevent CMS_SignerInfo_sign() to add a signing time attribute even though I used CMS_NOATTR. I think the issue is here: if (CMS_signed_get_attr_by_NID(si, NID_pkcs9_signingTime, -1) < 0) { if (!cms_add1_signingTime(si, NULL)) goto err; } This is around line 648 of cr

how to access CMS_SignerInfo struct

2011-05-28 Thread Luis Bernardo
Hello, I need to access the signature field of a CMS_SignerInfo structure. In fact I just need to get signature->length and signature->data. I can do that if I include cms_lcl.h directly but that is not the way it should be done... Is this possible to do? I see that there was a similar ques