]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Send ssl_ja3_hash field
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 9 Aug 2022 08:20:37 +0000 (11:20 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 20 Dec 2022 09:28:27 +0000 (11:28 +0200)
src/lib-auth/auth-client-request.c
src/lib-auth/auth-client.h

index c9e9ba1f1e1c98429ef76950d56eb1ffd4c77599..c8291073cba5ece5bc306268c2fa13f8547f42f2 100644 (file)
@@ -70,6 +70,11 @@ static void auth_server_send_new_request(struct auth_client_connection *conn,
                str_printfa(str, "\trport=%u", info->remote_port);
                event_add_int(request->event, "remote_port", info->remote_port);
        }
+       if (info->ssl_ja3_hash != 0) {
+               str_append(str, "\tssl_ja3_hash=");
+               str_append_tabescaped(str,info->ssl_ja3_hash);
+               event_add_str(request->event, "ssl_ja3_hash", info->ssl_ja3_hash);
+       }
        if (info->real_local_ip.family != 0) {
                event_add_str(request->event, "real_local_ip",
                              net_ip2addr(&info->real_local_ip));
index d94dece7b16bb5556cd32bc27b60a2eba2e60791..d54448e79cd24ab2b090b26301ea7f40175d7769 100644 (file)
@@ -57,6 +57,7 @@ struct auth_request_info {
        const char *ssl_cipher;
        const char *ssl_pfs;
        const char *ssl_protocol;
+       const char *ssl_ja3_hash;
 
        enum auth_request_flags flags;