i solved the problem. it should add SSL_library_init(); in the begining of the code.
thank you Dr. Stephen Henson wrote: > > On Wed, Sep 29, 2010, shizumi wrote: > >> >> Hi all, >> >> i try to do the ocsp verification in my application by using >> openssl-0.9.8o, >> but when call OCSP_basic_verify, it always return me -1. i test to print >> the >> error message. and it show me this line >> >> 4616:error:0D0C50A1:lib(13):func(197):reason(161):.\crypto\asn1\a_verify.c:146: >> 4616:error:27069075:lib(39):func(105):reason(117):.\crypto\ocsp\ocsp_vfy.c:98: >> >> this certificate can successfully verify in openssl application. >> >> attached is my sample code. >> http://old.nabble.com/file/p29845022/file.cpp >> file.cpp >> can anyone help to solve my problem? > > http://www.openssl.org/support/faq.html#PROG7 > > and > > http://www.openssl.org/support/faq.html#PROG8 > > Steve. > -- > Dr Stephen N. Henson. OpenSSL project core developer. > Commercial tech support now available see: http://www.openssl.org > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager majord...@openssl.org > > -- View this message in context: http://old.nabble.com/%28Help%29-Verification-using-OCSP-tp29845022p29854243.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org