> Alex Cosic wrote:
> 
> Hi,
> I have trying to solve very simple problem (unfortunately I  am not
> able to install debug Opnssl libraries) and  it looks like:
> 
> //k = OBJ_obj2nid(x509CheckingCert->sig_alg->algorithm);
> test= X509_check_private_key(x509,publicKey);
> test = X509_verify(x509CheckingCert, publicKey);
> 
> I have created and filled with data x509 structure and  than store it
> into pem files, print it etc. The X509 when printing was OK with
> signature and its type. When I run the above code the program crashed
> at some point indicating that it stops at a_verify.c at  the line 83,
> from where I could see that it did not recognise the the type of
> digest algorithm. The number k is 18. So it should recognise md5().
> Any suggestion?

You need to load all algorithms with SSLeay_add_all_algorithms(), this
adds the algorithms to a table.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to