From dd8a6c617d9b8c30582e926b7a3da6680ab0f6bc Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 4 Sep 2009 22:50:24 +0000 Subject: Have to revoke child certs when destroying child object. svn path=/rpkid/rpki/left_right.py; revision=2735 --- rpkid/rpki/left_right.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rpkid/rpki/left_right.py') diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py index 77336b60..3308d7e6 100644 --- a/rpkid/rpki/left_right.py +++ b/rpkid/rpki/left_right.py @@ -762,6 +762,14 @@ class child_elt(data_elt): self.clear_https_ta_cache = False cb() + def serve_destroy_hook(self, cb, eb): + """ + Extra server actions when destroying a child_elt. + """ + def loop(iterator, child_cert): + child_cert.revoke(iterator, eb) + rpki.async.iterator(self.child_certs(), loop, cb) + def endElement(self, stack, name, text): """ Handle subelements of element. These require special @@ -926,7 +934,7 @@ class msg(rpki.xml_utils.msg, left_right_namespace): def done(): cb(r_msg) - rpki.async.iterator(self, loop, done, unwind_stack = True) + rpki.async.iterator(self, loop, done) class sax_handler(rpki.xml_utils.sax_handler): """ -- cgit v1.2.3