From: Ted Zlatanov <tzz@lifelogs.com>
To: Konstantin Kliakhandler <kosta@slumpy.org>
Cc: 23759@debbugs.gnu.org
Subject: bug#23759: 25.1.50; 25.1.50; open-tls-stream creates malformed gnutls-cli command if trusted cert files don't exist
Date: Tue, 05 Jul 2016 10:36:04 -0400 [thread overview]
Message-ID: <87wpl0gnjf.fsf@lifelogs.com> (raw)
In-Reply-To: <CAH+LVpk1DoqS5mdOX9-5YZ6RqntM+4+UQC9BPhwAZmAb=n6zWA@mail.gmail.com> (Konstantin Kliakhandler's message of "Sat, 2 Jul 2016 10:09:50 +0300")
On Sat, 2 Jul 2016 10:09:50 +0300 Konstantin Kliakhandler <kosta@slumpy.org> wrote:
KK> The problem: `open-tls-stream' replaces %t with exactly one element, which
KK> is nil if none of gnutls-trustfiles is readable, and the first element of
KK> gnutls-trustfiles is more than one is readable.
KK> The Solution: In the patch I make the test iterate on all the trustfiles as
KK> a user might have more than one relevant. In addition, I made the default
KK> setting for tls-program have entries that do not explicitly specify the
KK> trustfile.
KK> One thing to note here perhaps, is that if (gnutls-trustfiles) returns an
KK> empty list and one has the %t substitution in one of the tls-program
KK> entries, then that entry will not be run at all. I feel that this is
KK> reasonable since by setting --x509cafile nil one makes gnutls-cli fail
KK> anyway.
As you said, one of the key points of your patch is this:
- '("gnutls-cli --x509cafile %t -p %p %h"
+ '("gnutls-cli -p %p %h"
+ "gnutls-cli --x509cafile %t -p %p %h"
Which replaces the specific call with a generic call (no CA file
specified). This is probably less secure because it will use the system
CA trustfiles regardless of the user's preferred `gnutls-trustfiles', so
I'd rather not make it the first thing attempted.
KK> Finally, I'm experiencing the above behavior, as far as I can tell, by
KK> default in e.g. erc-tls. What is the proper way to move to the built in
KK> TLS? Is it likely to be something in my config or in the implementation of
KK> ERC?
On Mac OS X, you can use Homebrew to build it with all the nice
libraries, or use one of the pre-built binary packages.
brew update && brew reinstall emacs --HEAD --use-git-head --cocoa --with-gnutls --with-rsvg --with-imagemagick
On W32, you need the right DLLs installed.
Once the libraries are installed, you're all set, they'll be used
automatically.
Ted
next prev parent reply other threads:[~2016-07-05 14:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-12 21:32 bug#23759: 25.1.50; open-tls-stream creates malformed gnutls-cli command if trusted cert files don't exist Francis Litterio
2016-06-13 3:42 ` Eli Zaretskii
2016-06-13 10:18 ` Lars Ingebrigtsen
[not found] ` <CAGQpP8QFu3zx9_3SLf5tVRhGC7bV0hUiA8=OJm8HpA5H-hTfwA@mail.gmail.com>
[not found] ` <CAGQpP8QWYaxgE0=VGshhxDW=U3yT_kXsNq178m6zPGq15Ets9g@mail.gmail.com>
2016-06-13 11:33 ` Fran
2016-06-13 11:40 ` Lars Ingebrigtsen
2016-06-13 11:49 ` Fran
2016-06-13 14:03 ` Eli Zaretskii
2016-07-02 0:09 ` bug#23759: 25.1.50; Konstantin Kliakhandler
2016-07-02 7:09 ` bug#23759: 25.1.50; 25.1.50; open-tls-stream creates malformed gnutls-cli command if trusted cert files don't exist Konstantin Kliakhandler
2016-07-05 14:36 ` Ted Zlatanov [this message]
2016-07-05 14:49 ` Noam Postavsky
2016-07-05 16:54 ` Konstantin Kliakhandler
2016-07-05 17:59 ` Noam Postavsky
2016-07-05 21:17 ` Ted Zlatanov
2016-07-06 22:24 ` Richard Stallman
2016-07-07 3:31 ` Ted Zlatanov
2016-07-07 6:11 ` Konstantin Kliakhandler
2016-07-07 22:01 ` Richard Stallman
2016-07-07 17:10 ` Ted Zlatanov
2016-07-07 22:40 ` Konstantin Kliakhandler
2016-07-08 13:43 ` Ted Zlatanov
2019-05-13 19:42 ` bug#23759: " Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wpl0gnjf.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=23759@debbugs.gnu.org \
--cc=kosta@slumpy.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.