Browse Source

authenticate: Add compatibility hack for Guile 2.0.5.

* guix/scripts/authenticate.scm (%default-port-conversion-strategy): New
  variable.  Reported by Andreas Enge <andreas@enge.fr>.
gn-latest-20200428
Ludovic Courtès 6 years ago
parent
commit
4cca91832b
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      guix/scripts/authenticate.scm

+ 7
- 0
guix/scripts/authenticate.scm View File

@@ -81,6 +81,13 @@ to stdout upon success."
(canonical-sexp->string subject)))
(leave (_ "error: corrupt signature data: ~a~%")
(canonical-sexp->string signature)))))

(define %default-port-conversion-strategy
;; This fluid is in Guile > 2.0.5.
(if (defined? '%default-port-conversion-strategy)
(@ (guile) %default-port-conversion-strategy)
(make-fluid #f)))

;;;
;;; Entry point with 'openssl'-compatible interface. We support this


Loading…
Cancel
Save