mirror of
https://github.com/curl/curl.git
synced 2025-09-14 16:12:43 +03:00
return the same error for the sslv2 "certificate verify failed" code
This commit is contained in:
parent
1d4fd1fcae
commit
0b839c4f77
12
lib/ssluse.c
12
lib/ssluse.c
|
@ -905,8 +905,13 @@ Curl_SSLConnect(struct connectdata *conn)
|
||||||
thread's error queue and removes the
|
thread's error queue and removes the
|
||||||
entry. */
|
entry. */
|
||||||
|
|
||||||
|
switch(detail) {
|
||||||
if(0x14090086 == detail) {
|
case 0x1407E086:
|
||||||
|
/* 1407E086:
|
||||||
|
SSL routines:
|
||||||
|
SSL2_SET_CERTIFICATE:
|
||||||
|
certificate verify failed */
|
||||||
|
case 0x14090086:
|
||||||
/* 14090086:
|
/* 14090086:
|
||||||
SSL routines:
|
SSL routines:
|
||||||
SSL3_GET_SERVER_CERTIFICATE:
|
SSL3_GET_SERVER_CERTIFICATE:
|
||||||
|
@ -914,8 +919,7 @@ Curl_SSLConnect(struct connectdata *conn)
|
||||||
failf(data,
|
failf(data,
|
||||||
"SSL certificate problem, verify that the CA cert is OK");
|
"SSL certificate problem, verify that the CA cert is OK");
|
||||||
return CURLE_SSL_CACERT;
|
return CURLE_SSL_CACERT;
|
||||||
}
|
default:
|
||||||
else {
|
|
||||||
/* detail is already set to the SSL error above */
|
/* detail is already set to the SSL error above */
|
||||||
failf(data, "SSL: %s", ERR_error_string(detail, error_buffer));
|
failf(data, "SSL: %s", ERR_error_string(detail, error_buffer));
|
||||||
/* OpenSSL 0.9.6 and later has a function named
|
/* OpenSSL 0.9.6 and later has a function named
|
||||||
|
|
Loading…
Reference in New Issue
Block a user