Include error messages on extension check failure.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
Dr. Stephen Henson 2014-08-11 22:03:21 +01:00
parent f0ca9ccaef
commit 06f5d12f51

View file

@ -2103,6 +2103,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
#endif #endif
if (verify_serverinfo() < 0) if (verify_serverinfo() < 0)
{ {
fprintf(stderr, "Server info verify error\n");
ret = 1; ret = 1;
goto err; goto err;
} }
@ -2114,6 +2115,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
if (custom_ext_error) if (custom_ext_error)
{ {
fprintf(stderr, "Custom extension error\n");
ret = 1; ret = 1;
goto err; goto err;
} }
@ -2435,11 +2437,13 @@ int doit(SSL *s_ssl, SSL *c_ssl, long count)
#endif #endif
if (verify_serverinfo() < 0) if (verify_serverinfo() < 0)
{ {
fprintf(stderr, "Server info verify error\n");
ret = 1; ret = 1;
goto err; goto err;
} }
if (custom_ext_error) if (custom_ext_error)
{ {
fprintf(stderr, "Custom extension error\n");
ret = 1; ret = 1;
goto err; goto err;
} }