diff options
| author | Robert Pluim | 2019-01-24 14:35:30 +0100 |
|---|---|---|
| committer | Robert Pluim | 2019-11-05 09:32:51 +0100 |
| commit | 91c732f687a61ba130acf38d5142bec6369ebd68 (patch) | |
| tree | 2b64b552456aad27899a148940d3188b88f52743 /doc | |
| parent | 3843711abd8d599206acbcc0aa97dae708285416 (diff) | |
| download | emacs-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.texi | 8 |
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 | |||
| 2516 | protocols like @acronym{IMAP} and the like, where most users would | 2516 | protocols like @acronym{IMAP} and the like, where most users would |
| 2517 | expect the network traffic to be encrypted. | 2517 | expect 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} |
| 2520 | Either a list of the form @code{(@var{key-file} @var{cert-file})}, | 2521 | Either a list of the form @code{(@var{key-file} @var{cert-file})}, |
| 2521 | naming the certificate key file and certificate file itself, or | 2522 | naming 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}). |
| 2524 | Only used for @acronym{TLS} or @acronym{STARTTLS}. | 2525 | Only used for @acronym{TLS} or @acronym{STARTTLS}. If |
| 2526 | @code{:client-certificate} is not specified, behave as if it were t, | ||
| 2527 | customize @code{network-stream-use-client-certificates} to change | ||
| 2528 | this. | ||
| 2525 | 2529 | ||
| 2526 | @item :return-list @var{cons-or-nil} | 2530 | @item :return-list @var{cons-or-nil} |
| 2527 | The return value of this function. If omitted or @code{nil}, return a | 2531 | The return value of this function. If omitted or @code{nil}, return a |