diff options
author | Russ Housley <housley@vigilsec.com> | 2019-07-20 06:58:55 -0400 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-07-20 12:58:55 +0200 |
commit | 23608be1bc0ce8a4ac5fbaba92af905c88ea4ab6 (patch) | |
tree | 67be142d26a66e2a874502f60c3e97d0059bd769 /pyasn1_modules/rfc6019.py | |
parent | 06f5be85d5229cffeb24f9ae622df665d7ae506b (diff) | |
download | pyasn1-modules-23608be1bc0ce8a4ac5fbaba92af905c88ea4ab6.tar.gz |
Added maps for use with openType (#53)
Diffstat (limited to 'pyasn1_modules/rfc6019.py')
-rw-r--r-- | pyasn1_modules/rfc6019.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/pyasn1_modules/rfc6019.py b/pyasn1_modules/rfc6019.py index 9cdf2ab..7816593 100644 --- a/pyasn1_modules/rfc6019.py +++ b/pyasn1_modules/rfc6019.py @@ -1,6 +1,7 @@ # This file is being contributed to pyasn1-modules software. # # Created by Russ Housley. +# Modified by Russ Housley to add a map for use with opentypes. # # Copyright (c) 2019, Vigil Security, LLC # License: http://snmplabs.com/pyasn1/license.html @@ -21,13 +22,20 @@ MAX = float('inf') class BinaryTime(univ.Integer): pass - BinaryTime.subtypeSpec = constraint.ValueRangeConstraint(0, MAX) + # CMS Attribute for representing signing time in BinaryTime id_aa_binarySigningTime = univ.ObjectIdentifier('1.2.840.113549.1.9.16.2.46') - class BinarySigningTime(BinaryTime): pass + + +# Map of Attribute Type OIDs to Attributes +# To be added to the ones that are in rfc5652.py + +cmsAttributesMapUpdate = { + id_aa_binarySigningTime: BinarySigningTime(), +} |