Skip to content

Commit 3a0868b

Browse files
authored
Merge pull request #10496 from JuhaPekkaa/juke/change-loglevel
Update log level for mbedtls_ssl_check_record and PSA-based ECDH computation
2 parents 148bc11 + 5f4cbcd commit 3a0868b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

library/ssl_msg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int mbedtls_ssl_check_record(mbedtls_ssl_context const *ssl,
221221
size_t buflen)
222222
{
223223
int ret = 0;
224-
MBEDTLS_SSL_DEBUG_MSG(1, ("=> mbedtls_ssl_check_record"));
224+
MBEDTLS_SSL_DEBUG_MSG(3, ("=> mbedtls_ssl_check_record"));
225225
MBEDTLS_SSL_DEBUG_BUF(3, "record buffer", buf, buflen);
226226

227227
/* We don't support record checking in TLS because
@@ -263,7 +263,7 @@ int mbedtls_ssl_check_record(mbedtls_ssl_context const *ssl,
263263
ret = MBEDTLS_ERR_SSL_UNEXPECTED_RECORD;
264264
}
265265

266-
MBEDTLS_SSL_DEBUG_MSG(1, ("<= mbedtls_ssl_check_record"));
266+
MBEDTLS_SSL_DEBUG_MSG(3, ("<= mbedtls_ssl_check_record"));
267267
return ret;
268268
}
269269

library/ssl_tls12_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@ static int ssl_write_client_key_exchange(mbedtls_ssl_context *ssl)
23042304

23052305
header_len = 4;
23062306

2307-
MBEDTLS_SSL_DEBUG_MSG(1, ("Perform PSA-based ECDH computation."));
2307+
MBEDTLS_SSL_DEBUG_MSG(3, ("Perform PSA-based ECDH computation."));
23082308

23092309
/*
23102310
* Generate EC private key for ECDHE exchange.
@@ -2412,7 +2412,7 @@ static int ssl_write_client_key_exchange(mbedtls_ssl_context *ssl)
24122412

24132413
header_len += ssl->conf->psk_identity_len;
24142414

2415-
MBEDTLS_SSL_DEBUG_MSG(1, ("Perform PSA-based ECDH computation."));
2415+
MBEDTLS_SSL_DEBUG_MSG(3, ("Perform PSA-based ECDH computation."));
24162416

24172417
/*
24182418
* Generate EC private key for ECDHE exchange.

library/ssl_tls12_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,7 @@ static int ssl_prepare_server_key_exchange(mbedtls_ssl_context *ssl,
26832683
psa_key_type_t key_type = PSA_KEY_TYPE_NONE;
26842684
size_t ec_bits = 0;
26852685

2686-
MBEDTLS_SSL_DEBUG_MSG(1, ("Perform PSA-based ECDH computation."));
2686+
MBEDTLS_SSL_DEBUG_MSG(3, ("Perform PSA-based ECDH computation."));
26872687

26882688
/* Convert EC's TLS ID to PSA key type. */
26892689
if (mbedtls_ssl_get_psa_curve_info_from_tls_id(*curr_tls_id,

0 commit comments

Comments
 (0)