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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
U
 ý°dI…ã
@sœUdZddlmZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddl    m    ZddlmZddlmZmZdd    lmZmZmZmZmZmZmZejd
edd e j ràdd l!m"Z"d dgZ#ej$j%Z&e '¡Z(de)d<e  *¡Z+dZ,ej$j-ej.ej/fej$j0ej.ej/fiZ1e2e
dƒrNej3ej3fe1e
j4<e2e
dƒrlej5ej5fe1e
j6<e2e
dƒrŠej.ej.fe1e
j7<e2e
dƒr¨ej8ej8fe1e
j9<e2e
dƒrÆej/ej/fe1e
j:<e
j;j<ej.e
j;j=ej.e
j;j>ej8e
j;j?ej/e
j;j@ej/iZAde)d<ddœdd „ZBddœdd„ZCdddddœd d!„ZDdddddœd"d#„ZEe FeD¡ZGe HeE¡ZIGd$d%„d%ƒZJd1d'd(d)d*d*d+d,œd-d.„ZKeKeJ_KGd/d0„d0ƒZLdS)2aÛ    
SecureTranport support for urllib3 via ctypes.
 
This makes platform-native TLS available to urllib3 users on macOS without the
use of a compiler. This is an important feature because the Python Package
Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL
that ships with macOS is not capable of doing TLSv1.2. The only way to resolve
this is to give macOS users an alternative solution to the problem, and that
solution is to use SecureTransport.
 
We use ctypes here because this solution must not require a compiler. That's
because pip is not allowed to require a compiler either.
 
This is not intended to be a seriously long-term solution to this problem.
The hope is that PEP 543 will eventually solve this issue for us, at which
point we can retire this contrib module. But in the short term, we need to
solve the impending tire fire that is Python on Mac without this kind of
contrib module. So...here we are.
 
To use this module, simply import and inject it::
 
    import urllib3.contrib.securetransport
    urllib3.contrib.securetransport.inject_into_urllib3()
 
Happy TLSing!
 
This code is a bastardised version of the code found in Will Bond's oscrypto
library. An enormous debt is owed to him for blazing this trail for us. For
that reason, this code should be considered to be covered both by urllib3's
license and by oscrypto's:
 
.. code-block::
 
    Copyright (c) 2015-2016 Will Bond <will@wbond.net>
 
    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:
 
    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.
 
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.
é)Ú annotationsN)Úsocketé)Úutilé)ÚCoreFoundationÚSecurity)Ú SecurityConstÚ_assert_no_errorÚ_build_tls_unknown_ca_alertÚ_cert_array_from_pemÚ_create_cfstring_arrayÚ_load_client_cert_chainÚ_temporary_keychainz¥'urllib3.contrib.securetransport' module is deprecated and will be removed in urllib3 v2.1.0. Read more in this issue: https://github.com/urllib3/urllib3/issues/2681)ÚcategoryÚ
stacklevel)ÚLiteralÚinject_into_urllib3Úextract_from_urllib3z/weakref.WeakValueDictionary[int, WrappedSocket]Ú_connection_refsi@ÚPROTOCOL_SSLv2ÚPROTOCOL_SSLv3ÚPROTOCOL_TLSv1ÚPROTOCOL_TLSv1_1ÚPROTOCOL_TLSv1_2zdict[int, int]Ú_tls_version_to_stÚNone©ÚreturncCs tt_ttj_dt_dtj_dS)zG
    Monkey-patch urllib3 with SecureTransport-backed SSL-support.
    TN)ÚSecureTransportContextrÚ
SSLContextÚssl_ÚIS_SECURETRANSPORT©r#r#úVd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\urllib3/contrib/securetransport.pyr­scCs tt_ttj_dt_dtj_dS)z>
    Undo monkey-patching by :func:`inject_into_urllib3`.
    FN)Úorig_util_SSLContextrr r!r"r#r#r#r$r·sÚintÚ    bytearray)Ú connection_idÚ data_bufferÚdata_length_pointerrc
