Openssl 有谁能告诉我为什么“X509_verify”函数返回-1。?

Openssl 有谁能告诉我为什么“X509_verify”函数返回-1。?,openssl,certificate,ssl-certificate,x509certificate,signature,Openssl,Certificate,Ssl Certificate,X509certificate,Signature,我正在使用openssl 0.9.8g验证证书签名。API X509_verify根据文档返回0/1。但是我得到了-1作为返回值。为什么我得到-1作为返回值?需要添加算法详细信息。。 调用这些函数以添加算法列表 ERR_load_BIO_strings(); ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); OpenSSL_add_all_ciphers(); OpenSSL_add_all_digests(); 返回-1,因为

我正在使用openssl 0.9.8g验证证书签名。API X509_verify根据文档返回0/1。但是我得到了-1作为返回值。为什么我得到-1作为返回值?

需要添加算法详细信息。。 调用这些函数以添加算法列表

ERR_load_BIO_strings();
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests(); 

返回-1,因为它无法找到算法obj_ID

需要添加算法详细信息。。 调用这些函数以添加算法列表

ERR_load_BIO_strings();
ERR_load_crypto_strings();
OpenSSL_add_all_algorithms();
OpenSSL_add_all_ciphers();
OpenSSL_add_all_digests(); 
返回-1,因为它无法找到算法obj_ID