summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/packet/signature.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-25 13:44:56 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-09 13:29:59 +0100
commit67abd92024ac01344e739f72099d4fa4685db04a (patch)
treef8450e7cf5940250a123e50d8792c7442a160a57 /openpgp-ffi/src/packet/signature.rs
parent88f43e115383c89fb83714e5dd6fbd2f9df16047 (diff)
openpgp: Remove Signature::signature_expired.
- See #371.
Diffstat (limited to 'openpgp-ffi/src/packet/signature.rs')
-rw-r--r--openpgp-ffi/src/packet/signature.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/openpgp-ffi/src/packet/signature.rs b/openpgp-ffi/src/packet/signature.rs
index 7e50f3a1..6ce3c0ac 100644
--- a/openpgp-ffi/src/packet/signature.rs
+++ b/openpgp-ffi/src/packet/signature.rs
@@ -244,19 +244,6 @@ fn pgp_signature_alive_with_tolerance(errp: Option<&mut *mut crate::error::Error
ffi_try_status!(sig.ref_raw().signature_alive(time, Some(tolerance)))
}
-/// Returns whether the signature is expired at the specified time.
-///
-/// If `when` is 0, then the current time is used.
-#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "C"
-fn pgp_signature_expired(sig: *const Signature, when: time_t) -> bool {
- let t = if when == 0 {
- None
- } else {
- Some(std::time::UNIX_EPOCH + std::time::Duration::new(when as u64, 0))
- };
- sig.ref_raw().signature_expired(t).is_ok()
-}
-
/// Returns whether the signature is alive at the specified time.
///
/// A signature is alive if the creation date is in the past, and the