From e9be3b2e7bea44e7f877efe902ff8d5b10eaa53a Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 12 Feb 2019 10:09:19 +0100 Subject: openpgp: Drop superfluous function. --- openpgp-ffi/src/tpk.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openpgp-ffi') diff --git a/openpgp-ffi/src/tpk.rs b/openpgp-ffi/src/tpk.rs index e8613537..039b5430 100644 --- a/openpgp-ffi/src/tpk.rs +++ b/openpgp-ffi/src/tpk.rs @@ -348,7 +348,8 @@ fn pgp_tpk_set_expiry(errp: Option<&mut *mut ::error::Error>, -> Maybe { let tpk = tpk.move_from_raw(); - tpk.set_expiry_in_seconds(expiry).move_into_raw(errp) + tpk.set_expiry(Some(time::Duration::seconds(expiry as i64))) + .move_into_raw(errp) } /// Returns whether the TPK includes any secret key material. -- cgit v1.2.3