Csd}zFt |¡}|dkr"tjWS|j}|d}| ¡}d}d}zz||kr¸|dksZ|dkrrt ||¡srtt    j
dƒ‚||}    t j |      ||¡}
| |
|    ¡} || 7}| sB|s¸tjWWSq¸qBWnrtk
r,} zR| j    }|dk    r|t    j
kr||d<|t    jks
|t    jkrtjWY¢
WS‚W5d} ~ XYnX||d<||krHtjWSWdStk
rŠ} z|dk    rp| |_tjWY¢Sd} ~ XYnXdS)zs
    SecureTransport read callback. This is called by ST to request that data
    be returned from the socket.
    Nrú    timed out)rÚgetr    ÚerrSSLInternalrÚ
gettimeoutrÚ wait_for_readÚOSErrorÚerrnoÚEAGAINÚctypesÚc_charÚ from_addressÚ    recv_intoÚerrSSLClosedGracefulÚ
ECONNRESETÚEPIPEÚerrSSLClosedAbortÚerrSSLWouldBlockÚ    ExceptionÚ
_exception) r(r)r*Úwrapped_socketÚ base_socketZrequested_lengthÚtimeoutÚerrorZ
read_countÚ    remainingÚbufferÚ
chunk_sizeÚer#r#r$Ú_read_callbackÁsP
 
ÿ 
 
 
rFc
Csnd}z$t |¡}|dkr"tjWS|j}|d}t ||¡}| ¡}d}d}    zT|    |krž|dksf|dkr~t     ||¡s~t
t j dƒ‚|  |¡}
|    |
7}    ||
d…}qNWnjt
k
r
} zJ| j }|dk    rú|t j krú|    |d<|t jksè|t jkrøtjWY¢
WS‚W5d} ~ XYnX|    |d<|    |kr&tjWSWdStk
rh} z|dk    rN| |_tjWY¢Sd} ~ XYnXdS)zx
    SecureTransport write callback. This is called by ST to request that data
    actually be sent on the network.
    Nrr+)rr,r    r-rr3Ú    string_atr.rÚwait_for_writer0r1r2Úsendr8r9r:r;r<r=) r(r)r*r>r?Zbytes_to_writeÚdatar@rAÚsentZ
chunk_sentrEr#r#r$Ú_write_callbackúsD
 
 
 
rLc @sNeZdZdZdddœdd„Zejddœd    d
„ƒZd dd œd d„Zddddœdd„Z    dddœdd„Z
ddddddddd ddœ
dd„Z ddœdd „Z ddœd!d"„Z ddd#œd$d%„ZdEd'd(dd)œd*d+„Zd,dd-œd.d/„Zd0dœd1d2„Zddd3œd4d5„Zddd3œd6d7„Zddœd8d9„Zddœd:d;„Zddœd<d=„ZdFddd?œd@dA„ZdBdœdCdD„Zd&S)GÚ WrappedSocketzO
    API-compatibility wrapper for Python's OpenSSL wrapped socket object.
    Ú
socket_clsr)rrcCsR||_d|_d|_d|_d|_d|_d|_d|_d|_|j     ¡|_
|j  d¡dS©NrF) rÚcontextÚ_io_refsÚ_closedÚ _real_closedr=Ú    _keychainÚ _keychain_dirÚ_client_cert_chainr.Ú_timeoutÚ
settimeout)Úselfrr#r#r$Ú__init__;s zWrappedSocket.__init__z$typing.Generator[(None, None, None)]rccs4d|_dV|jdk    r0|jd}|_| ¡|‚dS)a]
        A context manager that can be used to wrap calls that do I/O from
        SecureTransport. If any of the I/O callbacks hit an exception, this
        context manager will correctly propagate the exception after the fact.
        This avoids silently swallowing those exceptions.
 
        It also correctly forces the socket closed.
        N)r=Ú _real_close)rYÚ    exceptionr#r#r$Ú_raise_on_errorNs
 
