aboutsummaryrefslogtreecommitdiff
path: root/rpkid/irdbd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-10-07 00:59:39 +0000
committerRob Austein <sra@hactrn.net>2010-10-07 00:59:39 +0000
commit94bad6e5ca0045bb46093a3002e7c03ea6e0bee4 (patch)
treeb54b80610b8565a232167290010172cac6b0df2b /rpkid/irdbd.py
parent8ada594d05c4e79fc2e3a13b50489bb75bd90cae (diff)
Merge rpkid.without_tls/ branch to rpkid/ trunk.
svn path=/rpkid/Makefile; revision=3465
Diffstat (limited to 'rpkid/irdbd.py')
-rw-r--r--rpkid/irdbd.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/rpkid/irdbd.py b/rpkid/irdbd.py
index 805166dc..8f6413a2 100644
--- a/rpkid/irdbd.py
+++ b/rpkid/irdbd.py
@@ -7,7 +7,7 @@ Default configuration file is irdbd.conf, override with --config option.
$Id$
-Copyright (C) 2009 Internet Systems Consortium ("ISC")
+Copyright (C) 2009--2010 Internet Systems Consortium ("ISC")
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -39,7 +39,7 @@ PERFORMANCE OF THIS SOFTWARE.
from __future__ import with_statement
import sys, os, time, getopt, urlparse, warnings
-import rpki.https, rpki.config, rpki.resource_set, rpki.relaxng
+import rpki.http, rpki.config, rpki.resource_set, rpki.relaxng
import rpki.exceptions, rpki.left_right, rpki.log, rpki.x509
# Silence warning while loading MySQLdb in Python 2.6, sigh
@@ -203,18 +203,15 @@ rpkid_cert = rpki.x509.X509(Auto_update = cfg.get("rpkid-cert"))
irdbd_cert = rpki.x509.X509(Auto_update = cfg.get("irdbd-cert"))
irdbd_key = rpki.x509.RSA( Auto_update = cfg.get("irdbd-key"))
-u = urlparse.urlparse(cfg.get("https-url"))
+u = urlparse.urlparse(cfg.get("http-url"))
-assert u.scheme in ("", "https") and \
+assert u.scheme in ("", "http") and \
u.username is None and \
u.password is None and \
u.params == "" and \
u.query == "" and \
u.fragment == ""
-rpki.https.server(server_key = irdbd_key,
- server_cert = irdbd_cert,
- client_ta = (bpki_ta, rpkid_cert),
- host = u.hostname or "localhost",
- port = u.port or 443,
- handlers = ((u.path, handler),))
+rpki.http.server(host = u.hostname or "localhost",
+ port = u.port or 443,
+ handlers = ((u.path, handler),))