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>.
This commit is contained in:
Ludovic Courtès 2014-05-16 10:22:19 +02:00
parent d0281fec03
commit 4cca91832b
1 changed files with 7 additions and 0 deletions

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