提交 67887855 编写于 作者: F FdaSilvaYY 提交者: Richard Levitte

Output prog name within error message

Reviewed-by: NAndy Polyakov <appro@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3141)
上级 28e5ea88
...@@ -1487,17 +1487,17 @@ int s_client_main(int argc, char **argv) ...@@ -1487,17 +1487,17 @@ int s_client_main(int argc, char **argv)
} }
#endif #endif
if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) { 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; goto end;
} }
if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) { 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; goto end;
} }
if (max_pipelines > SSL_MAX_PIPELINES) { 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; goto end;
} }
......
...@@ -1575,17 +1575,17 @@ int s_server_main(int argc, char *argv[]) ...@@ -1575,17 +1575,17 @@ int s_server_main(int argc, char *argv[])
} }
#endif #endif
if (max_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) { 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; goto end;
} }
if (split_send_fragment > SSL3_RT_MAX_PLAIN_LENGTH) { 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; goto end;
} }
if (max_pipelines > SSL_MAX_PIPELINES) { 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; goto end;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册