Displaying 3 results from an estimated 3 matches for "get_log_prefix".
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...signed char digest[16];
+ struct md5_context ctx;
+
+ digest_buf = buffer_create_data(pool_datastack_create(),
+ remote_digest, sizeof(remote_digest));
+ if (hex_to_binary(auth->digest, digest_buf) <= 0) {
+ if (verbose)
+ i_info("apop(%s): invalid characters in APOP digest", get_log_prefix(auth_request));
+ mech_auth_finish(auth_request, NULL, 0, FALSE);
+ return;
+ }
+
+ md5_init(&ctx);
+ md5_update(&ctx, auth->challenge, strlen(auth->challenge));
+ md5_update(&ctx, credentials, strlen(credentials));
+ md5_final(&ctx, digest);
+
+ safe_memset((void *) credent...
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...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)
+ i_info("rpa(%s): invalid token 1, %s",
+ get_log_prefix(auth_request),
+ error);
+ mech_auth_finish(auth_request, NULL, 0, FALSE);
+ return TRUE;
+ }
+
+ service = t_str_lcase(auth_request->protocol);
+
+ token2 = mech_rpa_build_token2(auth, t_strconcat(service, "@",
+ my_hostname, NULL), &token2_size);
+
+ auth->...
2004 Jul 22
1
[PATCH] add LOGIN authentication mechanism
...;;
+
+ auth_request->callback = callback;
+
+ if (!auth_request->user) {
+ auth_request->user = p_strndup(auth_request->pool, data, data_size);
+
+ if (!mech_is_valid_username(auth_request->user)) {
+ if (verbose) {
+ i_info("login(%s): invalid username",
+ get_log_prefix(auth_request));
+ }
+ mech_auth_finish(auth_request, NULL, 0, FALSE);
+ return TRUE;
+ }
+
+ mech_init_auth_client_reply(&reply);
+ reply.id = auth_request->id;
+ reply.result = AUTH_CLIENT_RESULT_CONTINUE;
+
+ reply.reply_idx = 0;
+ reply.data_size = strlen(prompt2);
+ callback...