aboutsummaryrefslogtreecommitdiff
path: root/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-08-04 22:16:34 +0000
committerRob Austein <sra@hactrn.net>2014-08-04 22:16:34 +0000
commit1d32064a1cfa3a32e99533f80030fd84b1c66b3b (patch)
treeb633d54158057185141db1f30cc8a170caa448ee /rpki/x509.py
parentaff5a1ca9e692a68fccff07bb7ed03b5bfa035df (diff)
rootd now uses publication protocol. Not yet usable outside smoketest
harness: still need to work out what BPKI configuration looks like with modern IRDB, and rootd doesn't yet handle restart correctly (will fail if any of its outputs already exist in pubd's database). svn path=/branches/tk705/; revision=5911
Diffstat (limited to 'rpki/x509.py')
-rw-r--r--rpki/x509.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/rpki/x509.py b/rpki/x509.py
index 44d9484e..2c7b5e5c 100644
--- a/rpki/x509.py
+++ b/rpki/x509.py
@@ -323,6 +323,14 @@ class DER_object(object):
else:
self.lastfail = None
+ @property
+ def mtime(self):
+ """
+ Retrieve os.stat().st_mtime for auto-update files.
+ """
+
+ return os.stat(self.filename).st_mtime
+
def check(self):
"""
Perform basic checks on a DER object.
@@ -1396,7 +1404,7 @@ class CMS_object(DER_object):
## @var debug_cms_certs
# Set this to True to log a lot of chatter about CMS certificates.
- debug_cms_certs = False
+ debug_cms_certs = True
## @var dump_using_dumpasn1
# Set this to use external dumpasn1 program, which is prettier and