aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/left_right.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-09-04 22:50:24 +0000
committerRob Austein <sra@hactrn.net>2009-09-04 22:50:24 +0000
commitdd8a6c617d9b8c30582e926b7a3da6680ab0f6bc (patch)
tree402dbe80f59279967f1d536f38b582830fdf942f /rpkid/rpki/left_right.py
parent3bc20935ba333b88cdf3be4de04cc92a170cc1f9 (diff)
Have to revoke child certs when destroying child object.
svn path=/rpkid/rpki/left_right.py; revision=2735
Diffstat (limited to 'rpkid/rpki/left_right.py')
-rw-r--r--rpkid/rpki/left_right.py10
1 files changed, 9 insertions, 1 deletions
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 <child/> 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):
"""