From: Aki Tuomi Date: Fri, 1 Dec 2017 11:46:10 +0000 (+0200) Subject: auth: Include tls=true/false in policy server request X-Git-Tag: 2.3.1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af014a8931a6cde8dcaaadbb8762dd27d33ed996;p=thirdparty%2Fdovecot%2Fcore.git auth: Include tls=true/false in policy server request --- diff --git a/src/auth/auth-policy.c b/src/auth/auth-policy.c index 6b1c2ffc56..31a49c8e9e 100755 --- a/src/auth/auth-policy.c +++ b/src/auth/auth-policy.c @@ -496,6 +496,11 @@ void auth_policy_create_json(struct policy_lookup_ctx *context, str_append(context->json, ",\"policy_reject\":"); str_append(context->json, context->request->policy_refusal ? "true" : "false"); } + str_append(context->json, ",\"tls\":"); + if (context->request->secured == AUTH_REQUEST_SECURED_TLS) + str_append(context->json, "true"); + else + str_append(context->json, "false"); str_append_c(context->json, '}'); auth_request_log_debug(context->request, "policy", "Policy server request JSON: %s", str_c(context->json));