aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRobert Pluim2019-01-24 14:35:30 +0100
committerRobert Pluim2019-11-05 09:32:51 +0100
commit91c732f687a61ba130acf38d5142bec6369ebd68 (patch)
tree2b64b552456aad27899a148940d3188b88f52743 /doc
parent3843711abd8d599206acbcc0aa97dae708285416 (diff)
downloademacs-91c732f687a61ba130acf38d5142bec6369ebd68.tar.gz
emacs-91c732f687a61ba130acf38d5142bec6369ebd68.zip
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'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/processes.texi8
1 files changed, 6 insertions, 2 deletions
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
2516protocols like @acronym{IMAP} and the like, where most users would 2516protocols like @acronym{IMAP} and the like, where most users would
2517expect the network traffic to be encrypted. 2517expect the network traffic to be encrypted.
2518 2518
2519@vindex network-stream-use-client-certificates
2519@item :client-certificate @var{list-or-t} 2520@item :client-certificate @var{list-or-t}
2520Either a list of the form @code{(@var{key-file} @var{cert-file})}, 2521Either a list of the form @code{(@var{key-file} @var{cert-file})},
2521naming the certificate key file and certificate file itself, or 2522naming the certificate key file and certificate file itself, or
2522@code{t}, meaning to query @code{auth-source} for this information 2523@code{t}, meaning to query @code{auth-source} for this information
2523(@pxref{Top,,Overview, auth, The Auth-Source Manual}). 2524(@pxref{Help for users,,auth-source, auth, Emacs auth-source Library}).
2524Only used for @acronym{TLS} or @acronym{STARTTLS}. 2525Only used for @acronym{TLS} or @acronym{STARTTLS}. If
2526@code{:client-certificate} is not specified, behave as if it were t,
2527customize @code{network-stream-use-client-certificates} to change
2528this.
2525 2529
2526@item :return-list @var{cons-or-nil} 2530@item :return-list @var{cons-or-nil}
2527The return value of this function. If omitted or @code{nil}, return a 2531The return value of this function. If omitted or @code{nil}, return a