diff options
author | Zara Gebru <zgebru@thoughtworks.com> | 2016-06-16 14:41:54 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-01-26 14:55:11 +0100 |
commit | 847bc7ddd051c4656d86a6eda1b4e6cbdb5b1c5e (patch) | |
tree | fd61837900c65efd44021b7d1fff59c8085a8bff /src/leap/bitmask/keymanager/validation.py | |
parent | 9932121dd3da2611f14a59b27c40042dadff80a3 (diff) |
Check validity of key signature
Check if a new fetched key was signed by a old key with the same address.
Please do not merge before: https://github.com/isislovecruft/python-gnupg/pull/150
- Resolves #8112
Diffstat (limited to 'src/leap/bitmask/keymanager/validation.py')
-rw-r--r-- | src/leap/bitmask/keymanager/validation.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/leap/bitmask/keymanager/validation.py b/src/leap/bitmask/keymanager/validation.py index 16a897e9..61adc0e1 100644 --- a/src/leap/bitmask/keymanager/validation.py +++ b/src/leap/bitmask/keymanager/validation.py @@ -121,9 +121,4 @@ def can_upgrade(new_key, old_key): return True # New key signed by the old key - # XXX: signatures are using key-ids instead of fingerprints - key_id = old_key.fingerprint[-16:] - if key_id in new_key.signatures: - return True - - return False + return new_key.is_signed_by(old_key) |