Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes | Static Private Attributes
ssl.SSLContext Class Reference
Inheritance diagram for ssl.SSLContext:
Inheritance graph
[legend]
Collaboration diagram for ssl.SSLContext:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __new__
def __init__
def wrap_socket

Public Attributes

 protocol

Static Private Attributes

tuple __slots__ = ('protocol',)

Detailed Description

An SSLContext holds various SSL-related configuration options and
data, such as certificates and possibly a private key.

Definition at line 161 of file ssl.py.


Constructor & Destructor Documentation

def ssl.SSLContext.__init__ (   self,
  protocol 
)

Definition at line 170 of file ssl.py.

00170 
00171     def __init__(self, protocol):
00172         self.protocol = protocol

Here is the caller graph for this function:


Member Function Documentation

def ssl.SSLContext.__new__ (   cls,
  protocol,
  args,
  kwargs 
)

Definition at line 167 of file ssl.py.

00167 
00168     def __new__(cls, protocol, *args, **kwargs):
00169         return _SSLContext.__new__(cls, protocol)

def ssl.SSLContext.wrap_socket (   self,
  sock,
  server_side = False,
  do_handshake_on_connect = True,
  suppress_ragged_eofs = True,
  server_hostname = None 
)

Definition at line 176 of file ssl.py.

00176 
00177                     server_hostname=None):
00178         return SSLSocket(sock=sock, server_side=server_side,
00179                          do_handshake_on_connect=do_handshake_on_connect,
00180                          suppress_ragged_eofs=suppress_ragged_eofs,
00181                          server_hostname=server_hostname,
00182                          _context=self)
00183 


Member Data Documentation

tuple ssl.SSLContext.__slots__ = ('protocol',) [static, private]

Definition at line 165 of file ssl.py.

Definition at line 171 of file ssl.py.


The documentation for this class was generated from the following file: