]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-auth: Added AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP flag.
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 22:51:41 +0000 (00:51 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 22:51:41 +0000 (00:51 +0200)
src/lib-auth/auth-client-request.c
src/lib-auth/auth-client.h

index a556aff26f27022a209089033f2423c7dd1239ee..ab4d9e3e89fb4492b1bd975c6643ad978453572a 100644 (file)
@@ -34,6 +34,8 @@ static void auth_server_send_new_request(struct auth_server_connection *conn,
        str_append(str, "\tservice=");
        str_tabescape_write(str, info->service);
 
+       if ((info->flags & AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP) != 0)
+               str_append(str, "\tfinal-resp-ok");
        if ((info->flags & AUTH_REQUEST_FLAG_SECURED) != 0)
                str_append(str, "\tsecured");
        if ((info->flags & AUTH_REQUEST_FLAG_NO_PENALTY) != 0)
index 826ae4fa0b0b8f66f7fbcc58595c8653b81d895b..235576dfc7c6b20a2266931ceafdd71cc969a532 100644 (file)
@@ -11,7 +11,9 @@ enum auth_request_flags {
        AUTH_REQUEST_FLAG_SECURED               = 0x01,
        AUTH_REQUEST_FLAG_VALID_CLIENT_CERT     = 0x02,
        /* Skip penalty checks for this request */
-       AUTH_REQUEST_FLAG_NO_PENALTY            = 0x04
+       AUTH_REQUEST_FLAG_NO_PENALTY            = 0x04,
+       /* Support final SASL response */
+       AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP    = 0x08
 };
 
 enum auth_request_status {