Skip to content

Commit

Permalink
Remove OpenSSL warning about reading input from stdin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Axelsson committed Jul 25, 2024
1 parent b19260d commit 14c3dd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x509-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,13 @@ Return output buffer."
(coding-system-for-write 'no-conversion))
(apply #'call-process-region args))
(apply #'call-process-region args)))
;; Since OpenSSL 3, there is a warning when reading input from stdin and
;; not from a file specified by an -in parameter. Delete that warning
;; line from the output. "Warning: Reading certificate from stdin since
;; no -in or -new option is given"
(goto-char (point-min))
(if (looking-at-p "Warning: Reading ")
(delete-line))
(set-buffer-modified-p nil)
(setq buffer-read-only t))
buf))
Expand Down

0 comments on commit 14c3dd2

Please sign in to comment.