Skip to content

Commit 42074c1

Browse files
author
Ben Taylor
committed
Rename mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg to mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg
Signed-off-by: Ben Taylor <[email protected]>
1 parent b76c383 commit 42074c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library/ssl_misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,7 @@ static inline int mbedtls_ssl_sig_alg_is_offered(const mbedtls_ssl_context *ssl,
24092409
return 0;
24102410
}
24112411

2412-
static inline int mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg(
2412+
static inline int mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg(
24132413
uint16_t sig_alg, mbedtls_pk_sigalg_t *pk_type, mbedtls_md_type_t *md_alg)
24142414
{
24152415
*pk_type = mbedtls_ssl_pk_sig_alg_from_sig(sig_alg & 0xff);

library/ssl_tls12_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ static int ssl_parse_server_key_exchange(mbedtls_ssl_context *ssl)
19081908
*/
19091909
MBEDTLS_SSL_CHK_BUF_READ_PTR(p, end, 2);
19101910
sig_alg = MBEDTLS_GET_UINT16_BE(p, 0);
1911-
if (mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg(
1911+
if (mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg(
19121912
sig_alg, &pk_alg, &md_alg) != 0 &&
19131913
!mbedtls_ssl_sig_alg_is_offered(ssl, sig_alg) &&
19141914
!mbedtls_ssl_sig_alg_is_supported(ssl, sig_alg)) {

library/ssl_tls13_generic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ static int ssl_tls13_parse_certificate_verify(mbedtls_ssl_context *ssl,
261261
goto error;
262262
}
263263

264-
if (mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg(
264+
if (mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg(
265265
algorithm, &sig_alg, &md_alg) != 0) {
266266
goto error;
267267
}
@@ -945,7 +945,7 @@ static int ssl_tls13_write_certificate_verify_body(mbedtls_ssl_context *ssl,
945945
continue;
946946
}
947947

948-
if (mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg(
948+
if (mbedtls_ssl_get_pk_sigalg_and_md_alg_from_sig_alg(
949949
*sig_alg, &pk_type, &md_alg) != 0) {
950950
return MBEDTLS_ERR_SSL_INTERNAL_ERROR;
951951
}

0 commit comments

Comments
 (0)