Table of contents Index

class PsslProxy - SSL enabled plug proxy.

Declared in module Pssl

Inheritance hierarchy:

Pssl.PsslProxy
  Proxy.Proxy

Synopsis

class PsslProxy(Proxy):
    def Pssl.PsslProxy.__init__(self, session) # Initializes a PsslProxy instance.
    def Pssl.PsslProxy.requestStack(self) # Query whether to stack anything to Pssl.
    def Pssl.PsslProxy.stackProxy(self, client_fd, server_fd) # Actually do the stacking.

    # Inherited from Zorp.ZorpProxy
    def Zorp.ZorpProxy.__init__(self, name, session_id, client_stream) # Initialize a low level proxy instance.

    # Inherited from Proxy.Proxy
    def Proxy.Proxy.__init__(self, name, session) # Initializes a Proxy instance.
    def Proxy.Proxy.addPolicy(self, klass) # Adds a policy to the proxy.
    def Proxy.Proxy.connectServer(self, host, port) # Callback method called when a connection established

None stack_proxy = None

Description

A plug proxy which implements SSL on either sides.

Attributes:

stack_proxy
the proxy to stack into Pssl
copy_to_client
Copy data in server->client direction
copy_to_server
Copy data in client->server direction
bandwidth_to_client
Readonly variable containing the utilized bandwidth in server->client direction.
bandwidth_to_server
Readonly variable containing the utilized bandwidth in client->server direction.
packet_stats_interval
The number of milliseconds between two successive packetStats() events. By default: 0. NOTE: this is currently implemented as the number of passing packages, not as milliseconds.
client_need_ssl
Use SSL on the client side of the proxy. This requires setting client_key and client_cert
client_key
Client side authentication private key
client_cert
Client side authentication certificate
server_need_ssl
Use SSL on the server side of the proxy. Optionally you can set the server_key and server_cert attributes if you want to perform authentication.
server_key
Server side authentication private key
server_cert
Server side authentication certificate


Pssl.PsslProxy.__init__(self, session)

Initializes a PsslProxy instance.

self
this instance
session
the reference of the owning session
Sets attributes based on arguments.

Pssl.PsslProxy.requestStack(self)

Query whether to stack anything to Pssl.

self
this instance
Callback called by the underlying C proxy to query if something is to be stacked.

Pssl.PsslProxy.stackProxy(self, client_fd, server_fd)

Actually do the stacking.

self
this instance
client_fd
upstream client side fd
server_fd
upstream server side fd
Callback called by the underlying C proxy to actually stack in something.
Copyright © 2000 BalaBit IT Ltd.
Written by: Balázs Scheidler