[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: confirmation that debian #480041 is a gnutls problem, and steps to r
From: |
Joe Orton |
Subject: |
Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce |
Date: |
Fri, 21 Nov 2008 13:20:40 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Nov 21, 2008 at 03:03:49PM +0200, Nikos Mavrogiannopoulos wrote:
> Actually you only need to do this test on record_recv().
OK.
> Note that usually servers request upgrade in order to receive a client
> certificate, thus it might be a good idea to notify or prompt the user
> about that.
neon already has a callback which does that, yeah.
Daniel, can you try this neon patch?
Index: src/ne_socket.c
===================================================================
--- src/ne_socket.c (revision 1607)
+++ src/ne_socket.c (working copy)
@@ -750,13 +750,15 @@
static ssize_t read_gnutls(ne_socket *sock, char *buffer, size_t len)
{
ssize_t ret;
+ int reneg = 1; /* number of rehandshakes allowed */
ret = readable_gnutls(sock, sock->rdtimeout);
if (ret) return ret;
do {
ret = gnutls_record_recv(sock->ssl, buffer, len);
- } while (RETRY_GNUTLS(sock, ret));
+ } while (RETRY_GNUTLS(sock, ret)
+ || (ret == GNUTLS_E_REHANDSHAKE && reneg-- > 0));
if (ret <= 0)
ret = error_gnutls(sock, ret);
- confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Daniel Kahn Gillmor, 2008/11/20
- Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Nikos Mavrogiannopoulos, 2008/11/21
- Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Joe Orton, 2008/11/21
- Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Nikos Mavrogiannopoulos, 2008/11/21
- Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce,
Joe Orton <=
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Daniel Kahn Gillmor, 2008/11/22
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Joe Orton, 2008/11/22
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Daniel Kahn Gillmor, 2008/11/22
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Joe Orton, 2008/11/22
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Nikos Mavrogiannopoulos, 2008/11/23
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Joe Orton, 2008/11/28
- Re: Bug#480041: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Nikos Mavrogiannopoulos, 2008/11/29
Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Daniel Kahn Gillmor, 2008/11/21
Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce, Daniel Kahn Gillmor, 2008/11/21