aboutsummaryrefslogtreecommitdiff
path: root/rpkid/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-09-03 23:09:07 +0000
committerRob Austein <sra@hactrn.net>2010-09-03 23:09:07 +0000
commit426bccab012d032e1b675b2ac3faacd2dda5571d (patch)
treeaa04294d615c38c1f612d38a20c88d5114d612bc /rpkid/pubd.py
parentb5dd5fe7f0f336bb54cf454f3222c8f581f7136c (diff)
Add new "Auto_update" flavor of DER objects: this is like Auto_file,
but saves the filename from which it was loaded, and attempts to reload itself automatically if the file's st_mtime changes. svn path=/rpkid/irdbd.py; revision=3439
Diffstat (limited to 'rpkid/pubd.py')
-rw-r--r--rpkid/pubd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpkid/pubd.py b/rpkid/pubd.py
index ca097923..a9ddca6b 100644
--- a/rpkid/pubd.py
+++ b/rpkid/pubd.py
@@ -52,10 +52,10 @@ class pubd_context(object):
self.sql = rpki.sql.session(cfg)
- self.bpki_ta = rpki.x509.X509(Auto_file = cfg.get("bpki-ta"))
- self.irbe_cert = rpki.x509.X509(Auto_file = cfg.get("irbe-cert"))
- self.pubd_cert = rpki.x509.X509(Auto_file = cfg.get("pubd-cert"))
- self.pubd_key = rpki.x509.RSA( Auto_file = cfg.get("pubd-key"))
+ self.bpki_ta = rpki.x509.X509(Auto_update = cfg.get("bpki-ta"))
+ self.irbe_cert = rpki.x509.X509(Auto_update = cfg.get("irbe-cert"))
+ self.pubd_cert = rpki.x509.X509(Auto_update = cfg.get("pubd-cert"))
+ self.pubd_key = rpki.x509.RSA( Auto_update = cfg.get("pubd-key"))
self.https_server_host = cfg.get("server-host", "")
self.https_server_port = int(cfg.get("server-port", "4434"))