* smime.el (smime-x509-hash): Use `call-process' instead of
authorueno <ueno>
Wed, 8 Dec 1999 14:47:51 +0000 (14:47 +0000)
committerueno <ueno>
Wed, 8 Dec 1999 14:47:51 +0000 (14:47 +0000)
`call-process-region'.
(smime-x509-subject): Ditto.

smime.el

index 9df2468..ce7e984 100644 (file)
--- a/smime.el
+++ b/smime.el
   (with-current-buffer (get-buffer-create smime-output-buffer)
     (buffer-disable-undo)
     (erase-buffer)
-    (insert-file-contents cert-file)
-    (apply #'call-process-region
-          (point-min)(point-max) (car smime-x509-program)
-          t t nil (cons "-hash" (cdr smime-x509-program)))
+    (apply #'call-process (car smime-x509-program) nil t nil 
+          (append (cdr smime-x509-program) 
+                  (list "-hash" "-in" cert-file)))
     (if (zerop (buffer-size)) nil
       (buffer-substring (point-min) (1- (point-max))))))
 
   (with-current-buffer (get-buffer-create smime-output-buffer)
     (buffer-disable-undo)
     (erase-buffer)
-    (insert-file-contents cert-file)
-    (apply #'call-process-region
-          (point-min)(point-max) (car smime-x509-program)
-          t t nil (cons "-subject" (cdr smime-x509-program)))
+    (apply #'call-process (car smime-x509-program) nil t nil 
+          (append (cdr smime-x509-program)
+                  (list "-subject" "-in" cert-file)))
     (if (zerop (buffer-size)) nil
       (goto-char (point-min))
       (when (re-search-forward "^subject=" nil t)