summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2017-04-07 09:02:06 +0200
committerRichard Levitte <levitte@openssl.org>2017-04-28 15:49:36 +0200
commit67887855af3bfbf3f44b246aa83db6faeddae886 (patch)
tree84d6298490ed7d1733f89f4e2f334a53cfd56b40
parent28e5ea88a8fe93aa6dd023a5abd54f01c1ad6450 (diff)
Output prog name within error message
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3141)
-rw-r--r--apps/s_client.c6
-rw-r--r--apps/s_server.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index d7a3a80e2b..c86d36c5b6 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1487,17 +1487,17 @@ int s_client_main(int argc, char **argv)
}
#endif
if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
- BIO_printf(bio_err, "Bad max send fragment size\n");
+ BIO_printf(bio_err, "%s: Bad max send fragment size\n", prog);
goto end;
}
if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
- BIO_printf(bio_err, "Bad split send fragment size\n");
+ BIO_printf(bio_err, "%s: Bad split send fragment size\n", prog);
goto end;
}
if (max_pipelines > SSL_MAX_PIPELINES) {
- BIO_printf(bio_err, "Bad max pipelines value\n");
+ BIO_printf(bio_err, "%s: Bad max pipelines value\n", prog);
goto end;
}
diff --git a/apps/s_server.c b/apps/s_server.c
index 5faeb21a8b..22131bf84f 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -1575,17 +1575,17 @@ int s_server_main(int argc, char *argv[])
}
#endif
if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
- BIO_printf(bio_err, "Bad max send fragment size\n");
+ BIO_printf(bio_err, "%s: Bad max send fragment size\n", prog);
goto end;
}
if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) {
- BIO_printf(bio_err, "Bad split send fragment size\n");
+ BIO_printf(bio_err, "%s:Bad split send fragment size\n", prog);
goto end;
}
if (max_pipelines > SSL_MAX_PIPELINES) {
- BIO_printf(bio_err, "Bad max pipelines value\n");
+ BIO_printf(bio_err, "%s:too large max-pipelines value\n", prog);
goto end;
}