projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73eb996
)
ssluse: improved error message on SSL_CTX_new failures
author
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Wed, 2 Feb 2011 17:25:57 +0000
(18:25 +0100)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 2 Feb 2011 17:25:57 +0000
(18:25 +0100)
"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.
lib/ssluse.c
patch
|
blob
|
history
diff --git
a/lib/ssluse.c
b/lib/ssluse.c
index
ef60e5e
..
121ba2b
100644
(file)
--- a/
lib/ssluse.c
+++ b/
lib/ssluse.c
@@
-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;
}