pk-crypto: Don't use Ed25519 when libgcrypt is older than 1.6.0.
authorLudovic Courtès <ludo@gnu.org>
Thu, 20 Mar 2014 21:33:52 +0000 (22:33 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 20 Mar 2014 22:06:47 +0000 (23:06 +0100)
commit1fda6840a892e55b579dfeb8f4590b5cd2874662
treee4abf299e7bfa8df30ec6ca743a761e09d744923
parent2f66e64c53ccae423a791b51cd635ad892f0feab
pk-crypto: Don't use Ed25519 when libgcrypt is older than 1.6.0.

* guix/pk-crypto.scm (gcrypt-version): New procedure.
* guix/scripts/archive.scm (%key-generation-parameters): New variable.
  (%options) <generate-key>: Use it.
* tests/pk-crypto.scm ("sign + verify, Ed25519"): Skip if using gcrypt < 1.6.0.
guix/pk-crypto.scm
guix/scripts/archive.scm
tests/pk-crypto.scm