diff options
Diffstat (limited to 'pyasn1_modules/rfc5480.py')
-rw-r--r-- | pyasn1_modules/rfc5480.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pyasn1_modules/rfc5480.py b/pyasn1_modules/rfc5480.py index 0113826..84c0c11 100644 --- a/pyasn1_modules/rfc5480.py +++ b/pyasn1_modules/rfc5480.py @@ -18,6 +18,7 @@ from pyasn1.type import namedtype from pyasn1.type import univ from pyasn1_modules import rfc3279 +from pyasn1_modules import rfc5280 # These structures are the same as RFC 3279. @@ -170,7 +171,7 @@ sect571r1 = univ.ObjectIdentifier('1.3.132.0.39') # Map of Algorithm Identifier OIDs to Parameters # The algorithm is not included if the parameters MUST be absent -algorithmIdentifierMapUpdate = { +_algorithmIdentifierMapUpdate = { rsaEncryption: univ.Null(), md2WithRSAEncryption: univ.Null(), md5WithRSAEncryption: univ.Null(), @@ -181,4 +182,9 @@ algorithmIdentifierMapUpdate = { id_ecPublicKey: ECParameters(), id_ecDH: ECParameters(), id_ecMQV: ECParameters(), -}
\ No newline at end of file +} + + +# Add these Algorithm Identifier map entries to the ones in rfc5280.py + +rfc5280.algorithmIdentifierMap.update(_algorithmIdentifierMapUpdate) |