connectors/PYRO/PSK_Adapter.py
changeset 2316 5416c76df9e2
parent 2314 e927c101ce6d
child 2318 8925d487605a
equal deleted inserted replaced
2314:e927c101ce6d 2316:5416c76df9e2
    26                 # This are the statements that differ from Pyro/protocol.py
    26                 # This are the statements that differ from Pyro/protocol.py
    27                 raw_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    27                 raw_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    28                 _connect_socket(raw_sock, URI.address, URI.port, self.timeout)
    28                 _connect_socket(raw_sock, URI.address, URI.port, self.timeout)
    29                 sock = sslpsk.wrap_socket(
    29                 sock = sslpsk.wrap_socket(
    30                     raw_sock, psk=Pyro.config.PYROPSK, server_side=False,
    30                     raw_sock, psk=Pyro.config.PYROPSK, server_side=False,
    31                     ciphers="PSK-AES256-GCM-SHA384:PSK-AES256-CBC-SHA")
    31                     ciphers="PSK-AES256-GCM-SHA384:PSK-AES256-CBC-SHA",
       
    32                     ssl_version=ssl.PROTOCOL_TLSv1)
    32                 # all the rest is the same as in Pyro/protocol.py 
    33                 # all the rest is the same as in Pyro/protocol.py 
    33 
    34 
    34                 conn=TCPConnection(sock, sock.getpeername())
    35                 conn=TCPConnection(sock, sock.getpeername())
    35                 # receive the authentication challenge string, and use that to build the actual identification string.
    36                 # receive the authentication challenge string, and use that to build the actual identification string.
    36                 try:
    37                 try: