mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:03:36 +03:00
parent
75955c0851
commit
0afb52a0cd
16 changed files with 182 additions and 168 deletions
|
|
@ -346,7 +346,7 @@ gnutls_set_ssl_version_min_max(struct Curl_easy *data,
|
|||
if(ssl_version_max < CURL_SSLVERSION_MAX_TLSv1_3) {
|
||||
failf(data, "QUIC needs at least TLS version 1.3");
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
}
|
||||
*prioritylist = QUIC_PRIORITY;
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1350,6 +1350,7 @@ static CURLcode mbed_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
if(nread > 0)
|
||||
*pnread = (size_t)nread;
|
||||
else {
|
||||
char errorbuf[128];
|
||||
CURL_TRC_CF(data, cf, "mbedtls_ssl_read(len=%zu) -> -0x%04X",
|
||||
buffersize, -nread);
|
||||
switch(nread) {
|
||||
|
|
@ -1369,14 +1370,12 @@ static CURLcode mbed_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
|
||||
result = CURLE_OK;
|
||||
break;
|
||||
default: {
|
||||
char errorbuf[128];
|
||||
default:
|
||||
mbedtls_strerror(nread, errorbuf, sizeof(errorbuf));
|
||||
failf(data, "ssl_read returned: (-0x%04X) %s", -nread, errorbuf);
|
||||
result = CURLE_RECV_ERROR;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -868,9 +868,9 @@ CURLcode Curl_wssl_setup_x509_store(struct Curl_cfilter *cf,
|
|||
}
|
||||
}
|
||||
else {
|
||||
/* We never share the CTX's store, use it. */
|
||||
WOLFSSL_X509_STORE *store = wolfSSL_CTX_get_cert_store(wssl->ssl_ctx);
|
||||
result = wssl_populate_x509_store(cf, data, store, wssl);
|
||||
/* We never share the CTX's store, use it. */
|
||||
WOLFSSL_X509_STORE *store = wolfSSL_CTX_get_cert_store(wssl->ssl_ctx);
|
||||
result = wssl_populate_x509_store(cf, data, store, wssl);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
|
@ -1389,8 +1389,8 @@ CURLcode Curl_wssl_ctx_init(struct wssl_ctx *wctx,
|
|||
}
|
||||
}
|
||||
else {
|
||||
trying_ech_now = 1;
|
||||
infof(data, "ECH: ECHConfig from command line");
|
||||
trying_ech_now = 1;
|
||||
infof(data, "ECH: ECHConfig from command line");
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue