diff options
author | Rob Austein <sra@hactrn.net> | 2010-09-07 22:45:15 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-09-07 22:45:15 +0000 |
commit | 86d5be3d87a536af62673810389020c20f09578b (patch) | |
tree | 06351d9eb7165e06f513286fc5fe274af33e56b2 /rpkid/rpki/x509.py | |
parent | 426bccab012d032e1b675b2ac3faacd2dda5571d (diff) |
Add support for extracting signingTime from CMS messages.
svn path=/pow/POW-0.7/POW.c; revision=3440
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index 0fef3235..5c3cc37f 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -843,6 +843,12 @@ class CMS_object(DER_object): self.clear() self.content = content + def get_signingTime(self): + """ + Extract signingTime from CMS signed attributes. + """ + return rpki.sundial.datetime.fromUTCTime(self.get_POW().signingTime()) + def verify(self, ta): """ Verify CMS wrapper and store inner content. |