From: Aki Tuomi Date: Tue, 9 Aug 2022 08:20:37 +0000 (+0300) Subject: lib-auth: Send ssl_ja3_hash field X-Git-Tag: 2.4.0~3262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf82522e045ef26d5b25859d97a18790fa14e16a;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Send ssl_ja3_hash field --- diff --git a/src/lib-auth/auth-client-request.c b/src/lib-auth/auth-client-request.c index c9e9ba1f1e..c8291073cb 100644 --- a/src/lib-auth/auth-client-request.c +++ b/src/lib-auth/auth-client-request.c @@ -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)); diff --git a/src/lib-auth/auth-client.h b/src/lib-auth/auth-client.h index d94dece7b1..d54448e79c 100644 --- a/src/lib-auth/auth-client.h +++ b/src/lib-auth/auth-client.h @@ -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;