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)
This commit is contained in:
FdaSilvaYY 2017-04-07 09:02:06 +02:00 committed by Richard Levitte
parent 28e5ea88a8
commit 67887855af
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}