mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 10:20:45 +00:00
fix check names fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
11f0a9c2c4
commit
e12f1ddcfa
@ -1829,4 +1829,17 @@ static inline const void *mbedtls_ssl_get_sig_algs( const mbedtls_ssl_context *s
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_2) && \
|
||||||
|
defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
|
#if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_RSA_C)
|
||||||
|
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_ECDSA), \
|
||||||
|
(( hash << 8 ) | MBEDTLS_SSL_SIG_RSA),
|
||||||
|
#elif defined(MBEDTLS_ECDSA_C)
|
||||||
|
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_ECDSA),
|
||||||
|
#elif defined(MBEDTLS_RSA_C)
|
||||||
|
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_RSA),
|
||||||
|
#else
|
||||||
|
#define MBEDTLS_SSL_SIG_ALG( hash )
|
||||||
|
#endif /* MBEDTLS_ECDSA_C && MBEDTLS_RSA_C */
|
||||||
|
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 && MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
#endif /* ssl_misc.h */
|
#endif /* ssl_misc.h */
|
||||||
|
@ -6403,16 +6403,6 @@ void mbedtls_ssl_config_init( mbedtls_ssl_config *conf )
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
#if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_RSA_C)
|
|
||||||
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_ECDSA), \
|
|
||||||
(( hash << 8 ) | MBEDTLS_SSL_SIG_RSA),
|
|
||||||
#elif defined(MBEDTLS_ECDSA_C)
|
|
||||||
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_ECDSA),
|
|
||||||
#elif defined(MBEDTLS_RSA_C)
|
|
||||||
#define MBEDTLS_SSL_SIG_ALG( hash ) (( hash << 8 ) | MBEDTLS_SSL_SIG_RSA),
|
|
||||||
#else
|
|
||||||
#define MBEDTLS_SSL_SIG_ALG( hash )
|
|
||||||
#endif /* MBEDTLS_ECDSA_C && MBEDTLS_RSA_C */
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||||
/* The selection should be the same as mbedtls_x509_crt_profile_default in
|
/* The selection should be the same as mbedtls_x509_crt_profile_default in
|
||||||
* x509_crt.c. Here, the order matters. Currently we favor stronger hashes,
|
* x509_crt.c. Here, the order matters. Currently we favor stronger hashes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user