Displaying 19 results from an estimated 19 matches for "attr_unused".
2016 Nov 02
0
v2.2.26.0 released
...@ -10,7 +10,7 @@
static int openssl_init_refcount = 0;
static ENGINE *dovecot_openssl_engine;
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
static void *dovecot_openssl_malloc(size_t size, const char *u0 ATTR_UNUSED, int u1 ATTR_UNUSED)
#else
static void *dovecot_openssl_malloc(size_t size)
@@ -26,7 +26,7 @@ static void *dovecot_openssl_malloc(size_t size)
return mem;
}
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER...
2015 Sep 03
1
Mailbox can't be created
...o be created for a "fail" storage, which you can't really do. I'd maybe try recompiling Dovecot or something.
>
dovecot sources 2.2.18 (src/lib-storage/fail-mailbox.c):
static int
fail_mailbox_create(struct mailbox *box,
const struct mailbox_update *update ATTR_UNUSED,
bool directory ATTR_UNUSED)
{
mail_storage_set_error(box->storage, MAIL_ERROR_NOTPOSSIBLE,
"Mailbox can't be created");
return -1;
}
--
Paulo Matos
2010 Sep 21
1
understand the struct message_header_line
...test-istream-header-filter.c as example, and
following your tips to jump my desired header value, but i need to store the
value from the Header filtered.
In the Exemple, the callback is this:
static void filter_callback(struct message_header_line *hdr,
bool *matched, void *context ATTR_UNUSED)
{
if (hdr != NULL && hdr->name_offset == 0) {
/* drop first header */
*matched = TRUE;
}
}
What i try to understand is how the structs work, it's save the entire
header or every line from header call the callback function ?
hdr->name_offset is the size o...
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
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...ize, &hash_method_sha1);
+ hmac_update(&ctx, U, sizeof(U));
+ hmac_final(&ctx, U);
+ for (k = 0; k < SHA1_RESULTLEN; k++)
+ result[k] ^= U[k];
+ }
+}
+
+/* password string format: iter,salt,stored_key,server_key */
+
+int scram_sha1_verify(const char *plaintext, const char *user ATTR_UNUSED,
+ const unsigned char *raw_password, size_t size,
+ const char **error_r ATTR_UNUSED)
+{
+ struct hmac_context ctx;
+ string_t *str;
+ const char *const *fields;
+ int iter;
+ const unsigned char *salt;
+ size_t salt_len;
+ unsigned char salted_password[SHA1_RESULTLEN];
+ unsigned ch...
2009 Apr 06
0
conflict name of si_code on NetBSD
...case BUS_ADRERR:
***************
*** 60,66 ****
return "object-specific hardware error";
}
}
! return t_strdup_printf("unknown %d", si_code);
}
static void sig_handler(int signo, siginfo_t *si, void *context ATTR_UNUSED)
--- 60,66 ----
return "object-specific hardware error";
}
}
! return t_strdup_printf("unknown %d", sicode);
}
static void sig_handler(int signo, siginfo_t *si, void *context ATTR_UNUSED)
diff -crN dovecot-1.2.rc2_bak/sr...
2015 Aug 27
4
Mailbox can't be created
Hi,
I have setup postfix master.cf to use dovecot-lda to deliver (using -m)
all messages to PreInbox:
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f
${sender} -a ${recipient} -d ${user}@${nexthop} -m PreINBOX
And enabled lda_mailbox_autocreate.
The message I have now it:
Aug 27 10:02:29 lda(): Info:
2008 Sep 22
1
Adding new password schemes?
Hi, all.
I was curious how difficult it would be to add a new password scheme to
Dovecot? I have to transplant mailboxes from one machine to another,
the older machine running Post.Office from now-defunct Software.Com,
which was bought by OpenWave, then discontinued. Apparently, Netscape's
mailserver offering from the day also supports this scheme. There's
code out there that was
2009 May 21
1
crypt() failure is possible
dovecot 1.1.15 in src/auth/password-scheme.c
contains:
static bool
crypt_verify(const char *plaintext, const char *user ATTR_UNUSED,
const unsigned char *raw_password, size_t size)
{
const char *password;
if (size == 0) {
/* the default mycrypt() handler would return match */
return FALSE;
}
password = t_strndup(raw_password, size);
return st...
2009 Jul 07
1
[PATCH] Fix VPATH build of RQUOTA support
...ot;lib.h"'; \
echo '#include <rpc/rpc.h>'; \
- $(RPCGEN) -c $(RQUOTA_X) | \
+ $(RPCGEN) -c $(builddir)/rquota.x | \
sed -e 's/IXDR_PUT/(void)IXDR_PUT/g' \
-e 's,/usr/include/rpcsvc/rquota.h,rquota.h,' \
-e 's/int32_t \*buf/int32_t *buf ATTR_UNUSED/' \
2012 Nov 16
1
whoson plugin for 2.0
I have found a plugin at
ftp://ftp.ufanet.ru/pub/boco/dovecot/whoson-plugin/
I was able to make it function on a dovecot 1.2.8 server, by changing
__attr_unused__ to ATTR_UNUSED and strlcpy to i_strocpy (since glibc
doesn't HAVE strlcpy, on purpose).
However, it doesn't work with 2.1
this is, of course, because getenv() no longer functions lie it used to
in plugins.
so i need a replacement for getenv("IP") and getenv("USER"...
2016 Jul 26
2
[BUG] Re: auth_bind with "()" in username not working
Hi guys,
I had a look in the sources about this problem.
the problem seems to be the ldap_escape function that is called from
ldap_verify_plain_auth_bind_userdn(..)
I dont really know if this escaping is needed at this point, but with
this change it works for me. No other problems discovered so far.
could somebody, who is deeper in the sources give me a hint if
this will make some troubles?
2008 Mar 11
2
dovecot-1.1.rc3 segmentation fault in fetch_bodystructure
Hi,
another imap crash with latest dovecot.
segmentation fault in fetch_bodystructure
src/imap/imap-fetch.c
static int fetch_bodystructure(struct imap_fetch_context *ctx,
struct mail *mail, void *context ATTR_UNUSED)
{
const char *bodystructure;
if (mail_get_special(mail, MAIL_FETCH_IMAP_BODYSTRUCTURE,
&bodystructure) < 0)
return -1;
---> before the segfault here we have bodystructure=0 and
mail_get_special returns >=0
[..]
if...
2010 Jul 19
0
How to install sieve
...or
?__attribute__? before ?ext_vacation_operation_dump?
cmd-vacation.c:544: error: expected declaration specifiers or ?...? before
?sieve_size_t?
cmd-vacation.c:545: error: expected ?=?, ?,?, ?;?, ?asm? or
?__attribute__? before ?{? token
cmd-vacation.c:715: error: expected ?;?, ?,? or ?)? before ?ATTR_UNUSED?
cmd-vacation.c:734: error: expected ?=?, ?,?, ?;?, ?asm? or
?__attribute__? before ?{? token
cmd-vacation.c:754: error: expected ?;?, ?,? or ?)? before ?ATTR_UNUSED?
cmd-vacation.c:775: error: storage class specified for parameter
?_list_headers?
cmd-vacation.c:775: error: parameter ?_list_headers...
2019 Jan 26
2
Solr - complete setup (update)
...NBOX` for my test user, I do see a lot of fts and HTTP activity.
THE SOLR PLUGIN IS NOT CODED ENTIRELY, REFRESH AND RESCAN FUNCTIONS ARE
MISSING :
https://github.com/dovecot/core/blob/master/src/plugins/fts-solr/fts-backend-solr.c
static int fts_backend_solr_refresh(struct fts_backend *backend
ATTR_UNUSED)
{
return 0;
}
static int fts_backend_solr_rescan(struct fts_backend *backend)
{
/* FIXME: proper rescan needed. for now we'll just reset the
last-uids */
return fts_backend_reset_last_uids(backend);
}
> *- Bugs so far*
>
> -> Line 620 of fts_solr dovecot plugin : the size oof...
2012 Aug 13
2
[PATCH] Replace hard-coded PKG_STATEDIR with state_dir setting
...);
/* add updates from replicator db, if it exists */
- (void)replicator_queue_import(queue, REPLICATOR_DB_PATH);
+ db_path = t_strconcat(set->state_dir, "replicator.db", NULL);
+ (void)replicator_queue_import(queue, db_path);
}
static void replicator_dump_timeout(void *context ATTR_UNUSED)
{
- (void)replicator_queue_export(queue, REPLICATOR_DB_PATH);
+ const char *db_path;
+
+ db_path = t_strconcat(set->state_dir, "replicator.db", NULL);
+ (void)replicator_queue_export(queue, db_path);
}
static void main_init(void)
@@ -77,10 +80,13 @@
static void main_deinit(voi...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...include "md5.h"
-#include "hmac-md5.h"
+#include "hmac.h"
+#include "hmac-cram-md5.h"
#include "ntlm.h"
#include "mycrypt.h"
#include "randgen.h"
@@ -655,12 +656,12 @@
cram_md5_generate(const char *plaintext, const char *user ATTR_UNUSED,
const unsigned char **raw_password_r, size_t *size_r)
{
- struct hmac_md5_context ctx;
+ struct hmac_context ctx;
unsigned char *context_digest;
context_digest = t_malloc(CRAM_MD5_CONTEXTLEN);
- hmac_md5_init(&ctx, (const unsigned char *)plaintext,
- strlen(plaintext));
+ hm...
2019 Jan 14
5
Solr - complete setup (update)
Hi Stephan,
What's up with that ?
Thank you so much
On 2019-01-05 02:04, Stephan Bosch wrote:
> Hi,
>
> Op 04/01/2019 om 05:36 schreef Joan Moreau via dovecot:
>
>> Hi
>>
>> This is the summary of my work with SOLR-Dovecot, in my *quest to reproduce the previoulsy excellent work of fts_squat*
>>
>> @Aki : Based on the time I have spent on
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...auth */
+ if (!ctx->urlfetch) /* reduce code deltas */
if (o_stream_send(client->output, ")\r\n", 3) < 0)
return -1;
client->last_output = ioloop_time;
@@ -761,6 +768,8 @@
static int fetch_uid(struct imap_fetch_context *ctx, struct mail *mail,
void *context ATTR_UNUSED)
{
+ /* APPLE - urlauth */
+ if (!ctx->urlfetch) /* reduce code deltas */
str_printfa(ctx->cur_str, "UID %u ", mail->uid);
return 1;
}
diff -Nur dovecot-1.2.11/src/imap/imap-fetch.h dovecot-1.2.11+lemonade/src/imap/imap-fetch.h
--- dovecot-1.2.11/src/imap/imap-fetch.h 2009-...