diff options
author | Russ Housley <housley@vigilsec.com> | 2019-07-14 17:31:10 -0400 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-07-14 23:31:10 +0200 |
commit | 43d7bbfc4597270e93924671d6caa97606e1202f (patch) | |
tree | 2e7632e22e611a7105a826fa017913147e02baca /pyasn1_modules | |
parent | cada75a827ec6fb4f3c3dbb7a81cf8d7582cd36d (diff) | |
download | pyasn1-modules-43d7bbfc4597270e93924671d6caa97606e1202f.tar.gz |
Updated rfc5280.py for AlgorithmIdentifier opentype support (#50)
Diffstat (limited to 'pyasn1_modules')
-rw-r--r-- | pyasn1_modules/rfc5280.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pyasn1_modules/rfc5280.py b/pyasn1_modules/rfc5280.py index 0bcc31d..70051ec 100644 --- a/pyasn1_modules/rfc5280.py +++ b/pyasn1_modules/rfc5280.py @@ -3,7 +3,8 @@ # This file is part of pyasn1-modules software. # # Created by Stanisław Pitucha with asn1ate tool. -# Updated by Russ Housley to add openType support for ORAddress Extension Attributes. +# Updated by Russ Housley for ORAddress Extension Attribute opentype support. +# Updated by Russ Housley for AlgorithmIdentifier opentype support. # # Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html @@ -282,10 +283,14 @@ class CertificateSerialNumber(univ.Integer): pass +algorithmIdentifierMap = {} + class AlgorithmIdentifier(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('algorithm', univ.ObjectIdentifier()), - namedtype.OptionalNamedType('parameters', univ.Any(), openType=opentype.OpenType) + namedtype.OptionalNamedType('parameters', univ.Any(), + openType=opentype.OpenType('algorithm', algorithmIdentifierMap) + ) ) |