From 32d43381dfc0370acb774951f9cdd0cdb1ab7f1b Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 22 Oct 2015 02:02:23 +0000 Subject: 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 --- rpki/left_right.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'rpki/left_right.py') 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): """ -- cgit v1.2.3