SSL_CTX_load_verify_locations 失败 SSL_ERROR_NONE

SSL_CTX_load_verify_locations Fails with SSL_ERROR_NONE

我找遍了高低都没有找到这个问题的解释。

我运行关注以下

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.