Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: third_party/tlslite/test/twistedclient.py

Issue 210323002: Update tlslite to 0.4.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Executable bit and --similarity=80 Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tlslite/test/test.txt ('k') | third_party/tlslite/test/twistedserver.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 from tlslite.api import *
3 import socket
4
5 s = socket.socket()
6
7 s.connect( ("localhost", 1079) )
8
9 """
10 #Only use this for Echo2
11 s.send("000\r\n")
12 while 1:
13 val= s.recv(100)
14 print val,
15 if val.endswith("000\r\n"):
16 break
17
18 s.send("STARTTLS\r\n")
19 """
20
21 connection = TLSConnection(s)
22 #connection.handshakeClientNoAuth()
23 connection.handshakeClientSRP("test", "password")
24
25 connection.send("abc\r\n")
26 print connection.recv(100),
27 print connection.recv(100),
28
29 connection.send("def\r\n")
30 print connection.recv(100),
31
32 connection.close()
33 connection.sock.close()
OLDNEW
« no previous file with comments | « third_party/tlslite/test/test.txt ('k') | third_party/tlslite/test/twistedserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698