Skip to content

Commit 4624f50

Browse files
authored
Merge pull request #10449 from bjwtaylor/mbedtls.remove-mbedtls_verify_new
Remove uses of mbedtls_pk_verify_new
2 parents b180696 + 0ff335d commit 4624f50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/ssl_tls12_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ static int ssl_parse_server_key_exchange(mbedtls_ssl_context *ssl)
19951995

19961996
#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
19971997
if (pk_alg == MBEDTLS_PK_RSASSA_PSS) {
1998-
ret = mbedtls_pk_verify_new(pk_alg, peer_pk,
1998+
ret = mbedtls_pk_verify_ext((mbedtls_pk_sigalg_t) pk_alg, peer_pk,
19991999
md_alg, hash, hashlen,
20002000
p, sig_len);
20012001
} else

library/ssl_tls13_generic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,13 +300,13 @@ static int ssl_tls13_parse_certificate_verify(mbedtls_ssl_context *ssl,
300300

301301
MBEDTLS_SSL_DEBUG_BUF(3, "verify hash", verify_hash, verify_hash_len);
302302

303-
if ((ret = mbedtls_pk_verify_new(sig_alg,
303+
if ((ret = mbedtls_pk_verify_ext((mbedtls_pk_sigalg_t) sig_alg,
304304
&ssl->session_negotiate->peer_cert->pk,
305305
md_alg, verify_hash, verify_hash_len,
306306
p, signature_len)) == 0) {
307307
return 0;
308308
}
309-
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_pk_verify_new", ret);
309+
MBEDTLS_SSL_DEBUG_RET(1, "mbedtls_pk_verify_ext", ret);
310310

311311
error:
312312
/* RFC 8446 section 4.4.3

0 commit comments

Comments
 (0)