diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-11 17:40:39 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-11 17:40:39 +0100 |
commit | 30ac57a2a17b4595d9e5bccc6c0073810ffcc429 (patch) | |
tree | 209d3e98b78980b267ca7573cf614cb15954d963 /openpgp-ffi/include | |
parent | d7b10e952b964d363527e94d49fa057902d21672 (diff) |
openpgp: Use absolute expiration time in cert.
- The certificate is a mid-level interface, and should therefore use
the more user-friendly way of specifying expiration.
- Fixes #429.
Diffstat (limited to 'openpgp-ffi/include')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index 08b035bf..14afd4bc 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -921,18 +921,15 @@ pgp_status_t pgp_cert_alive(pgp_error_t *errp, pgp_cert_t cert, pgp_policy_t policy, time_t when); /*/ -/// Changes the Cert's expiration. -/// -/// Expiry is when the key should expire in seconds relative to the -/// key's creation (not the current time). +/// Sets the key to expire at the given time. /// /// This function consumes `cert` and returns a new `Cert`. /*/ -pgp_cert_t pgp_cert_set_validity_period(pgp_error_t *errp, +pgp_cert_t pgp_cert_set_expiration_time(pgp_error_t *errp, pgp_cert_t cert, pgp_policy_t policy, pgp_signer_t signer, - uint32_t expiry); + time_t expiry); /*/ /// Returns whether the Cert includes any secret key material. |