diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-22 02:02:23 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-22 02:02:23 +0000 |
commit | 32d43381dfc0370acb774951f9cdd0cdb1ab7f1b (patch) | |
tree | cfb37241df8d869ed08a24b3021a4a599cb98bdb /rpki/left_right.py | |
parent | 1ca142b706eab552f9e2c575ef15d1862516393b (diff) |
First cut at replacing rpkid's HTTP and I/O system with Tornado. Not
quite working perfectly yet (cron is a bit wonky) but manages to
produce an initial set of ROAs without thowing any exceptions, and
code is already much cleaner than the old callback-based horror.
svn path=/branches/tk705/; revision=6139
Diffstat (limited to 'rpki/left_right.py')
-rw-r--r-- | rpki/left_right.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/rpki/left_right.py b/rpki/left_right.py index 090de561..387e908f 100644 --- a/rpki/left_right.py +++ b/rpki/left_right.py @@ -25,19 +25,16 @@ import logging import rpki.x509 import rpki.exceptions -import rpki.http import rpki.up_down import rpki.relaxng import rpki.sundial import rpki.log import rpki.publication -import rpki.async import rpki.rpkid_tasks logger = logging.getLogger(__name__) - xmlns = rpki.relaxng.left_right.xmlns nsmap = rpki.relaxng.left_right.nsmap version = rpki.relaxng.left_right.version @@ -62,6 +59,16 @@ tag_tenant = xmlns + "tenant" tag_signing_cert = xmlns + "signing_cert" tag_signing_cert_crl = xmlns + "signing_cert_crl" +## @var content_type +# Content type to use when sending left-right queries +content_type = "application/x-rpki" + +## @var allowed_content_types +# Content types we consider acceptable for incoming left-right +# queries. + +allowed_content_types = (content_type,) + class cms_msg(rpki.x509.XML_CMS_object): """ |