mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-12 20:07:23 +00:00
Return internal error if no PSK is found when deriving the premaster secret
Signed-off-by: Guilhem Bryant <[email protected]>
This commit is contained in:
@@ -1859,6 +1859,7 @@ int mbedtls_ssl_psk_derive_premaster( mbedtls_ssl_context *ssl, mbedtls_key_exch
|
||||
* checked before calling this function
|
||||
*/
|
||||
MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) );
|
||||
return( MBEDTLS_ERR_SSL_INTERNAL_ERROR );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user