aboutsummaryrefslogtreecommitdiff
path: root/rpkid/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-05-11 06:37:32 +0000
committerRob Austein <sra@hactrn.net>2009-05-11 06:37:32 +0000
commita780a7809f44fdd4d088f81f3f8b97a055fbc9da (patch)
treeae1da6644a3a90b5d3fcfa123c64146d3854b6d2 /rpkid/pubd.py
parent125c61b4f7040e1206fa3eb5b627147bbbd5645b (diff)
Cosmetic doc changes.
svn path=/rpkid/irbe-setup.py; revision=2424
Diffstat (limited to 'rpkid/pubd.py')
-rwxr-xr-xrpkid/pubd.py25
1 files changed, 18 insertions, 7 deletions
diff --git a/rpkid/pubd.py b/rpkid/pubd.py
index 05b17ced..5fb04dcb 100755
--- a/rpkid/pubd.py
+++ b/rpkid/pubd.py
@@ -30,7 +30,9 @@ import rpki.https, rpki.config, rpki.exceptions, rpki.relaxng, rpki.log
import rpki.publication
class pubd_context(object):
- """A container for various pubd parameters."""
+ """
+ A container for various pubd parameters.
+ """
def __init__(self, cfg):
@@ -47,7 +49,9 @@ class pubd_context(object):
self.publication_base = cfg.get("publication-base", "publication/")
def handler_common(self, query, client, cb, certs, crl = None):
- """Common PDU handler code."""
+ """
+ Common PDU handler code.
+ """
def done(r_msg):
reply = rpki.publication.cms_msg.wrap(r_msg, self.pubd_key, self.pubd_cert, crl)
@@ -58,7 +62,9 @@ class pubd_context(object):
q_msg.serve_top_level(self, client, done)
def control_handler(self, query, path, cb):
- """Process one PDU from the IRBE."""
+ """
+ Process one PDU from the IRBE.
+ """
rpki.log.trace()
try:
self.sql.ping()
@@ -70,7 +76,9 @@ class pubd_context(object):
cb(500, "Unhandled exception %s" % data)
def client_handler(self, query, path, cb):
- """Process one PDU from a client."""
+ """
+ Process one PDU from a client.
+ """
rpki.log.trace()
try:
self.sql.ping()
@@ -95,14 +103,17 @@ class pubd_context(object):
https_ta_cache = None
def clear_https_ta_cache(self):
- """Clear dynamic TLS trust anchors."""
-
+ """
+ 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."""
+ """
+ Build dynamic TLS trust anchors.
+ """
if self.https_ta_cache is None:
clients = rpki.publication.client_elt.sql_fetch_all(self)
self.https_ta_cache = rpki.https.build_https_ta_cache(