aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/roa.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/roa.py')
-rw-r--r--rpkid/rpki/roa.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/rpkid/rpki/roa.py b/rpkid/rpki/roa.py
index d139c7c3..4c59e654 100644
--- a/rpkid/rpki/roa.py
+++ b/rpkid/rpki/roa.py
@@ -18,12 +18,30 @@
At the moment this is just the ASN.1 encoder.
-This corresponds to draft-ietf-sidr-roa-format-01, which is a work in
+This corresponds to draft-ietf-sidr-roa-format-02, which is a work in
progress, so this may need updating later.
"""
from POW._der import *
+# draft-ietf-sidr-roa-format-02 2.1.3.2
+#
+# RouteOriginAttestation ::= SEQUENCE {
+# version [0] INTEGER DEFAULT 0,
+# asID ASID,
+# exactMatch BOOLEAN
+# ipAddrBlocks ROAIPAddrBlocks }
+#
+# ASID ::= INTEGER
+#
+# ROAIPAddrBlocks ::= SEQUENCE of ROAIPAddressFamily
+#
+# ROAIPAddressFamily ::= SEQUENCE {
+# addressFamily OCTET STRING (SIZE (2..3)),
+# addresses SEQUENCE OF IPAddress }
+#
+# IPAddress ::= BIT STRING
+
class IPAddresses(SequenceOf):
def __init__(self, optional=0, default=''):
SequenceOf.__init__(self, BitString, optional, default)