diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-11-29 15:42:28 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-12-03 20:43:32 +0100 |
commit | 6b5c2e802eef35f1752713d353d3001f43980841 (patch) | |
tree | b7e246c54c221b22f4f726ae031f2c70fe55d1bc /src/leap/bitmask/keymanager/openpgp.py | |
parent | b7cf7b976fc7e2d857e19ad0dde4681c8c7a8b71 (diff) |
[bug] key can tell if it should be renewed
Diffstat (limited to 'src/leap/bitmask/keymanager/openpgp.py')
-rw-r--r-- | src/leap/bitmask/keymanager/openpgp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/keymanager/openpgp.py b/src/leap/bitmask/keymanager/openpgp.py index d82f8e52..a856ee06 100644 --- a/src/leap/bitmask/keymanager/openpgp.py +++ b/src/leap/bitmask/keymanager/openpgp.py @@ -178,7 +178,7 @@ class OpenPGPScheme(object): current_sec_key = yield self.get_key(address, private=True) current_pub_key = yield self.get_key(address, private=False) with TempGPGWrapper([current_sec_key], self._gpgbinary) as gpg: - if current_sec_key.has_expired(): + if current_sec_key.is_expired(): temporary_extension_period = '1' # extend for 1 extra day gpg.extend_key(current_sec_key.fingerprint, validity=temporary_extension_period) |