Package rpki.https

Classes

class  http_client
class  http_listener
class  http_message
class  http_queue
class  http_request
class  http_response
class  http_server
class  http_stream

Functions

def build_https_ta_cache
def client
def log_method
def server

Variables

dictionary client_queues = {}
 debug_http = False
 debug_tls_certs = False
tuple default_client_timeout = rpki.sundial.timedelta(minutes = 15)
tuple default_http_version = (1, 0)
tuple default_server_timeout = rpki.sundial.timedelta(minutes = 20)
string rpki_content_type = "application/x-rpki"
 want_persistent_client = False
 want_persistent_server = False

Detailed Description

HTTPS utilities, both client and server.

$Id: https.py 2902 2009-12-22 21:57:32Z sra $

Copyright (C) 2009  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
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Portions copyright (C) 2007--2008  American Registry for Internet Numbers ("ARIN")

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS.  IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

Function Documentation

def rpki.https.build_https_ta_cache (   certs  ) 
Package up a collection of certificates into a form suitable for use
as a dynamic HTTPS trust anchor set.  Precise format of this
collection is an internal conspiracy within the rpki.https module;
at one point it was a POW.X509Store object, at the moment it's a
Python set, what it will be tomorow is nobody else's business.

Definition at line 766 of file https.py.

def rpki.https.client (   msg,
  client_key,
  client_cert,
  server_ta,
  url,
  callback,
  errback 
)
Open client HTTPS connection, send a message, set up callbacks to
handle response.

Definition at line 707 of file https.py.

def rpki.https.log_method (   self,
  msg,
  logger = rpki.log.debug 
)

Definition at line 169 of file https.py.

def rpki.https.server (   handlers,
  server_key,
  server_cert,
  port,
  host = "",
  client_ta = (),
  dynamic_https_trust_anchor = None 
)
Run an HTTPS server and wait (forever) for connections.

Definition at line 752 of file https.py.


Variable Documentation

dictionary rpki::https.client_queues = {}

Definition at line 705 of file https.py.

Definition at line 45 of file https.py.

Definition at line 48 of file https.py.

Definition at line 58 of file https.py.

Definition at line 61 of file https.py.

Definition at line 59 of file https.py.

string rpki::https.rpki_content_type = "application/x-rpki"

Definition at line 39 of file https.py.

Definition at line 51 of file https.py.

Definition at line 52 of file https.py.


Generated on Tue Jan 12 07:56:02 2010 for RPKI Engine by  doxygen 1.6.1