mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Replace MBEDTLS_MD_CAN_SHA1 with PSA_WANT_ALG_SHA_1
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This commit is contained in:
@ -195,7 +195,7 @@ int mbedtls_x509write_crt_set_basic_constraints(mbedtls_x509write_cert *ctx,
|
||||
is_ca, buf + sizeof(buf) - len, len);
|
||||
}
|
||||
|
||||
#if defined(MBEDTLS_MD_CAN_SHA1)
|
||||
#if defined(PSA_WANT_ALG_SHA_1)
|
||||
static int mbedtls_x509write_crt_set_key_identifier(mbedtls_x509write_cert *ctx,
|
||||
int is_ca,
|
||||
unsigned char tag)
|
||||
@ -280,7 +280,7 @@ int mbedtls_x509write_crt_set_authority_key_identifier(mbedtls_x509write_cert *c
|
||||
1,
|
||||
(MBEDTLS_ASN1_CONTEXT_SPECIFIC | 0));
|
||||
}
|
||||
#endif /* MBEDTLS_MD_CAN_SHA1 */
|
||||
#endif /* PSA_WANT_ALG_SHA_1 */
|
||||
|
||||
int mbedtls_x509write_crt_set_key_usage(mbedtls_x509write_cert *ctx,
|
||||
unsigned int key_usage)
|
||||
|
Reference in New Issue
Block a user