Merge pull request #2669 from RonEld/iotssl_2864

Show failure in ssl-opt.sh  when key export fails
This commit is contained in:
Gilles Peskine 2020-06-16 21:38:13 +02:00 committed by GitHub
commit 392faa2e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -3718,7 +3718,7 @@ handshake:
{
mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n",
(unsigned int) -ret );
goto exit;
goto reset;
}
mbedtls_printf( " EAP-TLS key material is:" );
@ -3739,7 +3739,7 @@ handshake:
{
mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n",
(unsigned int) -ret );
goto exit;
goto reset;
}
mbedtls_printf( " EAP-TLS IV is:" );

View File

@ -9141,7 +9141,11 @@ run_test "export keys functionality" \
-s "exported ivlen is " \
-c "exported maclen is " \
-c "exported keylen is " \
-c "exported ivlen is "
-c "exported ivlen is " \
-c "EAP-TLS key material is:"\
-s "EAP-TLS key material is:"\
-c "EAP-TLS IV is:" \
-s "EAP-TLS IV is:"
# Test heap memory usage after handshake
requires_config_enabled MBEDTLS_MEMORY_DEBUG