From 67887855af3bfbf3f44b246aa83db6faeddae886 Mon Sep 17 00:00:00 2001 From: FdaSilvaYY Date: Fri, 7 Apr 2017 09:02:06 +0200 Subject: [PATCH] Output prog name within error message Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3141) --- apps/s_client.c | 6 +++--- apps/s_server.c | 6 +++--- 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; }