本文介绍了SSL_CTX_load_verify_locations由于SSL_ERROR_NONE而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我搜索了高低,没有找到这个问题的解释。
I've searched high and low and have not found an explanation of this problem.
我正在运行以下
int ret = 0;
ERR_clear_error();
ret = SSL_CTX_load_verify_locations( ctx_, "f:\\50\\server\\SSLCACertificateFile.pem", NULL );
我得到ret值为1,这是一个错误。然后检查错误队列。
I get a ret value of 1, which is an error. I then check the error queue.
int err = SSL_get_error( con_, ret );
返回的err值为零。该值与错误相关联: SSL_ERROR_NONE
。
The err value returned is zero. That value is associated with the error: SSL_ERROR_NONE
.
SSL_ERROR_NONE $ c $
SSL_ERROR_NONE
means that the function actually succeeded.
我可以相信 SSL_CTX_load_verify_locations
函数真的成功运行吗? / p>
Can I trust that the SSL_CTX_load_verify_locations
function really did run successfully?
推荐答案
人SSL_CTX_load_verify_locations
man 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.
这篇关于SSL_CTX_load_verify_locations由于SSL_ERROR_NONE而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!