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.9~2581 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdaa18d4d5072549906a89dd438cbf53b145f322;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 412333df09..06a6015068 100755 --- a/src/auth/auth-policy.c +++ b/src/auth/auth-policy.c @@ -487,6 +487,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));