mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
add tests for select sig alg
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@ -1922,8 +1922,12 @@ static inline const void *mbedtls_ssl_get_sig_algs(
|
||||
#if defined(MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||
|
||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
||||
if( ssl->handshake != NULL && ssl->handshake->sig_algs != NULL )
|
||||
if( ssl->handshake->sig_algs_heap_allocated == 1 &&
|
||||
ssl->handshake != NULL &&
|
||||
ssl->handshake->sig_algs != NULL )
|
||||
{
|
||||
return( ssl->handshake->sig_algs );
|
||||
}
|
||||
#endif
|
||||
return( ssl->conf->sig_algs );
|
||||
|
||||
|
Reference in New Issue
Block a user