mirror of
https://github.com/curl/curl.git
synced 2026-05-30 02:47:28 +03:00
fixes
This commit is contained in:
parent
a98bfa374a
commit
486bdf90d8
2 changed files with 5 additions and 4 deletions
|
|
@ -1230,7 +1230,7 @@ static CURLcode mbed_send(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
}
|
||||
else {
|
||||
CURL_TRC_CF(data, cf, "mbedtls_ssl_write(len=%zu) -> -0x%04X",
|
||||
len, -nwritten);
|
||||
len, (unsigned int)-nwritten);
|
||||
switch(nwritten) {
|
||||
#ifdef MBEDTLS_SSL_PROTO_TLS1_3
|
||||
case MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET:
|
||||
|
|
@ -1391,7 +1391,7 @@ static CURLcode mbed_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
else {
|
||||
char errorbuf[128];
|
||||
CURL_TRC_CF(data, cf, "mbedtls_ssl_read(len=%zu) -> -0x%04X",
|
||||
buffersize, -nread);
|
||||
buffersize, (unsigned int)-nread);
|
||||
switch(nread) {
|
||||
#ifdef MBEDTLS_SSL_SESSION_TICKETS
|
||||
case MBEDTLS_ERR_SSL_RECEIVED_NEW_SESSION_TICKET:
|
||||
|
|
@ -1411,7 +1411,8 @@ static CURLcode mbed_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
break;
|
||||
default:
|
||||
mbedtls_strerror(nread, errorbuf, sizeof(errorbuf));
|
||||
failf(data, "ssl_read returned: (-0x%04X) %s", -nread, errorbuf);
|
||||
failf(data, "ssl_read returned: (-0x%04X) %s", (unsigned int)-nread,
|
||||
errorbuf);
|
||||
result = CURLE_RECV_ERROR;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -607,7 +607,7 @@ static CURLcode UTime2str(struct dynbuf *store,
|
|||
}
|
||||
|
||||
tzl = end - tzp;
|
||||
return curlx_dyn_addf(store, "%u%.2s-%.2s-%.2s %.2s:%.2s:%.2s %.*s",
|
||||
return curlx_dyn_addf(store, "%d%.2s-%.2s-%.2s %.2s:%.2s:%.2s %.*s",
|
||||
20 - (*beg >= '5'), beg, beg + 2, beg + 4,
|
||||
beg + 6, beg + 8, sec,
|
||||
(int)tzl, tzp);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue