emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/mail/smtpmail.el


From: Simon Josefsson
Subject: [Emacs-diffs] Changes to emacs/lisp/mail/smtpmail.el
Date: Mon, 11 Oct 2004 14:49:03 -0400

Index: emacs/lisp/mail/smtpmail.el
diff -c emacs/lisp/mail/smtpmail.el:1.68 emacs/lisp/mail/smtpmail.el:1.69
*** emacs/lisp/mail/smtpmail.el:1.68    Fri May 28 05:56:19 2004
--- emacs/lisp/mail/smtpmail.el Mon Oct 11 18:42:00 2004
***************
*** 471,496 ****
      (if (null (and cred (condition-case ()
                            (progn
                              (require 'starttls)
!                             (call-process starttls-program))
                          (error nil))))
        ;; The normal case.
        (open-network-stream "SMTP" process-buffer host port)
        (let* ((cred-key (smtpmail-cred-key cred))
             (cred-cert (smtpmail-cred-cert cred))
             (starttls-extra-args
!             (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 "--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)
--- 471,502 ----
      (if (null (and cred (condition-case ()
                            (progn
                              (require 'starttls)
!                             (call-process (if starttls-use-gnutls
!                                               starttls-gnutls-program
!                                             starttls-program)))
                          (error nil))))
        ;; The normal case.
        (open-network-stream "SMTP" process-buffer host port)
        (let* ((cred-key (smtpmail-cred-key cred))
             (cred-cert (smtpmail-cred-cert cred))
             (starttls-extra-args
!             (append
!              starttls-extra-args
!              (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 "--key-file" cred-key "--cert-file" cred-cert))))
             (starttls-extra-arguments
!             (append
!              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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]