diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-04-14 22:00:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-04-14 22:00:36 +0000 |
commit | 0b839c4f770eb32a0910462e2bf5089cafa3259f (patch) | |
tree | ec714a04ec7c1c84ce9483d1ed588b45efbaa8db /lib | |
parent | 1d4fd1fcae74829453649a60fe11e920e2c27750 (diff) |
return the same error for the sslv2 "certificate verify failed" code
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index c374d7905..6a7f2aedb 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -905,8 +905,13 @@ Curl_SSLConnect(struct connectdata *conn) thread's error queue and removes the entry. */ - - if(0x14090086 == detail) { + switch(detail) { + case 0x1407E086: + /* 1407E086: + SSL routines: + SSL2_SET_CERTIFICATE: + certificate verify failed */ + case 0x14090086: /* 14090086: SSL routines: SSL3_GET_SERVER_CERTIFICATE: @@ -914,8 +919,7 @@ Curl_SSLConnect(struct connectdata *conn) failf(data, "SSL certificate problem, verify that the CA cert is OK"); return CURLE_SSL_CACERT; - } - else { + default: /* detail is already set to the SSL error above */ failf(data, "SSL: %s", ERR_error_string(detail, error_buffer)); /* OpenSSL 0.9.6 and later has a function named |