diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-12-21 19:26:55 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-02-25 11:35:24 -0600 |
commit | fdb6e285a97d5af21c7b3bdc02cba6fc21382f74 (patch) | |
tree | faf4545ad4999d5bdf2711b3c19de32865fc8176 /src/leap/keymanager/migrator.py | |
parent | 6222996d0805dfec1fab949b536adb0af08df0be (diff) |
[feat] Make EncryptionKey aware of the active address
Diffstat (limited to 'src/leap/keymanager/migrator.py')
-rw-r--r-- | src/leap/keymanager/migrator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/keymanager/migrator.py b/src/leap/keymanager/migrator.py index 11cf2439..9e4ae77c 100644 --- a/src/leap/keymanager/migrator.py +++ b/src/leap/keymanager/migrator.py @@ -32,6 +32,8 @@ from leap.keymanager.keys import ( KEYMANAGER_ACTIVE_TAG, KEYMANAGER_DOC_VERSION, + KEY_ADDRESS_KEY, + KEY_UIDS_KEY, KEY_VERSION_KEY, KEY_FINGERPRINT_KEY, KEY_VALIDATION_KEY, @@ -164,6 +166,8 @@ class KeyDocumentsMigrator(object): return succeed(None) key.content[KEY_VERSION_KEY] = KEYMANAGER_DOC_VERSION + key.content[KEY_UIDS_KEY] = key.content[KEY_ADDRESS_KEY] + del key.content[KEY_ADDRESS_KEY] del key.content[KEY_ID_KEY] del key.content[KEY_VALIDATION_KEY] del key.content[KEY_LAST_AUDITED_AT_KEY] |