diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-12-05 15:12:56 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-12-03 20:43:32 +0100 |
commit | a164b1daa6bcbbf6bffe84d6b02ed2be43c29e7f (patch) | |
tree | baa5688b4237b51fa0e3c3bc73df1c384da7349b /src/leap/bitmask | |
parent | 9430464704fc58460613c4225f5a0eb59617d4b5 (diff) |
[bug] sign_used flag is reset for all public keys when the key expiration date is extended
- this is required so that the key is re-attached to the first
outgoing email to all users who already have the expired key.
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/keymanager/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/keymanager/__init__.py b/src/leap/bitmask/keymanager/__init__.py index 7164cb91..6eeaecc9 100644 --- a/src/leap/bitmask/keymanager/__init__.py +++ b/src/leap/bitmask/keymanager/__init__.py @@ -793,7 +793,7 @@ class KeyManager(object): yield self.put_key(pubkey) @defer.inlineCallbacks - def extend_key(self, validity='1y', passphrase=None): + def extend_key_expiration(self, validity='1y', passphrase=None): """ extend the expiration date of the key pair bound to the user's address by the validity period, from the key's creation date. @@ -810,6 +810,7 @@ class KeyManager(object): my_secret_key = yield self.get_key(self._address, private=True) renewed_key = yield self._openpgp.extend_key(my_secret_key, validity, passphrase) + yield self._openpgp.reset_all_keys_sign_used() defer.returnValue(renewed_key) |