Mercurial > dovecot > core-2.2
changeset 13766:a19fb078a259
lib-auth: Added AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP flag.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 24 Nov 2011 00:51:41 +0200 |
parents | f2608c3a64ee |
children | 4ecb77154ac7 |
files | src/lib-auth/auth-client-request.c src/lib-auth/auth-client.h |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-auth/auth-client-request.c Thu Nov 24 00:51:27 2011 +0200 +++ b/src/lib-auth/auth-client-request.c Thu Nov 24 00:51:41 2011 +0200 @@ -34,6 +34,8 @@ 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)
--- a/src/lib-auth/auth-client.h Thu Nov 24 00:51:27 2011 +0200 +++ b/src/lib-auth/auth-client.h Thu Nov 24 00:51:41 2011 +0200 @@ -11,7 +11,9 @@ 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 {