zWrappedSocket._raise_on_errorzlist[bytes] | None©Ú    protocolsrc    Cs<|sdSt|ƒ}zt |j|¡}t|ƒW5t |¡XdS)z<
        Sets up the ALPN protocols on the context.
        N)r rÚ    CFReleaserÚSSLSetALPNProtocolsrPr
)rYr_Z protocols_arrÚresultr#r#r$Ú_set_alpn_protocolscs z!WrappedSocket._set_alpn_protocolsÚboolú bytes | None)ÚverifyÚ trust_bundlerc
 
CsÔ|r |dkrdStjtjf}z.| |¡}||kr6WdSdt|ƒ›}d}Wn0tk
rz}zd|›}|}W5d}~XYnXt| ¡ƒ}|j     |¡t
  ddd¡}    |j  tj tj|    ¡| ¡t d|›¡|‚dS)zþ
        Called when we have set custom validation. We do this in two cases:
        first, when cert validation is entirely disabled; and second, when
        using a custom trust DB.
        Raises an SSLError if the connection is not trusted.
        Nz error code: z exception: Úiirrzcertificate verify failed, )r    ZkSecTrustResultUnspecifiedZkSecTrustResultProceedÚ_evaluate_trustr&r<r ÚversionrÚsendallÚstructÚpackÚ
setsockoptÚ
SOL_SOCKETÚ    SO_LINGERr[ÚsslÚSSLError)
rYrfrgZ    successesÚ trust_resultÚreasonÚexcrEZrecÚoptsr#r#r$Ú_custom_validateps( þ
 
  zWrappedSocket._custom_validateÚbytesr&)rgrc    Csàtj |¡r*t|dƒ}| ¡}W5QRXd}t ¡}z€t    |ƒ}t 
