Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-02 Thread Nye Liu
On 11/2/2014 12:18 AM, Andreas Metzler wrote: could you please verify that applying *only* the attached minimal patch on top of 0.4.27-2.2 fixes the bug? I need to come up with a minimal change which is acceptable for a NMU. Yes, that patch alone is sufficient! -- To UNSUBSCRIBE, email to deb

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-02 Thread Andreas Metzler
On 2014-11-01 Nye Liu wrote: > On Sat, Nov 01, 2014 at 01:47:04PM +0100, Andreas Metzler wrote: > > #1 Use gnutls_priority_set_direct(): [...] > You were correct. This is the required change. I have not tried > backing out all of deprecation and warning fixes, but backing out > this change alone c

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-01 Thread Nye Liu
Updated patch Description: Fix compiler warnings, TLS deprecation warnings Also fixes https://bugs.debian.org/759259 . wmbiff (0.4.27-2.2) unstable; urgency=medium . * Non-maintainer upload. * Switch to quilt v3 format. * 15_no_more_LZO.diff: Stop trying to use gnutls LZO compression,

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-01 Thread Nye Liu
On Sat, Nov 01, 2014 at 01:47:04PM +0100, Andreas Metzler wrote: > #1 Use gnutls_priority_set_direct(): > > > @@ -553,6 +557,9 @@ struct connection_state *initialize_gnut > > > assert(gnutls_init(&scs->tls_state, GNUTLS_CLIENT) == 0); > > { > > +#if 1 // HAVE_GNUTLS_PRIORITY_SET_DIRECT >

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-01 Thread Nye Liu
On 11/1/2014 5:47 AM, Andreas Metzler wrote: > Afaict filtering out the depreciation fixes reduces the patch to > two functional changes: > > #1 Use gnutls_priority_set_direct(): > > #2 Use a never used pointer instead of the connection fd as second > argument for gnutls_transport_set_ptr(). gn

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-11-01 Thread Andreas Metzler
On 2014-11-01 Nye Liu wrote: > Looks like it is a problem with gnutls_transport_set_ptr(), which needs a > pointer, not an int. > I have hacked in a union to get around it. > Probably not the best idea, but it works. > Patch below is proof of concept, along with compiler warning and GNUTLS api

Bug#759259: wmbiff: Can't connect to dovecot with self-signed certificate [patch]

2014-10-31 Thread Nye Liu
Looks like it is a problem with gnutls_transport_set_ptr(), which needs a pointer, not an int. I have hacked in a union to get around it. Probably not the best idea, but it works. Patch below is proof of concept, along with compiler warning and GNUTLS api deprecation fixes. Description: Fix c