commit | 0c9b1955cacc59556370911b3713a6f316766623 | [log] [tgz] |
---|---|---|
author | Guilhem Bryant <Guilhem.Bryant@arm.com> | Wed Apr 08 11:02:38 2020 +0100 |
committer | Guilhem Bryant <Guilhem.Bryant@arm.com> | Wed Apr 08 13:06:49 2020 +0100 |
tree | 5f6f783ea610148bb755993c7630e3e2febc9a69 | |
parent | 03d3711bb109011b62456eafe30cc6586bd879dc [diff] [blame] |
Return internal error if no PSK is found when deriving the premaster secret Signed-off-by: Guilhem Bryant <Guilhem.Bryant@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index c0ebfcb..9a523f5 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -1859,6 +1859,7 @@ * checked before calling this function */ MBEDTLS_SSL_DEBUG_MSG( 1, ( "should never happen" ) ); + return( MBEDTLS_ERR_SSL_INTERNAL_ERROR ); } /*