]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-request-var-expand - Add ssl_ja3_hash key
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 9 Aug 2022 08:28:04 +0000 (11:28 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 20 Dec 2022 09:28:27 +0000 (11:28 +0200)
Expands into the JA3 value from lib-ssl-iostream if present

src/auth/auth-request-var-expand.c
src/auth/auth-request-var-expand.h

index b836d059a4dca78683f3af97f37f70c583371478..eeca56a36580dd429f975ed0dab1ae3f081d5fdc 100644 (file)
@@ -11,7 +11,7 @@ struct auth_request_var_expand_ctx {
 };
 
 /* Update this offset when you add new values */
-#define ALIAS(x) ((x)+35)
+#define ALIAS(x) ((x)+36)
 const struct var_expand_table
 auth_request_var_expand_static_tab[] = {
        { 'u', NULL, "user" },
@@ -49,6 +49,7 @@ auth_request_var_expand_static_tab[] = {
        { '\0', NULL, "auth_domain" },
        { '\0', NULL, "local_name" },
        { '\0', NULL, "client_id" },
+       { '\0', NULL, "ssl_ja3_hash" },
 
        /* aliases: */
        { '\0', NULL, "local_ip" },
index 57e18a8addb5971ce7c2b0d6d243f9ad9dad715a..0c2897c37dfedbdbc730d380a7e1d955de4c57e6 100644 (file)
@@ -8,7 +8,7 @@ auth_request_escape_func_t(const char *string,
 #define AUTH_REQUEST_VAR_TAB_USER_IDX 0
 #define AUTH_REQUEST_VAR_TAB_USERNAME_IDX 1
 #define AUTH_REQUEST_VAR_TAB_DOMAIN_IDX 2
-#define AUTH_REQUEST_VAR_TAB_COUNT 47
+#define AUTH_REQUEST_VAR_TAB_COUNT 48
 extern const struct var_expand_table
 auth_request_var_expand_static_tab[AUTH_REQUEST_VAR_TAB_COUNT+1];