rfc2314.py (1094B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\carbon\common\lib\pyasn1_modules\rfc2314.py 2 from pyasn1.type import tag, namedtype, namedval, univ, constraint 3 from pyasn1_modules.rfc2459 import * 4 5 class Attributes(univ.SetOf): 6 componentType = Attribute() 7 8 9 class Version(univ.Integer): 10 pass 11 12 13 class CertificationRequestInfo(univ.Sequence): 14 componentType = namedtype.NamedTypes(namedtype.NamedType('version', Version()), namedtype.NamedType('subject', Name()), namedtype.NamedType('subjectPublicKeyInfo', SubjectPublicKeyInfo()), namedtype.NamedType('attributes', Attributes().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0)))) 15 16 17 class Signature(univ.BitString): 18 pass 19 20 21 class SignatureAlgorithmIdentifier(AlgorithmIdentifier): 22 pass 23 24 25 class CertificationRequest(univ.Sequence): 26 componentType = namedtype.NamedTypes(namedtype.NamedType('certificationRequestInfo', CertificationRequestInfo()), namedtype.NamedType('signatureAlgorithm', SignatureAlgorithmIdentifier()), namedtype.NamedType('signature', Signature()))