mirror of
https://github.com/espressif/mbedtls.git
synced 2026-10-26 02:23:46 +00:00
add tests for select sig alg
Signed-off-by: Jerry Yu <[email protected]>
This commit is contained in:
+5
-1
@@ -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