1
0
mirror of https://github.com/moparisthebest/curl synced 2024-10-31 15:45:12 -04:00

ssluse: improved error message on SSL_CTX_new failures

"SSL: couldn't create a context" really isn't that helpful, now it'll
also extract an explanation from OpenSSL and append to the right.
This commit is contained in:
Bjoern Sikora 2011-02-02 18:25:57 +01:00 committed by Daniel Stenberg
parent 73eb9965cf
commit 0e9626ba39

View File

@ -1463,7 +1463,8 @@ ossl_connect_step1(struct connectdata *conn,
connssl->ctx = SSL_CTX_new(req_method);
if(!connssl->ctx) {
failf(data, "SSL: couldn't create a context!");
failf(data, "SSL: couldn't create a context: %s",
ERR_error_string(ERR_peek_last_error(), NULL));
return CURLE_OUT_OF_MEMORY;
}