tests: gnupg: Factor out and export KEY-FINGERPRINT-VECTOR.
* guix/tests/gnupg.scm (key-fingerprint-vector): New procedure. Export it. (key-fingerprint): Use it. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
07145c8a8c
commit
037c2b6d3a
@ -35,6 +35,7 @@
|
||||
|
||||
read-openpgp-packet
|
||||
key-fingerprint
|
||||
key-fingerprint-vector
|
||||
key-id))
|
||||
|
||||
(define gpg-command
|
||||
@ -82,7 +83,10 @@ process is terminated afterwards."
|
||||
(open-bytevector-input-port
|
||||
(call-with-input-file file read-radix-64))))
|
||||
|
||||
(define key-fingerprint-vector
|
||||
(compose openpgp-public-key-fingerprint
|
||||
read-openpgp-packet))
|
||||
|
||||
(define key-fingerprint
|
||||
(compose openpgp-format-fingerprint
|
||||
openpgp-public-key-fingerprint
|
||||
read-openpgp-packet))
|
||||
key-fingerprint-vector))
|
||||
|
Loading…
x
Reference in New Issue
Block a user