From: Timo Sirainen Date: Fri, 4 Nov 2022 19:52:53 +0000 (+0200) Subject: lib-auth: Rename AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS to AUTH_REQUEST_FLAG_CONN_S... X-Git-Tag: 2.4.0~3423 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aee880438bccac5efe7b6acca15da9dfff0f5689;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: Rename AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS to AUTH_REQUEST_FLAG_CONN_SECURED_TLS --- diff --git a/src/lib-auth/auth-client-request.c b/src/lib-auth/auth-client-request.c index 9b931ecd7f..27493ac5e3 100644 --- a/src/lib-auth/auth-client-request.c +++ b/src/lib-auth/auth-client-request.c @@ -26,14 +26,14 @@ static void auth_server_send_new_request(struct auth_client_connection *conn, str_append(str, "\tfinal-resp-ok"); if ((info->flags & AUTH_REQUEST_FLAG_CONN_SECURED) != 0) { str_append(str, "\tsecured"); - if ((info->flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS) != 0) { + if ((info->flags & AUTH_REQUEST_FLAG_CONN_SECURED_TLS) != 0) { str_append(str, "=tls"); event_add_str(request->event, "transport", "TLS"); } else { event_add_str(request->event, "transport", "trusted"); } } else { - i_assert((info->flags & AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS) == 0); + i_assert((info->flags & AUTH_REQUEST_FLAG_CONN_SECURED_TLS) == 0); event_add_str(request->event, "transport", "insecure"); } if ((info->flags & AUTH_REQUEST_FLAG_NO_PENALTY) != 0) diff --git a/src/lib-auth/auth-client.h b/src/lib-auth/auth-client.h index 012041ddc2..d94dece7b1 100644 --- a/src/lib-auth/auth-client.h +++ b/src/lib-auth/auth-client.h @@ -21,8 +21,8 @@ enum auth_request_flags { AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP = 0x08, /* Enable auth_debug=yes logging for this request */ AUTH_REQUEST_FLAG_DEBUG = 0x10, - /* If TLS was used */ - AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS = 0x20, + /* Connection from the previous hop is secured by TLS. */ + AUTH_REQUEST_FLAG_CONN_SECURED_TLS = 0x20, }; enum auth_request_status { diff --git a/src/login-common/sasl-server.c b/src/login-common/sasl-server.c index d119282903..978edd9d0b 100644 --- a/src/login-common/sasl-server.c +++ b/src/login-common/sasl-server.c @@ -107,7 +107,7 @@ client_get_auth_flags(struct client *client) ssl_iostream_has_valid_client_cert(client->ssl_iostream)) auth_flags |= AUTH_REQUEST_FLAG_VALID_CLIENT_CERT; if (client->connection_tls_secured || client->haproxy_terminated_tls) - auth_flags |= AUTH_REQUEST_FLAG_TRANSPORT_SECURITY_TLS; + auth_flags |= AUTH_REQUEST_FLAG_CONN_SECURED_TLS; if (client->connection_secured) auth_flags |= AUTH_REQUEST_FLAG_CONN_SECURED; if (login_binary->sasl_support_final_reply)