import Connector
Implements classes to establish a connection.
import Proxy
Module defining classes encapsulating native proxies.
import Service
Module defining service related classes.
import Session
Module defining session related classes and functions.
import Stream
Module exporting an interface to the Zorp.Stream component.
from Zorp import *
Module defining global constants, and interface entry points to the Zorp core.
A plug proxy which implements SSL on either sides.
Attributes:
Table 4-88. Untitled
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 |
CADirecory | Directory containing acceptable CA-s in PEM format. |
CRLDirectory | Direcory containint Certificate Revokation Lists. |
verify_type | Type of client (or server) verify. It's may be SSL_VERIFY_NONE, for no verification, SSL_VERIFY_OPTIONAL, for optional verification, SSL_VERIFY_REQUIRED, if Certificate is required, but may not signed with any CA, and SSL_VERIFY_REQUIRED_WITH_CA, if client (or server) must have a valid certificate signed with valid CA. |
verify_depth | How deep a CA accepted. |
Initializes a PsslProxy instance.
__init__ ( self, session ) |
Sets attributes based on arguments.
Table 4-89. Arguments for PsslProxy.__init__()
self | this instance |
session | the reference of the owning session |
Query whether to stack anything to Pssl.
requestStack ( self ) |
Callback called by the underlying C proxy to query if something is to be stacked.
Table 4-90. Arguments for PsslProxy.requestStack()
self | this instance |
Actually do the stacking.
stackProxy ( self, client_fd, server_fd, ) |
Callback called by the underlying C proxy to actually stack in something.
Table 4-91. Arguments for PsslProxy.stackProxy()
self | this instance |
client_fd | upstream client side fd |
server_fd | upstream server side fd |