From 90f86f0c464aaa81a617a011f1323cdd737ac130 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 9 Aug 2022 11:28:04 +0300 Subject: [PATCH] auth: auth-request-var-expand - Add ssl_ja3_hash key Expands into the JA3 value from lib-ssl-iostream if present --- src/auth/auth-request-var-expand.c | 3 ++- src/auth/auth-request-var-expand.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/auth/auth-request-var-expand.c b/src/auth/auth-request-var-expand.c index b836d059a4..eeca56a365 100644 --- a/src/auth/auth-request-var-expand.c +++ b/src/auth/auth-request-var-expand.c @@ -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" }, diff --git a/src/auth/auth-request-var-expand.h b/src/auth/auth-request-var-expand.h index 57e18a8add..0c2897c37d 100644 --- a/src/auth/auth-request-var-expand.h +++ b/src/auth/auth-request-var-expand.h @@ -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]; -- 2.47.3