|j t   |¡¡}t|ƒ|sjt d¡‚t ||¡}t|ƒt |d¡}t|ƒt ¡}t |t   |¡¡}t|ƒW5|rÆt |¡|dk    rØt |¡X|jS)NÚrbzFailed to copy trust referenceT)ÚosÚpathÚisfileÚopenÚreadrÚ SecTrustRefrr`r ÚSSLCopyPeerTrustrPr3Úbyrefr
rqrrZSecTrustSetAnchorCertificatesZ!SecTrustSetAnchorCertificatesOnlyZSecTrustResultTypeZSecTrustEvaluateÚvalue)rYrgÚfZ
cert_arrayÚtrustrbrsr#r#r$ri•s.  
 
 zWrappedSocket._evaluate_trustúbytes | str | Noneú
str | Noneú
typing.Any)
Úserver_hostnamerfrgÚ min_versionÚ max_versionÚ client_certÚ
client_keyÚclient_key_passphraseÚalpn_protocolsrc
    CsÈt dtjtj¡|_t |jtt¡}
t    |
ƒt
0t |ƒd} | t krT| dd} q>|t | <W5QRXt  |j| ¡}
t    |
ƒ|r°t|tƒs”| d¡}t |j|t|ƒ¡}
t    |
ƒ| |    ¡t |j|¡}
t    |
ƒt |j|¡}
t    |
ƒ|rô|dk    rt |jtjd¡}
t    |
ƒ|rJtƒ\|_|_t|j||ƒ|_t |j|j¡}
t    |
ƒ| ¡ht |j¡}
|
tj krxt! "d¡‚n>|
tj#kr | $||¡W5QR£qJnt    |
ƒW5QR£qÄW5QRXqJdS)z‘
        Actually performs the TLS handshake. This is run automatically by
        wrapped socket, and shouldn't be needed in user code.
        Niÿÿÿrzutf-8Tzhandshake timed out)%rZSSLCreateContextr    ZkSSLClientSideZkSSLStreamTyperPZ SSLSetIOFuncsÚ_read_callback_pointerÚ_write_callback_pointerr
Ú_connection_ref_lockÚidrZSSLSetConnectionÚ
isinstancerxÚencodeZSSLSetPeerDomainNameÚlenrcZSSLSetProtocolVersionMinZSSLSetProtocolVersionMaxZSSLSetSessionOptionZ"kSSLSessionOptionBreakOnServerAuthrrTrUrrVZSSLSetCertificater]Z SSLHandshaker;rr@ZerrSSLServerAuthCompletedrw) rYrˆrfrgr‰rŠr‹rŒrrŽrbÚhandler#r#r$Ú    handshake½srÿÿ 
 
ÿ
ÿÿ
     zWrappedSocket.handshakecCs
|j ¡S©N)rÚfileno©rYr#r#r$r™szWrappedSocket.filenocCs*|jdkr|jd8_|jr&| ¡dS)Nrr)rQrRÚcloseršr#r#r$Ú_decref_socketioss
zWrappedSocket._decref_socketios)ÚbufsizrcCs.t |¡}| ||¡}|d|…}t t|¡Sr˜)r3Úcreate_string_bufferr6ÚtypingÚcastrx)rYrrCÚ
bytes_readrJr#r#r$Úrecv#s
  zWrappedSocket.recvNzctypes.Array[ctypes.c_char]ú
int | None)rCÚnbytesrc    Cs¨|jr
dS|dkrt|ƒ}tj| |¡}t d¡}| ¡t |j    ||t 
|¡¡}W5QRX|t j kr€|j dkr¢t d¡‚n"|t jt jfkrš| ¡nt|ƒ|j S)Nrzrecv timed out)rSr•r3r4Ú from_bufferÚc_size_tr]rZSSLReadrPrr    r;r‚rr@r7ZerrSSLClosedNoNotifyr[r
)rYrCr¤Úprocessed_bytesrbr#r#r$r6)s.
 
ÿ
 
 þ
zWrappedSocket.recv_intoÚfloat)r@rcCs
||_dSr˜©rW)rYr@r#r#r$rXVszWrappedSocket.settimeoutz float | NonecCs|jSr˜r©ršr#r#r$r.YszWrappedSocket.gettimeout)rJrc    Csht d¡}| ¡"t |j|t|ƒt |¡¡}W5QRX|tj    krZ|j
dkrZt   d¡‚nt |ƒ|j
S)Nrzsend timed out)r3r¦r]rZSSLWriterPr•rr    r;r‚rr@r
)rYrJr§rbr#r#r$rI\s
 
ÿ zWrappedSocket.sendcCs4d}|t|ƒkr0| |||t…¡}||7}qdS©Nr)r•rIÚSSL_WRITE_BLOCKSIZE)rYrJÚ
total_sentrKr#r#r$rkms zWrappedSocket.sendallc    Cs$| ¡t |j¡W5QRXdSr˜)r]rZSSLCloserPršr#r#r$Úshutdownss
zWrappedSocket.shutdowncCsd|_|jdkr| ¡dS)NTr)rRrQr[ršr#r#r$r›ws
zWrappedSocket.closecCsvd|_|jrt |j¡d|_|jr6t |j¡d|_|jrlt |j¡t |j¡t     |j
¡d|_|_
|j   ¡S)NT) rSrPrr`rVrTrZSecKeychainDeleteÚshutilÚrmtreerUrr›ršr#r#r$r[}s      zWrappedSocket._real_closeF)Ú binary_formrc
    CsÈ|s tdƒ‚t ¡}d}d}zˆt |jt |¡¡}t    |ƒ|sFW¢ddSt 
