aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/pkix1explicit
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-02-26 18:05:24 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-02-26 18:05:24 +0000
commitd5ebe0b34502f369b51d108a2126e272d48ae8c6 (patch)
tree37f50592886c464bb39b3204ba7d1a58767c2fdf /asn1/pkix1explicit
parentd1a9136fe54b88a4bbeb1b08c2ccad821e7bb2b1 (diff)
Add some extensions to pkix1explicit - forgotten files.
svn path=/trunk/; revision=24473
Diffstat (limited to 'asn1/pkix1explicit')
-rw-r--r--asn1/pkix1explicit/IPAddrAndASCertExtn.asn72
-rw-r--r--asn1/pkix1explicit/Makefile.common3
2 files changed, 74 insertions, 1 deletions
diff --git a/asn1/pkix1explicit/IPAddrAndASCertExtn.asn b/asn1/pkix1explicit/IPAddrAndASCertExtn.asn
new file mode 100644
index 0000000000..cd1c185d34
--- /dev/null
+++ b/asn1/pkix1explicit/IPAddrAndASCertExtn.asn
@@ -0,0 +1,72 @@
+-- $Id$
+-- RFC 3779 X.509 Extensions for IP Addr and AS ID June 2004
+--
+ IPAddrAndASCertExtn { iso(1) identified-organization(3) dod(6)
+ internet(1) security(5) mechanisms(5) pkix(7) mod(0)
+ id-mod-ip-addr-and-as-ident(30) }
+ DEFINITIONS EXPLICIT TAGS ::=
+ BEGIN
+ -- Copyright (C) The Internet Society (2004). This --
+ -- version of this ASN.1 module is part of RFC 3779; --
+ -- see the RFC itself for full legal notices. --
+
+ -- EXPORTS ALL --
+
+ IMPORTS
+
+ -- PKIX specific OIDs and arcs --
+ id-pe FROM PKIX1Explicit88 { iso(1) identified-organization(3)
+ dod(6) internet(1) security(5) mechanisms(5) pkix(7)
+ id-mod(0) id-pkix1-explicit(18) };
+
+ -- IP Address Delegation Extension OID --
+
+ id-pe-ipAddrBlocks OBJECT IDENTIFIER ::= { id-pe 7 }
+
+ -- IP Address Delegation Extension Syntax --
+
+ IPAddrBlocks ::= SEQUENCE OF IPAddressFamily
+
+ IPAddressFamily ::= SEQUENCE { -- AFI & opt SAFI --
+ addressFamily OCTET STRING (SIZE (2..3)),
+ ipAddressChoice IPAddressChoice }
+
+ IPAddressChoice ::= CHOICE {
+ inherit NULL, -- inherit from issuer --
+ addressesOrRanges SEQUENCE OF IPAddressOrRange }
+
+ IPAddressOrRange ::= CHOICE {
+ addressPrefix IPAddress,
+ addressRange IPAddressRange }
+
+ IPAddressRange ::= SEQUENCE {
+ min IPAddress,
+ max IPAddress }
+
+ IPAddress ::= BIT STRING
+
+ -- Autonomous System Identifier Delegation Extension OID --
+
+ id-pe-autonomousSysIds OBJECT IDENTIFIER ::= { id-pe 8 }
+
+ -- Autonomous System Identifier Delegation Extension Syntax --
+
+ ASIdentifiers ::= SEQUENCE {
+ asnum [0] ASIdentifierChoice OPTIONAL,
+ rdi [1] ASIdentifierChoice OPTIONAL }
+
+ ASIdentifierChoice ::= CHOICE {
+ inherit NULL, -- inherit from issuer --
+ asIdsOrRanges SEQUENCE OF ASIdOrRange }
+
+ ASIdOrRange ::= CHOICE {
+ id ASId,
+ range ASRange }
+
+ ASRange ::= SEQUENCE {
+ min ASId,
+ max ASId }
+
+ ASId ::= INTEGER
+
+ END
diff --git a/asn1/pkix1explicit/Makefile.common b/asn1/pkix1explicit/Makefile.common
index 1dbf827efc..4473db25be 100644
--- a/asn1/pkix1explicit/Makefile.common
+++ b/asn1/pkix1explicit/Makefile.common
@@ -29,7 +29,8 @@ NEED_PACKET_PROTO_H = 1
EXT_ASN_FILE_LIST =
-ASN_FILE_LIST = PKIX1EXPLICIT93.asn
+ASN_FILE_LIST = PKIX1EXPLICIT93.asn \
+ IPAddrAndASCertExtn.asn
# The packet-$(PROTOCOL_NAME)-template.h and $(PROTOCOL_NAME).asn
# files do not exist for all protocols: Please add/remove as required.