Displaying 2 results from an estimated 2 matches for "mech_rpa_auth_continue".
2004 Nov 19
0
[PATCH] add initial response support for NTLM and RPA
.../share/dontdiff -x debian dovecot-1.0-test52.vanilla/src/auth/mech-rpa.c dovecot-1.0-test52/src/auth/mech-rpa.c
--- dovecot-1.0-test52.vanilla/src/auth/mech-rpa.c 2004-11-07 13:41:25.000000000 +0300
+++ dovecot-1.0-test52/src/auth/mech-rpa.c 2004-11-14 00:07:09.000000000 +0300
@@ -541,12 +541,14 @@ mech_rpa_auth_continue(struct auth_reque
}
static void
-mech_rpa_auth_initial(struct auth_request *auth_request,
- const unsigned char *data __attr_unused__,
- size_t data_size __attr_unused__,
+mech_rpa_auth_initial(struct auth_request *request,
+ const unsigned char *data, size_t data_size,...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...ck)) ||
+ (memcmp(data, client_ack, sizeof(client_ack)) != 0)) {
+ if (verbose)
+ i_info("rpa(%s): invalid token 5 or client rejects us",
+ get_log_prefix(auth_request));
+ ret = FALSE;
+ }
+
+ mech_auth_finish(auth_request, NULL, 0, ret);
+ return TRUE;
+}
+
+static int
+mech_rpa_auth_continue(struct auth_request *auth_request,
+ const unsigned char *data, size_t data_size,
+ mech_callback_t *callback)
+{
+ struct rpa_auth_request *auth =
+ (struct rpa_auth_request *)auth_request;
+
+ auth_request->callback = callback;
+
+ switch (auth->phase) {
+ case 0: return mech_rpa_auth...