GNU bug report logs - #33780
network-stream.el: network-stream-certificate always returns nil

Previous Next

Package: emacs;

Reported by: Vinothan Shankar <darael <at> dracon.is>

Date: Mon, 17 Dec 2018 19:17:01 UTC

Severity: normal

Tags: fixed

Fixed in version 27.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vinothan Shankar <darael <at> dracon.is>
To: bug-gnu-emacs <at> gnu.org
Subject: network-stream.el: network-stream-certificate always returns nil
Date: Mon, 17 Dec 2018 19:02:08 +0000
network-stream-certificate will *always* return nil, regardless of
whether there actually is a client-certificate value-pair specified,
because (plist-get :client-certificate parameters) is always nil.  This
is because plist-get takes the plist as the first argument, and the key
as the second; trying to find a list in a token is always going to be
nil.

This makes it impossible to use client certificates with Emacs's built-
in network-stream support, at least without overriding functions.

The error is in net/network-stream.el.  It has been there since the
function was first written in 2011, according to git blame.

I surmise that this, in combination with there being no support for
client certificates in network-stream-tls (though it's available in
network-stream-starttls) is part of the reason there are so many
conflicting guides on, for example, using client-certificate SASL with 
ERC.





This bug report was last modified 6 years and 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.