diff options
-rw-r--r-- | rpkid/rpki/roa.py | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/rpkid/rpki/roa.py b/rpkid/rpki/roa.py index 4c59e654..2b1ba7fd 100644 --- a/rpkid/rpki/roa.py +++ b/rpkid/rpki/roa.py @@ -29,7 +29,7 @@ from POW._der import * # RouteOriginAttestation ::= SEQUENCE { # version [0] INTEGER DEFAULT 0, # asID ASID, -# exactMatch BOOLEAN +# exactMatch BOOLEAN, # ipAddrBlocks ROAIPAddrBlocks } # # ASID ::= INTEGER @@ -42,6 +42,26 @@ from POW._der import * # # IPAddress ::= BIT STRING +# Proposed new format, neither in draft nor in this code yet, but +# included here for reference anyway: +# +# RouteOriginAttestation ::= SEQUENCE { +# version [0] INTEGER DEFAULT 0, +# asID ASID, +# ipAddrBlocks SEQUENCE OF ROAIPAddressFamily } +# +# ASID ::= INTEGER +# +# ROAIPAddressFamily ::= SEQUENCE { +# addressFamily OCTET STRING (SIZE (2..3)), +# addresses SEQUENCE OF ROAIPAddress } +# +# ROAIPAddress ::= { +# address IPAddress, +# maxLength INTEGER } +# +# IPAddress ::= BIT STRING + class IPAddresses(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, BitString, optional, default) |