Hello,
I think there is a bug in EVP_get_digestbyname when argument passed is SHA
because it returns NULL. It only happens to me with SHA, I try with
others algorithms like MD5 and SHA1 and no problem.
Regards,
Fernando Moya
I found the error. At the end, the problem was a bad definition of
Sub_seq100. I have fixed it and ASN1_CHOICE works fine now. Thanks to all.
Regards.
Fernando Moya Bernal.
University of Malaga. Spain.
Hi, I am having problems with CHOICE in the following ASN.1 sequence
call d2i_Seq1 with DER output from i2d_Seq1, it
returns NULL. I think it could be an incorrect definition of
ASN1_CHOICE(Seq1).
Does Anybody know what is wrong?
Thanks in advance.
Fernando Moya Bernal.
University of Malaga. Spain
this IMPLICIT tag in DER output?
Thanks in advance.
Fernando Moya Bernal.
University of Malaga. Spain.
__
OpenSSL Project http://www.openssl.org
Development Mailing List
So instead of doing:
ASN1_IMP_OPT(Seq2, Sub_field2, GENERAL_NAMES,1),
do:
ASN1_IMP_SEQUENCE_OF_OPT(Seq2, Sub_field2, GENERAL_NAME,1),
Steve
It works ok. Thanks a lot.
Fernando Moya Bernal.
University of Malaga