mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04: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_KEY_EXCHANGE_WITH_CERT_ENABLED)
|
||||||
|
|
||||||
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
|
#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 );
|
return( ssl->handshake->sig_algs );
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return( ssl->conf->sig_algs );
|
return( ssl->conf->sig_algs );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user