mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(smtpmail-open-stream): Bind
starttls-extra-arguments too, if starttls.el uses GNUTLS.
This commit is contained in:
parent
c7bd999c1c
commit
4aa609dc30
1 changed files with 8 additions and 1 deletions
|
|
@ -483,7 +483,14 @@ This is relative to `smtpmail-queue-dir'.")
|
|||
(setq cred-key (expand-file-name cred-key)))
|
||||
(file-regular-p
|
||||
(setq cred-cert (expand-file-name cred-cert))))
|
||||
(list "--key-file" cred-key "--cert-file" cred-cert))))
|
||||
(list "--key-file" cred-key "--cert-file" cred-cert)))
|
||||
(starttls-extra-arguments
|
||||
(when (and (stringp cred-key) (stringp cred-cert)
|
||||
(file-regular-p
|
||||
(setq cred-key (expand-file-name cred-key)))
|
||||
(file-regular-p
|
||||
(setq cred-cert (expand-file-name cred-cert))))
|
||||
(list "--x509keyfile" cred-key "--x509certfile" cred-cert))))
|
||||
(starttls-open-stream "SMTP" process-buffer host port)))))
|
||||
|
||||
(defun smtpmail-try-auth-methods (process supported-extensions host port)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue