From 67abd92024ac01344e739f72099d4fa4685db04a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 25 Nov 2019 13:44:56 +0100 Subject: openpgp: Remove Signature::signature_expired. - See #371. --- openpgp-ffi/src/packet/signature.rs | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'openpgp-ffi/src') 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 -- cgit v1.2.3