diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 12:35:25 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-07 16:09:13 +0100 |
commit | 1992f412fec1bfff0ecf68d0a4127edc9976744e (patch) | |
tree | 43c8a098b5dd80c9e2ed964b0c6f4409d4fe5e38 /tool/src/commands/key.rs | |
parent | 188a545d2ab09302baaae6a7e28bc07dc404464d (diff) |
openpgp: Rename CertBuilder::set_expiration.
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r-- | tool/src/commands/key.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index dc9807d7..2a9e9cf0 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -41,7 +41,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { match m.value_of("expiry") { Some(expiry) if expiry == "never" => - builder = builder.set_expiration(None), + builder = builder.set_expiration_time(None), Some(expiry) => { let mut expiry = expiry.chars().peekable(); @@ -102,13 +102,13 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { junk, count, factor)); } - builder = builder.set_expiration( + builder = builder.set_expiration_time( Some(std::time::Duration::new(even_off(count * factor), 0))); } // Not specified. Use the default. None => { - builder = builder.set_expiration( + builder = builder.set_expiration_time( Some(std::time::Duration::new(even_off(3 * SECONDS_IN_YEAR), 0)) ); } |