From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] GnuTLS support on Woe32 Date: Mon, 2 May 2011 18:20:56 +0200 Message-ID: References: <87ipvwl1nx.wl%claudio.bley@gmail.com> <87aagn2tpr.fsf@lifelogs.com> <87wrjquacf.fsf@lifelogs.com> <87lj05svwh.fsf@lifelogs.com> <87bp11imgb.wl%claudio.bley@gmail.com> <8739mc5nes.fsf@lifelogs.com> <87ipuubao6.fsf@lifelogs.com> <87fwpjfkkz.fsf@lifelogs.com> <87bp072fb1.fsf@lifelogs.com> <874o5vimm5.fsf@lifelogs.com> <87zknjmcyk.fsf@lifelogs.com> <87sjta2zvp.fsf@lifelogs.com> <87liyzglkh.fsf@lifelogs.com> <4DB77682.1070605@gmail.com> <8762q04ba1.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304353307 25267 80.91.229.12 (2 May 2011 16:21:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 May 2011 16:21:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 02 18:21:43 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QGvsT-0001RC-FS for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 18:21:41 +0200 Original-Received: from localhost ([::1]:39059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGvsS-0005ae-Mr for ged-emacs-devel@m.gmane.org; Mon, 02 May 2011 12:21:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGvsQ-0005aO-AQ for emacs-devel@gnu.org; Mon, 02 May 2011 12:21:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QGvsP-0004L8-84 for emacs-devel@gnu.org; Mon, 02 May 2011 12:21:38 -0400 Original-Received: from mail-yw0-f41.google.com ([209.85.213.41]:34303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QGvsP-0004L1-5k for emacs-devel@gnu.org; Mon, 02 May 2011 12:21:37 -0400 Original-Received: by ywa1 with SMTP id 1so2420897ywa.0 for ; Mon, 02 May 2011 09:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=i2dDdRnVCGIYdr2GE4DDd6aHoDKG5hCco7f1Vd/p7CU=; b=J/AIvB5EW3K+WVywrayYzrFcuvFKknhPl/hy+lh5F4uFV0aRjDmwP0vCvDKqQZo1t6 8HFrBSdjcBWGc39tXqpJWbKfNWS+2svLWEtd8NyBVNAohjC0CVo6Og5yOWt6yWACUELw mqm1fs3McquY75ylcFHiX6hSSjwKRSgJbSerw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=OaFpgZjk0yYddrVIOeWQ7pLtiMdENC4OniTlHL2oyDuVFZsICTBwJP70pBrmLekcyV kc+kCQ3yUUwrON0jK+jATInSQ/BiCvVTwByFYGgTmhUd5Kjc3l24TqUfZqUU1mqTYft8 iPkwaYunxUBLrgi4mO6R+7tGI52rz0tZPHV+k= Original-Received: by 10.150.210.6 with SMTP id i6mr3094536ybg.311.1304353296086; Mon, 02 May 2011 09:21:36 -0700 (PDT) Original-Received: by 10.147.182.5 with HTTP; Mon, 2 May 2011 09:20:56 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138964 Archived-At: On Wed, Apr 27, 2011 at 14:19, Juanma Barranquero wrote: > GnuTLS was one of the reasons that prompted me to change > `image-library-alist' to `dynamic-library-alist', so yes, I plan to do > it if nobody beats me to it. > > But I won't be able to spend time on that in at least a week or two, > perhaps more, so there's ample time for someone to step in... I'm working on this. First question: what should the code do when the gnutls library cannot be loaded at runtime? I mean, which is the single point that can return a failure exit code, let's say, GNUTLS_EMACS_ERROR_NOT_LOADED (=3D=3D GNUTLS_E_APPLICATION_ERROR_MIN + 1), so the rest of the GnuTLS code is disabled? I'm thinking there will be a function init_gnutls_functions (), called from syms_of_gnutls or Fgnutls_boot, which in addition to adjusting the function pointers, sets a success/failure flag. And then, from the elisp side, either that variable of a function gnutls-is-loaded-p which the gnutls.el functions will have to consult. Does that sound right? If so, can you take care of the gnutls.el side of th= ings? =C2=A0 =C2=A0 Juanma