]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Do not send ssl details to auth process
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 10 Aug 2020 11:43:11 +0000 (14:43 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Thu, 27 Aug 2020 07:26:09 +0000 (10:26 +0300)
They are not used for anything. But we still provide them
as auth_client event fields, so that we can e.g. do metrics
on which TLS protocol is used.

src/lib-auth/auth-client-request.c

index cf0307b05c11fe6173885a82efb40942abc12edb..50622d24804be1e846eeb80ce2980a92dc7a7db5 100644 (file)
@@ -111,20 +111,13 @@ static void auth_server_send_new_request(struct auth_client_connection *conn,
                event_add_str(request->event, "local_name", info->local_name);
        }
        if (info->ssl_cipher_bits != 0 && info->ssl_cipher != NULL) {
-               str_append(str, "\tssl_cipher=");
-               str_append_tabescaped(str, info->ssl_cipher);
-               str_printfa(str, "\tssl_cipher_bits=%u", info->ssl_cipher_bits);
                event_add_str(request->event, "tls_cipher", info->ssl_cipher);
                event_add_int(request->event, "tls_cipher_bits", info->ssl_cipher_bits);
                if (info->ssl_pfs != NULL) {
-                       str_append(str, "\tssl_pfs=");
-                       str_append_tabescaped(str, info->ssl_pfs);
                        event_add_str(request->event, "tls_pfs", info->ssl_pfs);
                }
        }
        if (info->ssl_protocol != NULL) {
-               str_append(str, "\tssl_protocol=");
-               str_append_tabescaped(str, info->ssl_protocol);
                event_add_str(request->event, "tls_protocol", info->ssl_protocol);
        }
        if (info->client_id != NULL &&