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