[dovecot-cvs] dovecot/src/auth mech-login.c,1.15,1.15.2.1
cras at dovecot.org
cras at dovecot.org
Fri Jun 16 13:21:34 EEST 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv22898
Modified Files:
Tag: branch_1_0
mech-login.c
Log Message:
Support initial SASL response with LOGIN mechanism. Patch by Anders Karlsson
Index: mech-login.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/mech-login.c,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- mech-login.c 28 Dec 2005 17:15:43 -0000 1.15
+++ mech-login.c 16 Jun 2006 10:21:32 -0000 1.15.2.1
@@ -57,13 +57,16 @@
static void
mech_login_auth_initial(struct auth_request *request,
- const unsigned char *data __attr_unused__,
- size_t data_size __attr_unused__)
+ const unsigned char *data, size_t data_size)
{
static const char prompt1[] = "Username:";
- request->callback(request, AUTH_CLIENT_RESULT_CONTINUE,
- prompt1, strlen(prompt1));
+ if (data_size == 0) {
+ request->callback(request, AUTH_CLIENT_RESULT_CONTINUE,
+ prompt1, strlen(prompt1));
+ } else {
+ mech_login_auth_continue(request, data, data_size);
+ }
}
static void mech_login_auth_free(struct auth_request *request)
More information about the dovecot-cvs
mailing list