diff options
author | Rob Austein <sra@hactrn.net> | 2008-06-06 23:01:56 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-06-06 23:01:56 +0000 |
commit | ce312971867f0492bd9bae16734016917b220a8b (patch) | |
tree | bf6d8e04a4136831451faf60c7ee8ce719a7d994 /rpkid/pubd.py | |
parent | 88524489465b9ab52e3df199e18b33da34c7a6fb (diff) |
Remove last (and now gratuitous) dependency on rpki.rpki_engine module
svn path=/rpkid/pubd.py; revision=1853
Diffstat (limited to 'rpkid/pubd.py')
-rwxr-xr-x | rpkid/pubd.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rpkid/pubd.py b/rpkid/pubd.py index 4e1ebcc9..0cfe0592 100755 --- a/rpkid/pubd.py +++ b/rpkid/pubd.py @@ -27,9 +27,9 @@ Default configuration file is pubd.conf, override with --config option. import traceback, os, time, getopt, sys, MySQLdb, lxml.etree import rpki.resource_set, rpki.up_down, rpki.left_right, rpki.x509, rpki.sql import rpki.https, rpki.config, rpki.exceptions, rpki.relaxng, rpki.log -import rpki.rpki_engine, rpki.publication +import rpki.publication -class pubd_context(rpki.rpki_engine.rpkid_context): +class pubd_context(object): """A container for various pubd parameters.""" def __init__(self, cfg): @@ -83,6 +83,17 @@ class pubd_context(rpki.rpki_engine.rpkid_context): rpki.log.error(traceback.format_exc()) return 500, "Could not process PDU: %s" % data + ## @var https_ta_cache + # HTTPS trust anchor cache, to avoid regenerating it for every TLS connection. + https_ta_cache = None + + def clear_https_ta_cache(self): + """Clear dynamic TLS trust anchors.""" + + if self.https_ta_cache is not None: + rpki.log.debug("Clearing HTTPS trusted cert cache") + self.https_ta_cache = None + def build_https_ta_cache(self): """Build dynamic TLS trust anchors.""" if self.https_ta_cache is None: |