projects
/
curl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ac643
)
vtls_openssl: improve PKCS#12 load failure error message
author
Matthew Hall
<matthew.hall@threatstream.com>
Wed, 25 Mar 2015 00:36:32 +0000
(17:36 -0700)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 13 Apr 2015 20:25:04 +0000
(22:25 +0200)
lib/vtls/openssl.c
patch
|
blob
|
history
diff --git
a/lib/vtls/openssl.c
b/lib/vtls/openssl.c
index b4fd38c13d5a387baceca7bc32e23f351fb84d9a..e072026931fb8ad4bc4dde0ecdab973a61662c24 100644
(file)
--- a/
lib/vtls/openssl.c
+++ b/
lib/vtls/openssl.c
@@
-514,7
+514,9
@@
int cert_stuff(struct connectdata *conn,
PKCS12_free(p12);
if(SSL_CTX_use_certificate(ctx, x509) != 1) {
- failf(data, SSL_CLIENT_CERT_ERR);
+ failf(data,
+ "could not load PKCS12 client certificate, OpenSSL error %s",
+ ERR_error_string(ERR_get_error(), NULL) );
goto fail;
}