diff options
author | Tulio Casagrande <tcasagra@thoughtworks.com> | 2017-04-10 18:52:20 -0300 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-12-03 20:43:37 +0100 |
commit | 85c0e9b95dfc3d7134e47aac7e7e485270b42b96 (patch) | |
tree | fce3f93d1126af00fb01e872f0b720106cddabaf /src/leap | |
parent | 873012e432cd6125c3174a2bc6ef9498166d94ea (diff) |
[bug] remove change_key_expiration from the API
This was intended to offer the option of only extend the old key and
not change it for a new one. However, we don't plan to use this
behavior anymore.
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/bitmask/keymanager/__init__.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/leap/bitmask/keymanager/__init__.py b/src/leap/bitmask/keymanager/__init__.py index b6c36d3c..d1fd4edb 100644 --- a/src/leap/bitmask/keymanager/__init__.py +++ b/src/leap/bitmask/keymanager/__init__.py @@ -786,29 +786,6 @@ class KeyManager(object): pubkey.validation = validation yield self.put_key(pubkey) - @defer.inlineCallbacks - def change_key_expiration(self, expiration_time='1y', passphrase=None): - """ - Change the expiration date of the key pair bound to the user's address - by the expiration_time period, from the current day. - - :param expiration_time: new expiration time from current day in 'n', - 'nw', 'nm' or 'ny' where n is a number - :type expiration_time: str - - :return: The updated secret key, with new expiry date - :rtype: OpenPGPKey - - :raise KeyExpirationError: if invalid expiration time period - """ - my_secret_key = yield self.get_key(self._address, private=True) - renewed_key = yield self._openpgp.expire( - my_secret_key, - expiration_time=expiration_time, - passphrase=passphrase) - yield self._openpgp.reset_all_keys_sign_used() - defer.returnValue(renewed_key) - def _split_email(address): """ |