我到处搜索,但没有找到这个问题的解释。
我正在运行以下命令
int ret = 0;
ERR_clear_error();
ret = SSL_CTX_load_verify_locations( ctx_, "f:\\50\\server\\SSLCACertificateFile.pem", NULL );
我得到的 ret 值为 1,这是一个错误。然后我检查错误队列。
int err = SSL_get_error( con_, ret );
返回的错误值为零。该值与错误相关:SSL_ERROR_NONE
.
SSL_ERROR_NONE
意味着该功能实际上成功了。
我可以相信SSL_CTX_load_verify_locations
函数真的运行成功了吗?
男子 SSL_CTX_load_verify_locations
RETURN VALUES
The following return values can occur:
0 The operation failed because CAfile and CApath are NULL or the processing at one of the locations specified failed. Check the error stack to find out the
reason.
1 The operation succeeded.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)