• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This file is part of pyasn1-modules software.
3#
4# Created by Russ Housley.
5#
6# Copyright (c) 2019, Vigil Security, LLC
7# License: http://snmplabs.com/pyasn1/license.html
8#
9# Resource Public Key Infrastructure (RPKI) Validation Reconsidered
10#
11# ASN.1 source from:
12# https://www.rfc-editor.org/rfc/rfc8360.txt
13# https://www.rfc-editor.org/errata/eid5870
14#
15
16from pyasn1.type import univ
17
18from pyasn1_modules import rfc3779
19from pyasn1_modules import rfc5280
20
21
22# IP Address Delegation Extension V2
23
24id_pe_ipAddrBlocks_v2 = univ.ObjectIdentifier('1.3.6.1.5.5.7.1.28')
25
26IPAddrBlocks = rfc3779.IPAddrBlocks
27
28
29# Autonomous System Identifier Delegation Extension V2
30
31id_pe_autonomousSysIds_v2 = univ.ObjectIdentifier('1.3.6.1.5.5.7.1.29')
32
33ASIdentifiers = rfc3779.ASIdentifiers
34
35
36# Map of Certificate Extension OIDs to Extensions is added to the
37# ones that are in rfc5280.py
38
39_certificateExtensionsMapUpdate = {
40    id_pe_ipAddrBlocks_v2: IPAddrBlocks(),
41    id_pe_autonomousSysIds_v2: ASIdentifiers(),
42}
43
44rfc5280.certificateExtensionsMap.update(_certificateExtensionsMapUpdate)
45