[Privoxy-commits] [privoxy] 26/46: OpenSSL: Log the TLS version and the the cipher used

User Git git at git.privoxy.org
Sun Feb 21 15:10:48 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 6f5db14de9404dde96db54b964854883d4d314ec
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Feb 13 22:36:51 2021 +0100

    OpenSSL: Log the TLS version and the the cipher used
---
 openssl.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/openssl.c b/openssl.c
index 2ab67c96..c4783fb0 100644
--- a/openssl.c
+++ b/openssl.c
@@ -869,7 +869,9 @@ extern int create_client_ssl_connection(struct client_state *csp)
        goto exit;
    }
 
-   log_error(LOG_LEVEL_CONNECT, "Client successfully connected over TLS/SSL");
+   log_error(LOG_LEVEL_CONNECT, "Client successfully connected over %s (%s).",
+      SSL_get_version(ssl), SSL_get_cipher_name(ssl));
+
    csp->ssl_with_client_is_opened = 1;
    ret = 0;
 
@@ -1179,7 +1181,8 @@ extern int create_server_ssl_connection(struct client_state *csp)
       }
    }
 
-   log_error(LOG_LEVEL_CONNECT, "Server successfully connected over TLS/SSL");
+   log_error(LOG_LEVEL_CONNECT, "Server successfully connected over %s (%s).",
+     SSL_get_version(ssl), SSL_get_cipher_name(ssl));
 
    /*
     * Server certificate chain is valid, so we can clean

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list