diff options
| author | J08nY | 2017-08-06 03:35:16 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-06 03:36:04 +0200 |
| commit | 570dfe8007d21593816d90df21f9f4fa25a7dae3 (patch) | |
| tree | 517d013178fd2e33be6a5b7f29fd0f5fc2bb34c0 /src/mailman_pgp/commands/eml_key.py | |
| parent | 627f6273101cd3bdbe8a2221b741af68155b2932 (diff) | |
| download | mailman-pgp-570dfe8007d21593816d90df21f9f4fa25a7dae3.tar.gz mailman-pgp-570dfe8007d21593816d90df21f9f4fa25a7dae3.tar.zst mailman-pgp-570dfe8007d21593816d90df21f9f4fa25a7dae3.zip | |
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
| -rw-r--r-- | src/mailman_pgp/commands/eml_key.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py index 417fd95..5c53699 100644 --- a/src/mailman_pgp/commands/eml_key.py +++ b/src/mailman_pgp/commands/eml_key.py @@ -42,6 +42,7 @@ from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST, KeyChangeModWorkflow, KeyChangeWorkflow) from mailman_pgp.workflows.key_confirm import CONFIRM_REQUEST +from mailman_pgp.workflows.key_revoke import KeyRevokeWorkflow def _cmd_set(pgp_list, mlist, msg, msgdata, arguments, results): @@ -328,7 +329,11 @@ def _cmd_revoke(pgp_list, mlist, msg, msgdata, arguments, results): if not key_usable(key_copy, {KeyFlags.EncryptCommunications, KeyFlags.Sign}): # Start reset process. - # TODO: finish this. + with transaction(): + pgp_address.key = None + pgp_address.key_confirmed = False + workflow = KeyRevokeWorkflow(mlist, pgp_address) + list(workflow) print('Key needs to be reset.', file=results) else: # Just update key. |
