From 91c732f687a61ba130acf38d5142bec6369ebd68 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Thu, 24 Jan 2019 14:35:30 +0100 Subject: Always check for client-certificates * lisp/net/network-stream.el (network-stream-use-client-certificates): New user option. (open-network-stream): If 'network-stream-use-client-certificates' is t, and the user hasn't specified :client-certificate, do certificate lookups via 'auth-source'. (network-stream-certificate): Only return key and certificate files that exist. * doc/lispref/processes.texi (Network): Document new client-certificate behavior. * etc/NEWS: Document 'network-stream-use-client-certificates'. --- doc/lispref/processes.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 287221a184d..5caf0a24265 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi @@ -2516,12 +2516,16 @@ Emacs will warn if the connection isn't encrypted. This is useful for protocols like @acronym{IMAP} and the like, where most users would expect the network traffic to be encrypted. +@vindex network-stream-use-client-certificates @item :client-certificate @var{list-or-t} Either a list of the form @code{(@var{key-file} @var{cert-file})}, naming the certificate key file and certificate file itself, or @code{t}, meaning to query @code{auth-source} for this information -(@pxref{Top,,Overview, auth, The Auth-Source Manual}). -Only used for @acronym{TLS} or @acronym{STARTTLS}. +(@pxref{Help for users,,auth-source, auth, Emacs auth-source Library}). +Only used for @acronym{TLS} or @acronym{STARTTLS}. If +@code{:client-certificate} is not specified, behave as if it were t, +customize @code{network-stream-use-client-certificates} to change +this. @item :return-list @var{cons-or-nil} The return value of this function. If omitted or @code{nil}, return a -- cgit v1.2.1