Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ql-https.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@
(defun extract-openssl-digest (output)
"Extracts digest from output of `openssl dgst'"
(let ((space-pos (position #\Space output)))
(subseq output (1+ space-pos)))) ; exclude space itself
(if space-pos
;; strip everything before the space (space itself included)
(subseq output (1+ space-pos))
;; on some systems the output of openssl doens't contain the
;; sha file prefix: SHA1(filename)= <hash>
;; so we return the output as is
;; see issue #31
output)))

#-sbcl
(defun md5 (file)
Expand Down
Loading