Hello
I have a problem with the order of the SEQUENCE in the signed attributes:
I read with the function
cms = d2i_CMS_bio(in, NULL);
a signed file that has the signed attributes in this order:
- content type
- message digest
- signing certificate v2
- signing Time
when I write it in output with the function:
i2d_CMS_bio (or i2d_CMS_bio_stream)
the output file presents ALWAYS the SEQUENCE in this order
- content type
- signing Time
- message digest
- signing certificate v2
This reordering invalidates the hash of the structure.
Is it possible to hold the same order present in input?
Thanks in advance
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]