diff options
author | Rob Austein <sra@hactrn.net> | 2008-05-15 17:45:35 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-05-15 17:45:35 +0000 |
commit | 9256db5c909e00835836ffc06f43869523cbcde3 (patch) | |
tree | 6a12a607a161475c9b3e6e3aab4cb48d143ce3e2 | |
parent | 6cead254cb47b0b3c95ee45f9ea005525613cf58 (diff) |
Minimal req_* attribute implementation, just throw an internal error
if we ever see these attributes while serving an issue request.
svn path=/rpkid/README; revision=1777
-rw-r--r-- | rpkid/README | 4 | ||||
-rw-r--r-- | rpkid/rpki/up_down.py | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/rpkid/README b/rpkid/README index 2dd9599e..075b0d39 100644 --- a/rpkid/README +++ b/rpkid/README @@ -85,7 +85,6 @@ TO DO: STATUS: Started - - Resource subsetting (req_* attributes in up-down protocol), minimal implementation. Recognize this as correct protocol and signal an internal server error if ever used. @@ -94,8 +93,7 @@ TO DO: TIME REQUIRED: Two days - STATUS: Not started - + STATUS: code written, not yet tested. - ROA generation code. First cut at this seems to work and output looks right, but this hasn't been tested properly yet diff --git a/rpkid/rpki/up_down.py b/rpkid/rpki/up_down.py index 5dbc1e7c..2de62a56 100644 --- a/rpkid/rpki/up_down.py +++ b/rpkid/rpki/up_down.py @@ -267,6 +267,14 @@ class issue_pdu(base_elt): def serve_pdu(self, q_msg, r_msg, child): """Serve one issue request PDU.""" + # Subsetting not yet implemented, this is the one place where we + # have to handle it, by reporting that we're lame. + + if self.req_resource_set_as or \ + self.req_resource_set_ipv4 or \ + self.req_resource_set_ipv6: + raise rpki.exceptions.NotImplementedYet, "req_* attributes not implemented yet, sorry" + # Check the request ca = child.ca_from_class_name(self.class_name) ca_detail = ca.fetch_active() |