codekingpro/portable-devtools
114k
1#2# This file is part of pyasn1-modules software.3#4# Created by Russ Housley with some assistance from asn1ate v.0.6.0.5#6# Copyright (c) 2019, Vigil Security, LLC7# License: http://snmplabs.com/pyasn1/license.html8#9# Transport Layer Security (TLS) Feature Certificate Extension10#11# ASN.1 source from:12# https://www.rfc-editor.org/rfc/rfc7633.txt13#14 15from pyasn1.type import univ16 17from pyasn1_modules import rfc528018 19 20# TLS Features Extension21 22id_pe = univ.ObjectIdentifier('1.3.6.1.5.5.7.1')23 24id_pe_tlsfeature = id_pe + (24, )25 26 27class Features(univ.SequenceOf):28 componentType = univ.Integer()29 30 31# Map of Certificate Extension OIDs to Extensions added to the32# ones that are in rfc5280.py33 34_certificateExtensionsMapUpdate = {35 id_pe_tlsfeature: Features(),36}37 38rfc5280.certificateExtensionsMap.update(_certificateExtensionsMapUpdate)39 