diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-12 10:09:19 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-12 10:11:01 +0100 |
commit | e9be3b2e7bea44e7f877efe902ff8d5b10eaa53a (patch) | |
tree | aa4fd0c96feb17e3d3bcfc3af9e0f6df0ca8afcf /openpgp-ffi/src/tpk.rs | |
parent | d9c98dfdd3b679340ec60bd68611eecdfa5d790e (diff) |
openpgp: Drop superfluous function.
Diffstat (limited to 'openpgp-ffi/src/tpk.rs')
-rw-r--r-- | openpgp-ffi/src/tpk.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<TPK> { 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. |