File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -389,13 +389,13 @@ def _verify_peercerts_impl(
389
389
ctypes .byref (CoreFoundation .kCFTypeArrayCallBacks ),
390
390
)
391
391
CoreFoundation .CFArrayAppendValue (policies , ssl_policy )
392
- CoreFoundation .CFRelease (ssl_policy )
392
+ # CoreFoundation.CFRelease(ssl_policy)
393
393
revocation_policy = Security .SecPolicyCreateRevocation (
394
394
kSecRevocationUseAnyAvailableMethod
395
395
| kSecRevocationRequirePositiveResponse
396
396
)
397
397
CoreFoundation .CFArrayAppendValue (policies , revocation_policy )
398
- CoreFoundation .CFRelease (revocation_policy )
398
+ # CoreFoundation.CFRelease(revocation_policy)
399
399
elif ssl_context .verify_flags & ssl .VERIFY_CRL_CHECK_LEAF :
400
400
raise NotImplementedError ("VERIFY_CRL_CHECK_LEAF not implemented for macOS" )
401
401
Original file line number Diff line number Diff line change @@ -396,9 +396,9 @@ def _verify_peercerts_impl(
396
396
else :
397
397
raise
398
398
finally :
399
- CertCloseStore (hIntermediateCertStore , 0 )
399
+ # CertCloseStore(hIntermediateCertStore, 0)
400
400
if pCertContext :
401
- CertFreeCertificateContext (pCertContext )
401
+ pass # CertFreeCertificateContext(pCertContext)
402
402
403
403
404
404
def _get_and_verify_cert_chain (
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def run_requests():
24
24
ctx = truststore .SSLContext (ssl .PROTOCOL_TLS_CLIENT )
25
25
for _ in range (10000 ):
26
26
with urllib3 .PoolManager (ssl_context = ctx ) as http :
27
- http .request ("GET " , server .base_url )
27
+ http .request ("HEAD " , server .base_url )
28
28
http .clear () # Close connections so we get new ones.
29
29
30
30
thread = asyncio .to_thread (run_requests )
You can’t perform that action at this time.
0 commit comments