From bbcb61090da686d082645251f5f2b77044cef215 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Sat, 8 Oct 2016 01:51:43 +0200 Subject: [PATCH] implement drop request command for shell --- ca_shell.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ca_shell.py b/ca_shell.py index 594d4c4..7f63b88 100755 --- a/ca_shell.py +++ b/ca_shell.py @@ -35,6 +35,12 @@ class CAManagerShell(cmd.Cmd, object): 'Show certification authority information: DESCRIBE_CAS' raise NotImplementedError + def do_drop_request(self, l): + 'Delete a sign request: DROP_REQUEST' + request_id = l.split()[0] + + del self.ca_manager.request[request_id] + def do_gen_ca(self, l): 'Generate a certification authority: GEN_CA type id name' argv = l.split()