1
Fork 0
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:
Simon Josefsson 2004-05-28 05:56:19 +00:00
parent c7bd999c1c
commit 4aa609dc30

View file

@ -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)