1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #9123 from eleuzi01/replace-mbedtls-md-can-md5

Replace MBEDTLS_MD_CAN_MD5 with PSA_WANT_ALG_MD5
This commit is contained in:
Bence Szépkúti
2024-07-18 16:17:25 +00:00
committed by GitHub
18 changed files with 232 additions and 232 deletions

View File

@@ -6132,7 +6132,7 @@ mbedtls_pk_type_t mbedtls_ssl_pk_alg_from_sig(unsigned char sig)
mbedtls_md_type_t mbedtls_ssl_md_alg_from_hash(unsigned char hash)
{
switch (hash) {
#if defined(MBEDTLS_MD_CAN_MD5)
#if defined(PSA_WANT_ALG_MD5)
case MBEDTLS_SSL_HASH_MD5:
return MBEDTLS_MD_MD5;
#endif
@@ -6167,7 +6167,7 @@ mbedtls_md_type_t mbedtls_ssl_md_alg_from_hash(unsigned char hash)
unsigned char mbedtls_ssl_hash_from_md_alg(int md)
{
switch (md) {
#if defined(MBEDTLS_MD_CAN_MD5)
#if defined(PSA_WANT_ALG_MD5)
case MBEDTLS_MD_MD5:
return MBEDTLS_SSL_HASH_MD5;
#endif