1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
--- tlslite/tlsconnection.py.orig 2015-08-04 00:11:09 UTC
+++ tlslite/tlsconnection.py
@@ -68,7 +68,7 @@ class TLSConnection(TLSRecordLayer):
def handshakeClientAnonymous(self, session=None, settings=None,
checker=None, serverName="",
- async=False):
+ asynchronous=False):
"""Perform an anonymous handshake in the role of client.
This function performs an SSL or TLS handshake using an
@@ -102,8 +102,8 @@ class TLSConnection(TLSRecordLayer):
@type serverName: string
@param serverName: The ServerNameIndication TLS Extension.
- @type async: bool
- @param async: If False, this function will block until the
+ @type asynchronous: bool
+ @param asynchronous: If False, this function will block until the
handshake is completed. If True, this function will return a
generator. Successive invocations of the generator will
return 0 if it is waiting to read from the socket, 1 if it is
@@ -126,7 +126,7 @@ class TLSConnection(TLSRecordLayer):
settings=settings,
checker=checker,
serverName=serverName)
- if async:
+ if asynchronous:
return handshaker
for result in handshaker:
pass
@@ -134,7 +134,7 @@ class TLSConnection(TLSRecordLayer):
def handshakeClientSRP(self, username, password, session=None,
settings=None, checker=None,
reqTack=True, serverName="",
- async=False):
+ asynchronous=False):
"""Perform an SRP handshake in the role of client.
This function performs a TLS/SRP handshake. SRP mutually
@@ -179,8 +179,8 @@ class TLSConnection(TLSRecordLayer):
@type serverName: string
@param serverName: The ServerNameIndication TLS Extension.
- @type async: bool
- @param async: If False, this function will block until the
+ @type asynchronous: bool
+ @param asynchronous: If False, this function will block until the
handshake is completed. If True, this function will return a
generator. Successive invocations of the generator will
return 0 if it is waiting to read from the socket, 1 if it is
@@ -208,7 +208,7 @@ class TLSConnection(TLSRecordLayer):
#
# If 'async' is True, the generator is returned to the caller,
# otherwise it is executed to completion here.
- if async:
+ if asynchronous:
return handshaker
for result in handshaker:
pass
@@ -216,7 +216,7 @@ class TLSConnection(TLSRecordLayer):
def handshakeClientCert(self, certChain=None, privateKey=None,
session=None, settings=None, checker=None,
nextProtos=None, reqTack=True, serverName="",
- async=False):
+ asynchronous=False):
"""Perform a certificate-based handshake in the role of client.
This function performs an SSL or TLS handshake. The server
@@ -273,8 +273,8 @@ class TLSConnection(TLSRecordLayer):
@type serverName: string
@param serverName: The ServerNameIndication TLS Extension.
- @type async: bool
- @param async: If False, this function will block until the
+ @type asynchronous: bool
+ @param asynchronous: If False, this function will block until the
handshake is completed. If True, this function will return a
generator. Successive invocations of the generator will
return 0 if it is waiting to read from the socket, 1 if it is
@@ -303,7 +303,7 @@ class TLSConnection(TLSRecordLayer):
#
# If 'async' is True, the generator is returned to the caller,
# otherwise it is executed to completion here.
- if async:
+ if asynchronous:
return handshaker
for result in handshaker:
pass
|