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

2014-11-02 Thread Andreas Metzler
Control: tags -1 patch On 2014-08-25 Nicolas Kuttler wrote: > Package: wmbiff > Version: 0.4.27-2.2 > Severity: important > Dear Developers, > The recent NMU breaks wmbiff for me. I'm trying to connect to a dovecot > running on a wheezy server, IMAPS with a self-signed certificate. [...] Hello

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

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

2014-10-31 Thread Nye Liu
Same issue. gnutls-cli works fine: $ gnutls-cli -p 993 Processed 168 CA certificate(s). Resolving ''... Connecting to '2600:3c01::f03c:91ff:feae:9cce:993'... - Certificate type: X.509 - Got a certificate list of 3 certificates. - Certificate[0] info: - Certificate[1] info: ... - Certificate[2] i

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

2014-10-17 Thread Nicolas Kuttler
On Sat, Sep 13, 2014 at 05:57:55PM +0200, Andreas Metzler wrote: > On 2014-08-27 Nicolas Kuttler wrote: > > On Mon, Aug 25, 2014 at 08:34:13PM +0200, Andreas Metzler wrote: > [...] > > > breaks0.4.27-2.2 as in debian > > > works 0.4.27-2.2 rebuilt against libgnutls-dev > >

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

2014-09-13 Thread Andreas Metzler
On 2014-08-27 Nicolas Kuttler wrote: > On Mon, Aug 25, 2014 at 08:34:13PM +0200, Andreas Metzler wrote: [...] > > breaks0.4.27-2.2 as in debian > > works 0.4.27-2.2 rebuilt against libgnutls-dev > > works 0.4.27-2.2 rebuilt against libgnutls-dev > >

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

2014-08-27 Thread Nicolas Kuttler
On Mon, Aug 25, 2014 at 08:34:13PM +0200, Andreas Metzler wrote: > On 2014-08-25 Nicolas Kuttler wrote: > > Package: wmbiff > > Version: 0.4.27-2.2 > > Severity: important > > > Dear Developers, > > > The recent NMU breaks wmbiff for me. I'm trying to connect to a dovecot > > running on a wheezy

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

2014-08-25 Thread Andreas Metzler
On 2014-08-25 Nicolas Kuttler wrote: > Package: wmbiff > Version: 0.4.27-2.2 > Severity: important > Dear Developers, > The recent NMU breaks wmbiff for me. I'm trying to connect to a dovecot > running on a wheezy server, IMAPS with a self-signed certificate. [...] > Rebuilding without 16_gnutls

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

2014-08-25 Thread Nicolas Kuttler
Package: wmbiff Version: 0.4.27-2.2 Severity: important Dear Developers, The recent NMU breaks wmbiff for me. I'm trying to connect to a dovecot running on a wheezy server, IMAPS with a self-signed certificate. This is the log I get with wmbiff -skip-certificate-check -debug: [removed] wmbiff u