• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, LLC
7# License: http://snmplabs.com/pyasn1/license.html
8#
9# Transport Layer Security (TLS) Feature Certificate Extension
10#
11# ASN.1 source from:
12# https://www.rfc-editor.org/rfc/rfc7633.txt
13#
14
15from pyasn1.type import univ
16
17from pyasn1_modules import rfc5280
18
19
20# TLS Features Extension
21
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 the
32# ones that are in rfc5280.py
33
34_certificateExtensionsMapUpdate = {
35    id_pe_tlsfeature: Features(),
36}
37
38rfc5280.certificateExtensionsMap.update(_certificateExtensionsMapUpdate)
39