diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-12-23 23:41:13 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-25 23:42:16 +0100 |
commit | aba01da6390894c9e7ebb6691da544bc01b6324d (patch) | |
tree | cccdc610b043e065e479eefb53a72893d0e06e64 /lib/vtls/wolfssl.c | |
parent | 78617b48e46e5934d94c155e0b4565978341bfe6 (diff) | |
download | curl-aba01da6390894c9e7ebb6691da544bc01b6324d.tar.gz |
failf: remove newline from formatting strings
... as failf adds one itself.
Also: add an assert() to failf() that triggers on a newline in the
format string!
Closes #6365
Diffstat (limited to 'lib/vtls/wolfssl.c')
-rw-r--r-- | lib/vtls/wolfssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c index 44ee2d9ec..3f5f0949e 100644 --- a/lib/vtls/wolfssl.c +++ b/lib/vtls/wolfssl.c @@ -608,7 +608,7 @@ wolfssl_connect_step2(struct connectdata *conn, * as also mismatching CN fields */ else if(DOMAIN_NAME_MISMATCH == detail) { #if 1 - failf(data, "\tsubject alt name(s) or common name do not match \"%s\"\n", + failf(data, "\tsubject alt name(s) or common name do not match \"%s\"", dispname); return CURLE_PEER_FAILED_VERIFICATION; #else @@ -635,7 +635,7 @@ wolfssl_connect_step2(struct connectdata *conn, #if LIBWOLFSSL_VERSION_HEX >= 0x02007000 /* 2.7.0 */ else if(ASN_NO_SIGNER_E == detail) { if(SSL_CONN_CONFIG(verifypeer)) { - failf(data, "\tCA signer not available for verification\n"); + failf(data, "\tCA signer not available for verification"); return CURLE_SSL_CACERT_BADFILE; } else { |