ssl connection issues

Michael Blumenkrantz mike at zentific.com
Wed Sep 29 23:35:14 CEST 2010


On Wed, 29 Sep 2010 15:06:27 -0400
Michael Blumenkrantz <mike at zentific.com> wrote:

> On Wed, 29 Sep 2010 17:17:56 +0200
> Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
> 
> > On 09/29/2010 04:48 PM, Michael Blumenkrantz wrote:
> > 
> > > If that were the case, wouldn't it also fail when I have paused execution
> > > as I described previously?  Additionally, the only function that is
> > > sending data on that socket during that time is gnutls_handshake.
> > 
> > I can only speculate as I cannot reproduce the issue. If you think you
> > know how to reproduce it, check mini-egain example, and see whether you
> > can emulate the behavior you're seeing there.
> > 
> > To the point. As I see the problem is not on receiving. This happens
> > normally as I see from your log. Check with wireshark and other ways
> > that the send is occuring as it should.
> > 
> > regards,
> > Nikos
> Hmm I have spent some time working on a very tiny async app using gnutls.  It
> utilizes a single callback to handshake and then disconnect from a server, as
> I will describe later.  In my testing with this, however, I uncovered a larger
> and previously unknown bug in pre-existing software which I have now begun the
> long task of attempting to fix.  Thank you for your advice.
> 
> In thanks, I have written and documented a small test program (attached) which
> performs an asynchronous remote connection to verisign.com (an easy site to
> find that has an ssl certificate).  It requires eina and ecore from the
> EFL/enlightenment.org to compile/run, but should serve as a good standalone
> reading example to include since it is well-commented and short (11
> gnutls calls, 3 ecore calls total).  Feel free to modify/redistribute if you
> would like, with or without attribution.  I hope you find it useful.
> 
As it turns out, in an amusing accident I sent you a "mostly finished" version
of the file which is not async.  Attached is the actual async example.

-- 
Mike Blumenkrantz
Zentific: Our boolean values are huge.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eagain-cli.c
Type: text/x-c++src
Size: 5461 bytes
Desc: not available
URL: </pipermail/attachments/20100929/f3ccede6/attachment.cc>


More information about the Gnutls-help mailing list