Commit 67887855 authored by FdaSilvaYY's avatar FdaSilvaYY Committed by Richard Levitte
Browse files

Output prog name within error message

parent 28e5ea88
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;
    }

+3 −3
Original line number Diff line number Diff line
@@ -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;
    }