Displaying 20 results from an estimated 48 matches for "pool_t".
2004 Aug 09
1
[PATCH] RPA authentication mechanism
...ot;
+#include "strfuncs.h"
+#include "safe-memset.h"
+#include "randgen.h"
+#include "buffer.h"
+#include "hostpid.h"
+#include "hex-binary.h"
+#include "md5.h"
+
+struct rpa_auth_request {
+ struct auth_request auth_request;
+
+ pool_t pool;
+
+ int phase;
+
+ /* cached: */
+ unsigned char *pwd_md5;
+ size_t service_len;
+ const unsigned char *service_ucs2be;
+ size_t username_len;
+ const unsigned char *username_ucs2be;
+ size_t realm_len;
+ const unsigned char *realm_ucs2be;
+
+ /* requested: */
+ unsigned char *service_challen...
2018 Jun 25
2
Pigeonhole extdata repo?
...;:
ext-extdata-common.c:162:3: error: too few arguments to function 'dict_lookup'
pool_datastack_create(), key, &value)) <= 0 ) {
^
In file included from ext-extdata-common.c:6:0:
/usr/local/include/dovecot/dict.h:99:5: note: declared here
int dict_lookup(struct dict *dict, pool_t pool,
^
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
2014 Apr 24
0
Help implementing username_format in auth PAM driver
..., &conv, &pamh);
+ status = pam_start(service, pam_username_lookup(request), &conv, &pamh);
if (status != PAM_SUCCESS) {
auth_request_log_error(request, "pam", "pam_start() failed: %s",
pam_strerror(pamh, status));
@@ -331,6 +344,7 @@ pam_preinit(pool_t pool, const char *args)
{
struct pam_passdb_module *module;
const char *const *t_args;
+ const char *format = PASSDB_PAM_DEFAULT_USERNAME_FORMAT;
int i;
module = p_new(pool, struct pam_passdb_module, 1);
@@ -367,9 +381,14 @@ pam_preinit(pool_t pool, const char *args)
}
} else if (...
2016 Nov 02
0
v2.2.26.0 released
...0L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
#define EVP_PKEY_get0_EC_KEY(x) x->pkey.ec
#define EVP_PKEY_get0_RSA(x) x->pkey.rsa
#define OBJ_length(o) ((o)->length)
@@ -90,7 +90,7 @@ struct dcrypt_context_symmetric {
struct dcrypt_context_hmac {
pool_t pool;
const EVP_MD *md;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
HMAC_CTX *ctx;
#else
HMAC_CTX ctx;
@@ -427,7 +427,7 @@ static
void dcrypt_openssl_ctx_hmac_destroy(struct dcrypt_context_hmac **ct...
2004 Oct 22
1
[PATCH] support OEM encoding in NTLM messages
...LMSSP_NEGOTIATE_TARGET_INFO;
+ if (client_flags & NTLMSSP_NEGOTIATE_UNICODE)
+ flags |= NTLMSSP_NEGOTIATE_UNICODE;
+ else
+ flags |= NTLMSSP_NEGOTIATE_OEM;
+
if (client_flags & NTLMSSP_NEGOTIATE_NTLM2)
flags |= NTLMSSP_NEGOTIATE_NTLM2;
@@ -134,6 +149,7 @@ ntlmssp_create_challenge(pool_t pool, co
{
buffer_t *buf;
uint32_t flags = ntlmssp_flags(read_le32(&request->flags));
+ int unicode = flags & NTLMSSP_NEGOTIATE_UNICODE;
struct ntlmssp_challenge c;
buf = buffer_create_dynamic(pool, sizeof(struct ntlmssp_challenge));
@@ -149,7 +165,7 @@ ntlmssp_create_challeng...
2011 Apr 27
2
2.0.12 Coredump under Solaris 10
...8
error = 0xfeff0540 ""
reply = {uid = -1, gid = -1, home = 0x0, chroot = 0x0,
extra_fields = {arr = {buffer = 0x809b6b8, element_size = 4}, v =
0x809b6b8,
v_modifiable = 0x809b6b8}}
set_parser = (struct setting_parser_context *) 0x8093d40
user_pool = (pool_t) 0x8088918
temp_pool = (pool_t) 0x809b6a8
ret = 1
#9 0xfef0be8f in mail_storage_service_lookup_next (ctx=0x80852f0,
input=0x8047b60, user_r=0x807ab48, mail_user_r=0x8047adc,
error_r=0x8047b3c)
at mail-storage-service.c:1001
user = (struct mail_storage_service_user *) 0x...
2006 Feb 03
0
rquotad (NFS) quota plugin
...nclude <sys/socket.h>
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #include <rpc/rpc.h>
+ #include <rpc/pmap_prot.h>
+ #include <rpcsvc/rquota.h>
+ #include <netdb.h>
+ #include <stdio.h>
+
+ struct rquotad_quota {
+ struct quota quota;
+
+ pool_t pool;
+ const char *error;
+
+ size_t nroots;
+ struct rquotad_quota_root *roots;
+
+ };
+
+ enum rquotad_states { RQUOTAD_UNKNOWN, RQUOTAD_ERR, RQUOTAD_OFF, RQUOTAD_ON };
+
+ struct rquotad_quota_root {
+ struct quota_root root;
+
+ pool_t pool;
+ const char *name;
+ enum rquotad_state...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...on query */
+struct multi_pgsql_transaction_subquery {
+ struct multi_pgsql_transaction_subquery *p;
+
+ char *query;
+ unsigned *affected_rows;
+};
+
+struct multi_pgsql_transaction_context {
+ struct sql_transaction_context super;
+ struct multi_pgsql_transaction_subquery *first, **link_to;
+ pool_t pool;
+};
+
+struct multi_pgsql_transaction_query {
+ struct multi_pgsql_query super;
+ struct multi_pgsql_transaction_context *x_ctx;
+
+ struct multi_pgsql_transaction_subquery *sub;
+ time_t cur_eol;
+
+ /*
+ If set, points to the PGresult corresponding
+ with the subquery which caused the t...
2012 Nov 10
4
imap-login hanging when firewall blocks ssl handshaking
...f53152b90) at ioloop.c:398
No locals.
#10 0x000000010cafde9b in master_service_run (service=0x7f7fa0c039f0, callback=0x7f7fa0c1c2d8) at master-service.c:543
No locals.
#11 0x000000010cabdcd1 in main_deinit [inlined] () at /private/tmp/johnsone/dovecot-2.1.10/src/login-common/main.c:406
set_pool = (pool_t) 0x7f7fa100b420
login_socket = 0x10cb4f7f8 "?9??"
#12 0x000000010cabdcd1 in login_binary_run (argc=1, argv=0x7f7fa0c037c0, binary=0x7fff53152b90) at main.c:407
set_pool = (pool_t) 0x7f7fa100b420
login_socket = 0x10cb4f7f8 "?9??"
#13 0x00007fff8ac847e1 in start ()
(gdb) bt f...
2018 Jun 27
0
Pigeonhole extdata repo?
...: error: too few arguments to function
> 'dict_lookup'
> pool_datastack_create(), key, &value)) <= 0 ) {
> ^
> In file included from ext-extdata-common.c:6:0:
> /usr/local/include/dovecot/dict.h:99:5: note: declared here
> int dict_lookup(struct dict *dict, pool_t pool,
> ^
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
2004 Jul 31
1
Patch: fix $-terminated MCF
...==================================================
RCS file: /home/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.41
diff -u -p -r1.41 strfuncs.c
--- src/lib/strfuncs.c 18 Jul 2004 01:44:59 -0000 1.41
+++ src/lib/strfuncs.c 31 Jul 2004 08:43:35 -0000
@@ -154,6 +154,7 @@ char *p_strdup_until(pool_t pool, const
mem = p_malloc(pool, size + 1);
memcpy(mem, start, size);
+ mem[size] = '\0';
return mem;
}
Noticed while testing $-terminated modular crypt strings, because
I didn't (and still don't) understand the reason for line 65 of
password-scheme.c;
...
/* stop at ne...
2016 Nov 02
2
v2.2.26.0 released
If the standard way works, I am happy to include the original patch I
sent, amended so that it checks for presence of LIBRESSL_VERSION_NUMBER.
If they keep this promise, then we should have no worries about things
breaking up.
Aki
On 02.11.2016 14:24, Michael A. Peters wrote:
> Indeed, which is why I use it.
>
> But it also is in the minority which is why I find it acceptable for
2018 Jun 22
2
Pigeonhole extdata repo?
Pigeonhole download page has links for extdata plugin up to v0.4 but
nothing more and no link to the master repository
https://pigeonhole.dovecot.org/download.html
I want to use with dovecot 2.3.2rc1 but v0.4 won't compile with it.
Thanks for helping
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's
2017 Sep 13
2
[RFC master-2.2 0/1] Support OpenSSL 1.1 API for setting allowed TLS versions
Hi,
I came up with the following patch while trying to figure out a good solution
for the situation described in Debian bug #871987[1]. In short, OpenSSL in
Debian unstable has disabled TLSv1.0 and TLSv1.1 *by default*. That means that
unless an application requests otherwise, only TLSv1.2 is supported. In the
world of e-mail this is seemingly an issue, as there are still way too many old
clients
2008 Jul 08
3
antispam plugin, amavis and sa-learn
Hello,
I would like to use the Dovecot antispam plugin to train SpamAssassin via
sa-learn. I compiled the plugin and got it to work with the sendmail
backend, which I tested by having it send a message to me.
As I'm calling SpamAssassin with amavisd-new, I have a system-wide Bayes
db, maintained by the amavis user. As expected, the antispam plugin calls
the configured binary as the mail user
2016 Oct 17
1
Dict proxy client returning empty string instead of multiline string
...base_dir, &dict, &error);
dict_lookup(dict, pool_datastack_create(), key, &value);
printf(">%s\n", value); // outputs an empty string
dict_deinit(&dict);
I trimmed it to the bare minimal string manipulation functions involved
but cannot reproduce in that case:
pool_t pool = pool_datastack_create();
char* s1 = "test\001n\001rtest";
char* s2 = t_str_tabunescape(s1);
char* s3 = p_strdup(pool, s2);
printf("1>%s\n", s1);
printf("2>%s\n", s2);
printf("3>%s\n", s3); // all three output the string with NL a...
2004 Aug 25
0
[PATCH] move highest_fd calculations to ioloop-select.c
...al I/O handler */
io_loop_handle_remove(current_ioloop, io);
io->destroyed = TRUE;
- /* check if we removed the highest fd */
- if (io->fd == current_ioloop->highest_fd)
- update_highest_fd(current_ioloop);
-
io->fd = -1;
}
@@ -275,7 +248,6 @@ struct ioloop *io_loop_create(pool_t poo
ioloop = p_new(pool, struct ioloop, 1);
pool_ref(pool);
ioloop->pool = pool;
- ioloop->highest_fd = -1;
io_loop_handler_init(ioloop);
diff -urpNX /usr/share/dontdiff -x Makefile dovecot-1.0-test35.vanilla/src/lib/ioloop-select.c dovecot-1.0-test35/src/lib/ioloop-select....
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...reate(), key, &value);
> > printf(">%s\n", value); // outputs an empty string
> > dict_deinit(&dict);
> >
> > I trimmed it to the bare minimal string manipulation functions involved
> > but cannot reproduce in that case:
> >
> > pool_t pool = pool_datastack_create();
> >
> > char* s1 = "test\001n\001rtest";
> > char* s2 = t_str_tabunescape(s1);
> > char* s3 = p_strdup(pool, s2);
> >
> > printf("1>%s\n", s1);
> > printf("2>%s\n", s2);
> &g...
2005 Jun 15
6
Compressed maildir
Greetings,
I noticed a while back someone posted a patch/plugin that allowed Dovecot to
use compressed mbox files. I'm now wondering how far that would put us from
having compressed maildir? I have a server with more CPU than disk space, and
while I can buy more HDD space, my backup solution doesn't make that practical.
It seems to me that when looking for a message file, if it
2004 Jul 01
3
[PATCH, RFC] add APOP authentication mechanism
...mon.h"
+#include "safe-memset.h"
+#include "mech.h"
+#include "passdb.h"
+#include "md5.h"
+#include "buffer.h"
+#include "hex-binary.h"
+
+#include <ctype.h>
+
+struct apop_auth_request {
+ struct auth_request auth_request;
+
+ pool_t pool;
+
+ /* requested: */
+ char *challenge;
+
+ /* received: */
+ char *username;
+ char *digest;
+ unsigned long maxbuf;
+};
+
+static void
+apop_credentials_callback(const char *credentials,
+ struct auth_request *auth_request)
+{
+ struct apop_auth_request *auth =
+ (struct apop_auth_requ...