|¡}|s\W¢NdSt  |d¡}|spt ‚t  |¡}|s‚t ‚t |¡}t |¡}    t |    |¡}W5|r´t |¡|rÂt |¡X|S)Nz2SecureTransport only supports dumping binary certsr)Ú
ValueErrorrrrr`r€rPr3rr
ZSecTrustGetCertificateCountZSecTrustGetCertificateAtIndexÚAssertionErrorZSecCertificateCopyDataZCFDataGetLengthZCFDataGetBytePtrrG)
rYr°r„ZcertdataZ    der_bytesrbZ
cert_countZleafZ data_lengthr)r#r#r$Ú getpeercertŒs2
 
 
 
 
 zWrappedSocket.getpeercertÚstrcCs t ¡}t |jt |¡¡}t|ƒ|jtj    kr<t
  d¡‚n`|jtj krLdS|jtj kr\dS|jtjkrldS|jtjkr|dS|jtjkrŒdSt
  d|›¡‚dS)Nz(SecureTransport does not support TLS 1.3zTLSv1.2zTLSv1.1ÚTLSv1ÚSSLv3ZSSLv2zUnknown TLS version: )rZ SSLProtocolZSSLGetNegotiatedProtocolVersionrPr3rr
r‚r    ZkTLSProtocol13rqrrÚkTLSProtocol12ÚkTLSProtocol11Ú kTLSProtocol1Ú kSSLProtocol3Ú kSSLProtocol2)rYÚprotocolrbr#r#r$rjÆs&ÿ       zWrappedSocket.version)N)F)Ú__name__Ú
__module__Ú __qualname__Ú__doc__rZÚ
contextlibÚcontextmanagerr]rcrwrir—r™rœr¢r6rXr.rIrkr­r›r[r³rjr#r#r#r$rM6s, %( \ÿ-:rMÚrrNzILiteral['r'] | Literal['w'] | Literal['rw'] | Literal['wr'] | Literal['']r£r‡ztyping.BinaryIO | typing.TextIO)rYÚmodeÚ    bufferingÚargsÚkwargsrcOsd}tj|||f|ž|ŽSrª)rNÚmakefile)rYrÄrÅrÆrÇr#r#r$rÈÜs rÈc@sjeZdZdZdddœdd„Zeddœd    d
„ƒZejd dd œd d
„ƒZeddœdd„ƒZejddd œdd„ƒZeddœdd„ƒZ    e    jddd œdd„ƒZ    ddœdd„Z
ddœdd„Z d ddœdd„Z d:dddddœdd „Z d;d!dddd"œd#d$„Zd%dd&œd'd(„Zd<d+d,d,d,d-d.d/œd0d1„Zeddœd2d3„ƒZejddd4œd5d3„ƒZeddœd6d7„ƒZejddd8œd9d7„ƒZdS)=rz¯
    I am a wrapper class for the SecureTransport library, to translate the
    interface of the standard library ``SSLContext`` object to calls into
    SecureTransport.
    r&r)r¼rcCsdtjj|_tjj|_|dtjtjfkr6t|\|_    |_
d|_ d|_ d|_ d|_d|_d|_d|_dSrO)rqÚ
TLSVersionÚMINIMUM_SUPPORTEDÚ_minimum_versionÚMAXIMUM_SUPPORTEDÚ_maximum_versionÚ PROTOCOL_TLSÚPROTOCOL_TLS_CLIENTÚ_protocol_to_min_maxZ _min_versionZ _max_versionÚ_optionsÚ_verifyÚ _trust_bundleÚ _client_certÚ _client_keyÚ_client_key_passphraseÚ_alpn_protocols)rYr¼r#r#r$rZõs
 
zSecureTransportContext.__init__z Literal[True]rcCsdS)úŽ
        SecureTransport cannot have its hostname checking disabled. For more,
        see the comment on getpeercert() in this file.
        Tr#ršr#r#r$Úcheck_hostnamesz%SecureTransportContext.check_hostnamer‡)r‚rcCsdS)rØNr#©rYr‚r#r#r$rÙ scCs|jSr˜©rÑršr#r#r$ÚoptionsszSecureTransportContext.optionscCs
