aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-10-08 19:55:43 +0000
committerRob Austein <sra@hactrn.net>2007-10-08 19:55:43 +0000
commit0bf794c53f59f2ef0db8ab95a75158c6e10a7ea4 (patch)
tree5849b416b73504ba073caa3d8da0bbcde13fd44b /scripts
parent90a07280c4e7fa78cade25999266d91c08879ad1 (diff)
Whitespace
svn path=/scripts/rpki/https.py; revision=1119
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rpki/https.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/rpki/https.py b/scripts/rpki/https.py
index aa91d26a..70e035f8 100644
--- a/scripts/rpki/https.py
+++ b/scripts/rpki/https.py
@@ -64,7 +64,7 @@ class requestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
elif handler is None:
rcode, rtext = 404, "No handler found for URL " + self.path
else:
- rcode, rtext = handler(query=self.rfile.read(int(self.headers["Content-Length"])), path=self.path)
+ rcode, rtext = handler(query = self.rfile.read(int(self.headers["Content-Length"])), path = self.path)
except Exception, edata:
traceback.print_exc()
rcode, rtext = 500, "Unhandled exception %s" % edata
@@ -86,16 +86,16 @@ class httpServer(tlslite.api.TLSSocketServerMixIn, BaseHTTPServer.HTTPServer):
assert self.rpki_privateKey is not None
assert self.rpki_sessionCache is not None
try:
- tlsConnection.handshakeServer(certChain=self.rpki_certChain,
- privateKey=self.rpki_privateKey,
- sessionCache=self.rpki_sessionCache)
+ tlsConnection.handshakeServer(certChain = self.rpki_certChain,
+ privateKey = self.rpki_privateKey,
+ sessionCache = self.rpki_sessionCache)
tlsConnection.ignoreAbruptClose = True
return True
except tlslite.api.TLSError, error:
print "TLS handshake failure:", str(error)
return False
-def server(handlers, privateKey, certChain, port=4433, host=""):
+def server(handlers, privateKey, certChain, port = 4433, host = ""):
"""Run an HTTPS server and wait (forever) for connections."""
if not isinstance(handlers, (tuple, list)):