diff options
| author | Jens Schmidt | 2025-05-05 13:47:17 +0200 |
|---|---|---|
| committer | Robert Pluim | 2025-05-12 16:52:06 +0200 |
| commit | d11570d80ee18932ffb0ceed552313ada2879bcb (patch) | |
| tree | 6e6060f7d31ae21f0a72859e135e0931435141fa | |
| parent | b91efd401d68f22510856008ce79121b8b9bd199 (diff) | |
| download | emacs-d11570d80ee18932ffb0ceed552313ada2879bcb.tar.gz emacs-d11570d80ee18932ffb0ceed552313ada2879bcb.zip | |
Require key and cert when searching for client cert
* lisp/net/network-stream.el (network-stream-certificate):
Require :key and :cert when searching auth sources for a client
certificate. (Bug#78189)
| -rw-r--r-- | lisp/net/network-stream.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/network-stream.el b/lisp/net/network-stream.el index 1bd960025aa..93f3682883a 100644 --- a/lisp/net/network-stream.el +++ b/lisp/net/network-stream.el | |||
| @@ -249,7 +249,8 @@ gnutls-boot (as returned by `gnutls-boot-parameters')." | |||
| 249 | (ignore-errors | 249 | (ignore-errors |
| 250 | (car (auth-source-search :max 1 | 250 | (car (auth-source-search :max 1 |
| 251 | :host host | 251 | :host host |
| 252 | :port (format "%s" service))))) | 252 | :port (format "%s" service) |
| 253 | :require '(:key :cert))))) | ||
| 253 | (key (plist-get auth-info :key)) | 254 | (key (plist-get auth-info :key)) |
| 254 | (cert (plist-get auth-info :cert))) | 255 | (cert (plist-get auth-info :cert))) |
| 255 | (and key cert (file-readable-p key) (file-readable-p cert) | 256 | (and key cert (file-readable-p key) (file-readable-p cert) |