||_dSr˜rÛrÚr#r#r$rÜscCs|jr tjStjSr˜)rÒrqÚ CERT_REQUIREDÚ    CERT_NONEršr#r#r$Ú verify_mode!sz"SecureTransportContext.verify_modecCs|tjk|_dSr˜)rqrÝrÒrÚr#r#r$rß%scCsdSr˜r#ršr#r#r$Úset_default_verify_paths)s
z/SecureTransportContext.set_default_verify_pathscCs| ¡Sr˜)ràršr#r#r$Úload_default_certs5sz)SecureTransportContext.load_default_certs)ÚciphersrcCs tdƒ‚dS)Nz5SecureTransport doesn't support custom cipher strings)r±)rYrâr#r#r$Ú set_ciphers8sz"SecureTransportContext.set_ciphersNr†re)ÚcafileÚcapathÚcadatarc    Cs:|dk    rtdƒ‚|dk    r,t|ƒW5QRX|p2||_dS)Nz1SecureTransport does not support cert directories)r±r}rÓ)rYrärårær#r#r$Úload_verify_locations;s 
 
z,SecureTransportContext.load_verify_locationsr´)ÚcertfileÚkeyfileÚpasswordrcCs||_||_||_dSr˜)rÔrÕZ_client_cert_passphrase)rYrèrérêr#r#r$Úload_cert_chainLsz&SecureTransportContext.load_cert_chainzlist[str | bytes]r^cCs&ttdƒstdƒ‚dd„|Dƒ|_dS)z
        Sets the ALPN protocols that will later be set on the context.
 
        Raises a NotImplementedError if ALPN is not supported.
        raz2SecureTransport supports ALPN only in macOS 10.12+cSsg|]}tj |d¡‘qS)Úascii)rÚto_bytes)Ú.0Úpr#r#r$Ú
<listcomp>`sz=SecureTransportContext.set_alpn_protocols.<locals>.<listcomp>N)ÚhasattrrÚNotImplementedErrorr×)rYr_r#r#r$Úset_alpn_protocolsVs
 
ÿz)SecureTransportContext.set_alpn_protocolsFTrNrdr…rM)ÚsockÚ server_sideÚdo_handshake_on_connectÚsuppress_ragged_eofsrˆrc CsV|rt‚|st‚|st‚t|ƒ}| ||j|jt|jt|j|j|j    |j
|j ¡    |Sr˜) r²rMr—rÒrÓrrËrÍrÔrÕrÖr×)rYrôrõrör÷rˆr>r#r#r$Ú wrap_socketbs  ÷ z"SecureTransportContext.wrap_socketcCs|jSr˜©rËršr#r#r$Úminimum_versionƒsz&SecureTransportContext.minimum_version)rúrcCs
||_dSr˜rù)rYrúr#r#r$rú‡scCs|jSr˜©rÍršr#r#r$Úmaximum_version‹sz&SecureTransportContext.maximum_version)rürcCs
||_dSr˜rû)rYrür#r#r$rüs)NNN)NN)FTTN)r½r¾r¿rÀrZÚpropertyrÙÚsetterrÜrßràrárãrçrërórørúrür#r#r#r$rîsL     üü
ú!r)rÃN)MrÀÚ
__future__rrÁr3r1Úos.pathrzr®rrqrlÚ    threadingrŸÚwarningsÚweakrefrNÚrZ_securetransport.bindingsrrZ_securetransport.low_levelr    r
r r r rrÚwarnÚDeprecationWarningÚ TYPE_CHECKINGZtyping_extensionsrÚ__all__r!r r%ÚWeakValueDictionaryrÚ__annotations__ÚLockr‘r«rÎr¹r·rÏrÐrñr»rrºrrr¸rrrÉrÊrµÚTLSv1_1ÚTLSv1_2rÌrrrrFrLZ SSLReadFuncrZ SSLWriteFuncrrMrÈrr#r#r#r$Ú<module>s¦6   $
û þ
 
þþ þ
 þ
 þ
 þ
 þ
û     
 
98
 
-û