From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: GnuTLS for W32 Date: Wed, 04 Jan 2012 20:39:27 +0100 Message-ID: <87y5tnqmts.fsf@wanadoo.es> References: <87ty4e9j19.fsf@lifelogs.com> <83obumqa0v.fsf@gnu.org> <87ipktag2e.fsf@lifelogs.com> <87fwfxtxuz.fsf@wanadoo.es> <87aa64ubg9.fsf@wanadoo.es> <83boqkr9bp.fsf@gnu.org> <874nwcu17i.fsf@wanadoo.es> <834nwcr6un.fsf@gnu.org> <87vcosskhc.fsf@wanadoo.es> <831urgr2yr.fsf@gnu.org> <87r4zgsh2w.fsf@wanadoo.es> <87ipks3zbo.fsf@uwakimon.sk.tsukuba.ac.jp> <87boqk3q69.fsf@uwakimon.sk.tsukuba.ac.jp> <87aa634st8.fsf@uwakimon.sk.tsukuba.ac.jp> <87fwfvsgfv.fsf@wanadoo.es> <83r4zfpcfv.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325705990 7528 80.91.229.12 (4 Jan 2012 19:39:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2012 19:39:50 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 04 20:39:45 2012 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 1RiWgb-0005r5-4a for ged-emacs-devel@m.gmane.org; Wed, 04 Jan 2012 20:39:45 +0100 Original-Received: from localhost ([::1]:59179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiWga-00088x-Gw for ged-emacs-devel@m.gmane.org; Wed, 04 Jan 2012 14:39:44 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiWgY-00088s-Og for emacs-devel@gnu.org; Wed, 04 Jan 2012 14:39:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RiWgX-0004Xk-Ac for emacs-devel@gnu.org; Wed, 04 Jan 2012 14:39:42 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:47643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RiWgW-0004XZ-WE for emacs-devel@gnu.org; Wed, 04 Jan 2012 14:39:41 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RiWgV-0005pp-Qy for emacs-devel@gnu.org; Wed, 04 Jan 2012 20:39:39 +0100 Original-Received: from 225.red-79-147-11.dynamicip.rima-tde.net ([79.147.11.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 20:39:39 +0100 Original-Received: from ofv by 225.red-79-147-11.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Jan 2012 20:39:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 225.red-79-147-11.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:0eFjTFnHKJdJ4JJPRvvhKABoeVc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:147286 Archived-At: Eli Zaretskii writes: [snip] >> Just set dynamic-library-alist as it contains ('gnutls >> . "/path/to/gnutls/gnutls.dll") (or whatever are the right names). > > Putting DLLs in arbitrary places is not TRT. Nobody is suggesting an *arbitrary* place. Where ELPA puts its files is anything but arbitrary. > We should put it in the > same directory where emacs.exe lives, and then there's no need to do > anything with dynamic-library-alist. Depending on how Emacs was installed, that would require elevated privileges, something ELPA can not ask for, AFAIK. Please keep in mind that we (or at least Ted and I) are discussing the feasibility of using ELPA for providing and updating the required dll for Emacs STARTTLS capability to work on Windows. >> Installing a dll intended to be used by Emacs on a shared place is >> asking for trouble. > > Please give me the credit that when I do that I know what I'm doing. > I have been doing that for years with no problems at all. Yes, putting the dll along the emacs executable on the same directory works, that's what I do with my own software. However, my applications require a privileged user to upgrade or install new components (unless the user is Administrator on a pre MS Windows Vista machine, something that is as common as malware targeting those same users). > I'm sure > others have succeeded in learning a few simple rules of how to do this > safely. That's why an _option_ to do it available to knowledgeable > users would be a bonus. The default place should be where emacs.exe > lives. Precisely, knowledgeable users would have no problem with putting GnuTLS along with emacs.exe. A bit annoying, yes. Not very admin-friendly, too. The non-knowledgeable users would have a problem, because once they configure Emacs to send mail, they will receive an error message. Hopefully the message will include detailed, up-to-date instructions on how to obtain and install the dll, but it would be much better if Emacs asked: "for this operation Emacs needs to download and install a library from the Emacs code repository. Do you want to proceed?" and then everything goes on smoothly. In the general case, that dll can't be installed by ELPA along emacs.exe, for the reasons already explained.