summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/include
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-25 14:04:41 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-09 13:24:56 +0100
commit531e3252b86f6eacf02d7181c280e8c01c4a55f4 (patch)
tree998ac3f660f37e9163f124dcec279749b977a168 /openpgp-ffi/include
parent7f3d55f777f44f9046ac91afe8e398984f1e4ba1 (diff)
openpgp: Return Result from Signature::signature_alive.
- See #371.
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r--openpgp-ffi/include/sequoia/openpgp.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h
index 2672836b..f35565d3 100644
--- a/openpgp-ffi/include/sequoia/openpgp.h
+++ b/openpgp-ffi/include/sequoia/openpgp.h
@@ -428,7 +428,8 @@ bool pgp_signature_is_group_key(pgp_signature_t signature);
///
/// [Section 5.2.3.4 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.2.3.4
/*/
-bool pgp_signature_alive(pgp_signature_t signature, time_t when);
+pgp_status_t pgp_signature_alive(pgp_error_t *errp,
+ pgp_signature_t signature, time_t when);
/*/
/// Returns whether the signature is alive at the specified time.
@@ -480,8 +481,10 @@ bool pgp_signature_alive(pgp_signature_t signature, time_t when);
///
/// [Section 5.2.3.4 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.2.3.4
/*/
-bool pgp_signature_alive_with_tolerance(pgp_signature_t signature,
- time_t time, unsigned int tolerance);
+pgp_status_t pgp_signature_alive_with_tolerance(pgp_error_t *errp,
+ pgp_signature_t signature,
+ time_t time,
+ unsigned int tolerance);
/*/
/// Returns whether the signature is expired at the specified time.