Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rfc4043.py44 linesDownload Raw Back to pyasn1_modules
1#2# This file is part of pyasn1-modules software.3#4# Created by Russ Housley with assistance from asn1ate v.0.6.0.5#6# Copyright (c) 2019, Vigil Security, LLC7# License: http://snmplabs.com/pyasn1/license.html8#9# Internet X.509 Public Key Infrastructure Permanent Identifier10#11# ASN.1 source from:12# https://www.rfc-editor.org/rfc/rfc4043.txt13#14 15from pyasn1.type import char16from pyasn1.type import namedtype17from pyasn1.type import univ18 19from pyasn1_modules import rfc528020 21 22id_pkix = univ.ObjectIdentifier((1, 3, 6, 1, 5, 5, 7, ))23 24id_on = id_pkix + (8, )25 26id_on_permanentIdentifier = id_on + (3, )27 28 29class PermanentIdentifier(univ.Sequence):30    componentType = namedtype.NamedTypes(31        namedtype.OptionalNamedType('identifierValue', char.UTF8String()),32        namedtype.OptionalNamedType('assigner', univ.ObjectIdentifier())33    )34 35 36# Map of Other Name OIDs to Other Name is added to the37# ones that are in rfc5280.py38 39_anotherNameMapUpdate = {40    id_on_permanentIdentifier: PermanentIdentifier(),41}42 43rfc5280.anotherNameMap.update(_anotherNameMapUpdate)44 
codekingpro/portable-devtools · Team Ai