diff options
author | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2023-12-14 20:53:35 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-12-29 11:50:18 +0100 |
commit | 8a1694f22588c0777d642253ffdc307a61245d51 (patch) | |
tree | 803117a6fb5f3a4f2e739c915e41c71b724ec97d /apps | |
parent | aa3347ba9d670a747b46974ce46f2ed9ecb38662 (diff) |
apps: Don't print hostname on bio_out during connect.
Printing the hostname on bio_out clutters the output and breaks
pipe like forwarding via openssl.
Print the hostname via bio_err.
Fixes #23013
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23056)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lib/s_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/lib/s_socket.c b/apps/lib/s_socket.c index 014c1c0bc0..ace51686ad 100644 --- a/apps/lib/s_socket.c +++ b/apps/lib/s_socket.c @@ -208,7 +208,7 @@ int init_client(int *sock, const char *host, const char *port, hostname = BIO_ADDR_hostname_string(BIO_ADDRINFO_address(ai), 1); if (hostname != NULL) { - BIO_printf(bio_out, "Connecting to %s\n", hostname); + BIO_printf(bio_err, "Connecting to %s\n", hostname); OPENSSL_free(hostname); } /* Remove any stale errors from previous connection attempts */ |