From: Stephan Bosch Date: Wed, 27 Jan 2021 12:39:23 +0000 (+0100) Subject: lib-master: master-auth - Add support for MAIL_AUTH_REQUEST_FLAG_IMPLICIT flag. X-Git-Tag: 2.3.18~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5588935bfee023245e56b9e36fd29be5e0cc00e;p=thirdparty%2Fdovecot%2Fcore.git lib-master: master-auth - Add support for MAIL_AUTH_REQUEST_FLAG_IMPLICIT flag. It signals that this login is implicit; no command reply is expected. This is going to be used by the Submission service to implicitly login a user using the EXTERNAL SASL mechanism when the first MAIL command is issued. In that case sending a reply for the implicit AUTH command would break the protocol and this new flag is used to signal the post-login submission service to not send an initial reply. --- diff --git a/src/lib-master/master-auth.h b/src/lib-master/master-auth.h index 59db83977b..8e0db7452a 100644 --- a/src/lib-master/master-auth.h +++ b/src/lib-master/master-auth.h @@ -30,6 +30,8 @@ enum mail_auth_request_flags { MAIL_AUTH_REQUEST_FLAG_CONN_SECURED = BIT(1), /* Connection is secured using SSL specifically */ MAIL_AUTH_REQUEST_FLAG_CONN_SSL_SECURED = BIT(2), + /* This login is implicit; no command reply is expected */ + MAIL_AUTH_REQUEST_FLAG_IMPLICIT = BIT(3), }; /* Authentication request. File descriptor may be sent along with the