2 from tlslite
.api
import *
7 s
.connect( ("localhost", 1079) )
10 #Only use this for Echo2
15 if val.endswith("000\r\n"):
18 s.send("STARTTLS\r\n")
21 connection
= TLSConnection(s
)
22 #connection.handshakeClientNoAuth()
23 connection
.handshakeClientSRP("test", "password")
25 connection
.send("abc\r\n")
26 print connection
.recv(100),
27 print connection
.recv(100),
29 connection
.send("def\r\n")
30 print connection
.recv(100),
33 connection
.sock
.close()