dovecot-2.1: login: Use AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP if ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Nov 24 00:53:50 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/4ecb77154ac7
changeset: 13767:4ecb77154ac7
user: Timo Sirainen <tss at iki.fi>
date: Thu Nov 24 00:52:09 2011 +0200
description:
login: Use AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP if protocol supports it.
diffstat:
src/imap-login/client.c | 4 +++-
src/login-common/login-common.h | 2 ++
src/login-common/sasl-server.c | 2 ++
src/pop3-login/client.c | 4 +++-
4 files changed, 10 insertions(+), 2 deletions(-)
diffs (52 lines):
diff -r a19fb078a259 -r 4ecb77154ac7 src/imap-login/client.c
--- a/src/imap-login/client.c Thu Nov 24 00:51:41 2011 +0200
+++ b/src/imap-login/client.c Thu Nov 24 00:52:09 2011 +0200
@@ -499,7 +499,9 @@
.client_vfuncs = &imap_client_vfuncs,
.preinit = imap_login_preinit,
.init = imap_login_init,
- .deinit = imap_login_deinit
+ .deinit = imap_login_deinit,
+
+ .sasl_support_final_reply = FALSE
};
int main(int argc, char *argv[])
diff -r a19fb078a259 -r 4ecb77154ac7 src/login-common/login-common.h
--- a/src/login-common/login-common.h Thu Nov 24 00:51:41 2011 +0200
+++ b/src/login-common/login-common.h Thu Nov 24 00:52:09 2011 +0200
@@ -27,6 +27,8 @@
void (*preinit)(void);
void (*init)(void);
void (*deinit)(void);
+
+ bool sasl_support_final_reply;
};
extern const struct login_binary *login_binary;
diff -r a19fb078a259 -r 4ecb77154ac7 src/login-common/sasl-server.c
--- a/src/login-common/sasl-server.c Thu Nov 24 00:51:41 2011 +0200
+++ b/src/login-common/sasl-server.c Thu Nov 24 00:52:09 2011 +0200
@@ -72,6 +72,8 @@
/* e.g. webmail */
auth_flags |= AUTH_REQUEST_FLAG_NO_PENALTY;
}
+ if (login_binary->sasl_support_final_reply)
+ auth_flags |= AUTH_REQUEST_FLAG_SUPPORT_FINAL_RESP;
return auth_flags;
}
diff -r a19fb078a259 -r 4ecb77154ac7 src/pop3-login/client.c
--- a/src/pop3-login/client.c Thu Nov 24 00:51:41 2011 +0200
+++ b/src/pop3-login/client.c Thu Nov 24 00:52:09 2011 +0200
@@ -252,7 +252,9 @@
.client_vfuncs = &pop3_client_vfuncs,
.preinit = pop3_login_preinit,
.init = pop3_login_init,
- .deinit = pop3_login_deinit
+ .deinit = pop3_login_deinit,
+
+ .sasl_support_final_reply = FALSE
};
int main(int argc, char *argv[])
More information about the dovecot-cvs
mailing list