Displaying 6 results from an estimated 6 matches for "mech_callback_t".
2004 Nov 19
0
[PATCH] add initial response support for NTLM and RPA
...h_requ
}
static void
-mech_ntlm_auth_initial(struct auth_request *auth_request,
- const unsigned char *data __attr_unused__,
- size_t data_size __attr_unused__,
+mech_ntlm_auth_initial(struct auth_request *request,
+ const unsigned char *data, size_t data_size,
mech_callback_t *callback)
{
- callback(auth_request, AUTH_CLIENT_RESULT_CONTINUE, NULL, 0);
+ if (data_size == 0)
+ callback(request, AUTH_CLIENT_RESULT_CONTINUE, NULL, 0);
+ else
+ mech_ntlm_auth_continue(request, data, data_size, callback);
}
static void
diff -urdpNX /usr/share/dontdiff -x debian dovecot...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...h->pwd_md5 = p_malloc(auth->pool, 16);
+
+ hash_buffer = buffer_create_data(auth->pool, auth->pwd_md5, 16);
+
+ hex_to_binary(credentials, hash_buffer);
+}
+
+static int
+mech_rpa_auth_phase1(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;
+ struct auth_client_request_reply reply;
+ const unsigned char *token2;
+ size_t token2_size;
+ const char *service;
+ char *error;
+
+ if (!rpa_parse_token1(data, data_size, &error)) {
+ if (verbose)...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...;
+
+static void verify_callback(enum passdb_result result,
+ struct auth_request *request)
+{
+ mech_auth_finish(request, NULL, 0, result == PASSDB_RESULT_OK);
+}
+
+static int
+mech_login_auth_continue(struct auth_request *auth_request,
+ const unsigned char *data, size_t data_size,
+ mech_callback_t *callback)
+{
+ struct auth_client_request_reply reply;
+ static const char prompt2[] = "Password:";
+
+ auth_request->callback = callback;
+
+ if (!auth_request->user) {
+ auth_request->user = p_strndup(auth_request->pool, data, data_size);
+
+ if (!mech_is_valid_username(a...
2004 Jun 14
1
vpopmail and open smtp relay
...uest);
}
diff -Naur dovecot-0.99.10.5/src/auth/mech.h
dovecot-0.99.10.5-patched/src/auth/mech.h
--- dovecot-0.99.10.5/src/auth/mech.h Sun May 18 16:26:28 2003
+++ dovecot-0.99.10.5-patched/src/auth/mech.h Mon Jun 14 13:26:29 2004
@@ -19,6 +19,10 @@
enum auth_protocol protocol;
mech_callback_t *callback;
+#ifdef PASSDB_VPOPMAIL
+ struct ip_addr client_ip;
+#endif
+
int (*auth_continue)(struct auth_request *auth_request,
struct auth_login_request_continue *request,
const unsigned char *data,
diff -Naur dovecot-0.99.10.5/src/auth/passdb-vpo...
2004 Jul 09
1
passing remote ip to pam
...h 2003-05-18 05:26:28.000000000 -0700
+++ dovecot-0.99.10.6/src/auth/mech.h 2004-07-08 18:31:42.000000000 -0700
@@ -1,6 +1,7 @@
#ifndef __MECH_H
#define __MECH_H
+#include "network.h"
#include "auth-login-interface.h"
struct login_connection;
@@ -11,6 +12,7 @@ typedef void mech_callback_t(struct auth
struct auth_request {
pool_t pool;
char *user;
+ struct ip_addr remote_ip;
struct login_connection *conn;
unsigned int id;
diff -rpu dovecot-0.99.10.6.deborig/src/auth/passdb-pam.c dovecot-0.99.10.6/src/auth/passdb-pam.c
--- dovecot-0.99.10.6.deborig/src/auth/passdb-pam.c 2003...
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...id *) credentials, 0, strlen(credentials));
+
+ mech_auth_finish(auth_request, NULL, 0,
+ memcmp(digest, remote_digest, 16) ? FALSE : TRUE);
+}
+
+static int
+mech_apop_auth_initial(struct auth_request *auth_request,
+ struct auth_client_request_new *request,
+ const unsigned char *data,
+ mech_callback_t *callback)
+{
+ struct apop_auth_request *auth =
+ (struct apop_auth_request *)auth_request;
+ const unsigned char *tmp, *end, *username;
+
+ auth_request->callback = callback;
+
+ if (strcmp(auth_request->protocol, "POP3")) {
+ if (verbose)
+ i_info("apop(%s): wrong protoc...