File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ def load_cert_chain(
292
292
# Password callback MUST be set first or it will be ignored.
293
293
if password :
294
294
295
- def _pwcb (_max_length : int , _prompt_twice : bool , _user_data : bytes ) -> bytes :
295
+ def _pwcb (_max_length : int , _prompt_twice : bool , _user_data : Optional [ bytes ] ) -> bytes :
296
296
# XXX:We could check the password length against what OpenSSL
297
297
# tells us is the max, but we can't raise an exception, so...
298
298
# warn?
@@ -332,6 +332,7 @@ def _load_certifi(self) -> None:
332
332
def _load_wincerts (self , store : str ) -> None :
333
333
"""Attempt to load CA certs from Windows trust store."""
334
334
cert_store = self ._ctx .get_cert_store ()
335
+ assert cert_store is not None
335
336
oid = _stdlibssl .Purpose .SERVER_AUTH .oid
336
337
337
338
for cert , encoding , trust in _stdlibssl .enum_certificates (store ): # type: ignore
You can’t perform that action at this time.
0 commit comments