openpgp: Raise error conditions instead of calling 'error'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 2 May 2020 21:44:00 +0000 (23:44 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 4 May 2020 07:56:13 +0000 (09:56 +0200)
commit05d973eef2488d647277dc3f1bde9d019f17eef5
tree7867d3bb1fe4cfa1fe744242c2d7082cc4745b42
parent041dc3a9c0694ada41b86115b9774a23c9d50f73
openpgp: Raise error conditions instead of calling 'error'.

* guix/openpgp.scm (&openpgp-error, &openpgp-unrecognized-packet-error)
(&openpgp-invalid-signature-error): New error conditions.
(openpgp-hash-algorithm): Add 'signature-port' parameter.  Raise an
error condition instead of calling 'error'.
(parse-subpackets): Likewise.
(get-data): Raise instead of calling 'error'.
(get-openpgp-detached-signature/ascii): Likewise.
(get-signature): Likewise.
guix/openpgp.scm