mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-26 03:40:26 +00:00
add tests for select sig alg
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
a0bb906c9f
commit
ee28e7a21d
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user