From eperez at it.uc3m.es Wed Oct 13 23:27:06 2004 From: eperez at it.uc3m.es (Eduardo =?iso-8859-1?Q?P=E9rez?=) Date: Wed, 13 Oct 2004 23:27:06 +0200 (CEST) Subject: [Help-gnutls] glib main_loop & gnutls Message-ID: <20041013212706.A3A0540071@smtp01.uc3m.es> Does anyone know how to use gnutls with the glib main_loop so the ssl socket IO doesn't block the gtk+ gui? Do you know about any opensource software that already uses gnutls with the glib main_loop I can take a look at? From jas at extundo.com Sun Oct 24 21:06:27 2004 From: jas at extundo.com (Simon Josefsson) Date: Sun, 24 Oct 2004 21:06:27 +0200 Subject: [Help-gnutls] Re: glib main_loop & gnutls References: <20041013212706.A3A0540071@smtp01.uc3m.es> Message-ID: Eduardo P?rez writes: > Does anyone know how to use gnutls with the glib main_loop so the ssl > socket IO doesn't block the gtk+ gui? > Do you know about any opensource software that already uses gnutls with > the glib main_loop I can take a look at? I don't know if it answer the question, but libsoup appear to wrap gnutls read/write into an GIOChannel. Perhaps there is something useful to extract from it. http://anoncvs.gnome.gr.jp/viewcvs.cgi/libsoup/libsoup/soup-gnutls.c?rev=1.13&view=auto Further, libgnetwork seem to be doing something similar, and appear to http://ignore-your.tv/software/libgnetwork/ http://cvs.gnome.org/viewcvs/libgnetwork/libgnetwork/gnetwork-ssl.c?rev=1.7 Libgnetwork appear to more oriented towards network applications, so perhaps it is what you are looking for. Hope this helps, Simon From nmav at gnutls.org Sun Oct 31 11:19:12 2004 From: nmav at gnutls.org (Nikos Mavrogiannopoulos) Date: Sun, 31 Oct 2004 11:19:12 +0100 Subject: [Help-gnutls] Re: [gnutls-dev] Problem with subject names. ( =?iso-8859-1?q?=C4?= =?iso-8859-1?q?ndrat_av_Pelle?= Johansson) In-Reply-To: <38F10BF6-29A1-11D9-971B-000D93B08F9A@morth.org> References: <38F10BF6-29A1-11D9-971B-000D93B08F9A@morth.org> Message-ID: <200410311119.13213.nmav@gnutls.org> On Friday 29 October 2004 00:30, Pelle Johansson wrote: > I'm having some problem with the subject name extraction functions. I > want to extract the common name from a certificate using > gnutls_x509_crt_get_dn_by_oid(), but I'm always getting a > GNUTLS_E_SHORT_MEMORY_BUFFER. This is regardless if I call with a NULL > buf argument or with buf_sizeof set to 10000. Does this happen with the latest gnutls? (that is 1.0.22) -- Nikos Mavrogiannopoulos