]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth-client: Add ssl_client_cert_fp and ssl_client_cert_pubkey_fp fields
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 31 Dec 2024 10:21:32 +0000 (12:21 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 26 May 2025 05:39:13 +0000 (05:39 +0000)
src/lib-auth-client/auth-client-request.c
src/lib-auth-client/auth-client.h

index 99351b07b86d5dcaaad774799f7acf2d1d187678..625dca46427b7eb0e06a853d2b8aae94f69b7d2f 100644 (file)
@@ -64,6 +64,18 @@ auth_server_send_new_request(struct auth_client_connection *conn,
                event_add_str(request->event, "certificate_user",
                              info->cert_username);
        }
+       if (info->ssl_client_cert_fp != NULL) {
+               str_append(str, "\tssl_client_cert_fp=");
+               str_append_tabescaped(str, info->ssl_client_cert_fp);
+               event_add_str(request->event, "ssl_client_cert_fp",
+                             info->ssl_client_cert_fp);
+       }
+       if (info->ssl_client_cert_pubkey_fp != NULL) {
+               str_append(str, "\tssl_client_cert_pubkey_fp=");
+               str_append_tabescaped(str, info->ssl_client_cert_pubkey_fp);
+               event_add_str(request->event, "ssl_client_cert_pubkey_fp",
+                             info->ssl_client_cert_pubkey_fp);
+       }
        if (info->local_ip.family != 0) {
                str_printfa(str, "\tlip=%s", net_ip2addr(&info->local_ip));
                event_add_ip(request->event, "local_ip", &info->local_ip);
index ebc7add057da998b56407d5aec36a62a8f603603..00334a00775ed22a0ff58fc22d60f80faae2d0e6 100644 (file)
@@ -58,6 +58,8 @@ struct auth_request_info {
        const char *ssl_pfs;
        const char *ssl_protocol;
        const char *ssl_ja3_hash;
+       const char *ssl_client_cert_fp;
+       const char *ssl_client_cert_pubkey_fp;
 
        enum auth_request_flags flags;