Reputation: 75
I've searched high and low and have not found an explanation of this problem.
I'm running the following
int ret = 0;
ERR_clear_error();
ret = SSL_CTX_load_verify_locations( ctx_, "f:\\50\\server\\SSLCACertificateFile.pem", NULL );
I get a ret value of 1, which is an error. I then check the error queue.
int err = SSL_get_error( con_, ret );
The err value returned is zero. That value is associated with the error: SSL_ERROR_NONE
.
SSL_ERROR_NONE
means that the function actually succeeded.
Can I trust that the SSL_CTX_load_verify_locations
function really did run successfully?
Upvotes: 2
Views: 4177
Reputation: 1773
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.
Upvotes: 2