diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-12-18 20:31:18 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-02-25 11:35:21 -0600 |
commit | 3d544f4a85930c5d1611d193500744fc97f0aee1 (patch) | |
tree | a86343d0ed93ccf20e36ce203d9499cb322382a3 /src/leap/keymanager/validation.py | |
parent | 81232da09286f7f1812f6d3d182cd57665feaa1f (diff) |
[feat] Use fingerprints instead of key ids
- Resolves: #7500
Diffstat (limited to 'src/leap/keymanager/validation.py')
-rw-r--r-- | src/leap/keymanager/validation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/keymanager/validation.py b/src/leap/keymanager/validation.py index 734cfce9..8cf96da1 100644 --- a/src/leap/keymanager/validation.py +++ b/src/leap/keymanager/validation.py @@ -118,7 +118,9 @@ def can_upgrade(new_key, old_key): return True # New key signed by the old key - if old_key.key_id in new_key.signatures: + # 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 |