diff options
author | Rob Austein <sra@hactrn.net> | 2007-07-09 17:41:16 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-07-09 17:41:16 +0000 |
commit | 7dcbe6a47c628b1c69ae5ec33da59d1f06cab119 (patch) | |
tree | a54186cdcca78e2a1a74eac7fa87a3e83695eaeb /pow/POW-0.7/lib | |
parent | 74c1fd9ee3c20072b6e4b5f0c680d5f451f90833 (diff) |
Doc
svn path=/pow/POW-0.7/lib/pkix.py; revision=737
Diffstat (limited to 'pow/POW-0.7/lib')
-rwxr-xr-x | pow/POW-0.7/lib/pkix.py | 140 |
1 files changed, 132 insertions, 8 deletions
diff --git a/pow/POW-0.7/lib/pkix.py b/pow/POW-0.7/lib/pkix.py index b30d55ab..c940e400 100755 --- a/pow/POW-0.7/lib/pkix.py +++ b/pow/POW-0.7/lib/pkix.py @@ -1522,10 +1522,14 @@ _addFragment(''' class CrlReason(Enum): pass -# [sra] RPKI stuff, needs doc eventually - -# RFC 3779 2.2.3 - +_addFragment(''' +<class> + <header> + <name>IPAddressRange</name> + <super>Sequence</super> + </header> +</class> +''') class IPAddressRange(Sequence): def __init__(self, optional=0, default=''): self.min = BitString() @@ -1533,22 +1537,54 @@ class IPAddressRange(Sequence): contents = [ self.min, self.max ] Sequence.__init__(self, contents, optional, default) +_addFragment(''' +<class> + <header> + <name>IPAddressOrRange</name> + <super>Choice</super> + </header> +</class> +''') class IPAddressOrRange(Choice): def __init__(self, optional=0, default=''): choices = { 'addressPrefix' : BitString(), 'addressRange' : IPAddressRange() } Choice.__init__(self, choices, optional, default) +_addFragment(''' +<class> + <header> + <name>IPAddressesOrRanges</name> + <super>SequenceOf</super> + </header> +</class> +''') class IPAddressesOrRanges(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, IPAddressOrRange, optional, default) +_addFragment(''' +<class> + <header> + <name>IPAddressChoice</name> + <super>Choice</super> + </header> +</class> +''') class IPAddressChoice(Choice): def __init__(self, optional=0, default=''): choices = { 'inherit' : Null(), 'addressesOrRanges' : IPAddressesOrRanges() } Choice.__init__(self, choices, optional, default) +_addFragment(''' +<class> + <header> + <name>IPAddressFamily</name> + <super>Sequence</super> + </header> +</class> +''') class IPAddressFamily(Sequence): def __init__(self, optional=0, default=''): self.addressFamily = OctetString() @@ -1556,12 +1592,31 @@ class IPAddressFamily(Sequence): contents = [ self.addressFamily, self.ipAddressChoice ] Sequence.__init__(self, contents, optional, default) +_addFragment(''' +<class> + <header> + <name>IPAddrBlocks</name> + <super>SequenceOf</super> + </header> + <body> + <para> + Implementation of RFC 3779 section 2.2.3. + </para> + </body> +</class> +''') class IPAddrBlocks(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, IPAddressFamily, optional, default) -# RFC 3779 3.2.3 - +_addFragment(''' +<class> + <header> + <name>ASRange</name> + <super>Sequence</super> + </header> +</class> +''') class ASRange(Sequence): def __init__(self, optional=0, default=''): self.min = Integer() @@ -1569,22 +1624,59 @@ class ASRange(Sequence): contents = [ self.min, self.max ] Sequence.__init__(self, contents, optional, default) +_addFragment(''' +<class> + <header> + <name>ASIdOrRange</name> + <super>Choice</super> + </header> +</class> +''') class ASIdOrRange(Choice): def __init__(self, optional=0, default=''): choices = { 'id' : Integer(), 'range' : ASRange() } Choice.__init__(self, choices, optional, default) +_addFragment(''' +<class> + <header> + <name>ASIdsOrRanges</name> + <super>SequenceOf</super> + </header> +</class> +''') class ASIdsOrRanges(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, ASIdOrRange, optional, default) +_addFragment(''' +<class> + <header> + <name>ASIdentifierChoice</name> + <super>Choice</super> + </header> +</class> +''') class ASIdentifierChoice(Choice): def __init__(self, optional=0, default=''): choices = { 'inherit' : Null(), 'asIdsOrRanges' : ASIdsOrRanges() } Choice.__init__(self, choices, optional, default) +_addFragment(''' +<class> + <header> + <name>ASIdentifiers</name> + <super>Sequence</super> + </header> + <body> + <para> + Implementation of RFC 3779 section 3.2.3. + </para> + </body> +</class> +''') class ASIdentifiers(Sequence): def __init__(self, optional=0, default=''): self.asnum = ASIdentifierChoice() @@ -1594,8 +1686,14 @@ class ASIdentifiers(Sequence): contents = [ self.explicitAsnum, self.explictRdi ] Sequence.__init__(self, contents, optional, default) -# RFC 3280 4.2.2.1 and 4.2.2.2 - +_addFragment(''' +<class> + <header> + <name>AccessDescription</name> + <super>Sequence</super> + </header> +</class> +''') class AccessDescription(Sequence): def __init__(self, optional=0, default=''): self.accessMethod = Oid() @@ -1603,10 +1701,36 @@ class AccessDescription(Sequence): contents = [ self.accessMethod, self.accessLocation ] Sequence.__init__(self, contents, optional, default) +_addFragment(''' +<class> + <header> + <name>AuthorityInfoAccess</name> + <super>SequenceOf</super> + </header> + <body> + <para> + Implementation of RFC 3280 section 4.2.2.1. + </para> + </body> +</class> +''') class AuthorityInfoAccess(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, AccessDescription, optional, default) +_addFragment(''' +<class> + <header> + <name>SubjectInfoAccess</name> + <super>SequenceOf</super> + </header> + <body> + <para> + Implementation of RFC 3280 section 4.2.2.2. + </para> + </body> +</class> +''') class SubjectInfoAccess(SequenceOf): def __init__(self, optional=0, default=''): SequenceOf.__init__(self, AccessDescription, optional, default) |