Commit e321885 1 parent 0d5ec43 commit e321885 Copy full SHA for e321885
File tree 3 files changed +11
-10
lines changed
3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
- """Verify certificates using OS trust stores. This is useful when your system contains
2
- custom certificate authorities such as when using a corporate proxy or using test certificates.
3
- Supports macOS, Windows, and Linux (with OpenSSL).
4
- """
1
+ """Verify certificates using native system trust stores"""
5
2
6
3
import sys as _sys
7
4
13
10
del _api , _sys # type: ignore[name-defined] # noqa: F821
14
11
15
12
__all__ = ["SSLContext" , "inject_into_ssl" , "extract_from_ssl" ]
16
- __version__ = "0.6.0 "
13
+ __version__ = "0.6.1 "
Original file line number Diff line number Diff line change @@ -215,15 +215,19 @@ def maximum_version(self) -> ssl.TLSVersion:
215
215
216
216
@maximum_version .setter
217
217
def maximum_version (self , value : ssl .TLSVersion ) -> None :
218
- self ._ctx .maximum_version = value
218
+ _original_super_SSLContext .maximum_version .__set__ ( # type: ignore[attr-defined]
219
+ self ._ctx , value
220
+ )
219
221
220
222
@property
221
223
def minimum_version (self ) -> ssl .TLSVersion :
222
224
return self ._ctx .minimum_version
223
225
224
226
@minimum_version .setter
225
227
def minimum_version (self , value : ssl .TLSVersion ) -> None :
226
- self ._ctx .minimum_version = value
228
+ _original_super_SSLContext .minimum_version .__set__ ( # type: ignore[attr-defined]
229
+ self ._ctx , value
230
+ )
227
231
228
232
@property
229
233
def options (self ) -> ssl .Options :
@@ -248,8 +252,8 @@ def protocol(self) -> ssl._SSLMethod:
248
252
return self ._ctx .protocol
249
253
250
254
@property
251
- def security_level (self ) -> int :
252
- return self ._ctx .security_level # type: ignore[attr-defined,no-any-return]
255
+ def security_level (self ) -> int : # type: ignore[override]
256
+ return self ._ctx .security_level
253
257
254
258
@property
255
259
def verify_flags (self ) -> ssl .VerifyFlags :
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ setuptools==65.6.3
20
20
six==1.16.0
21
21
tenacity==8.1.0
22
22
tomli==2.0.1
23
- truststore==0.6.0
23
+ truststore==0.6.1
24
24
webencodings==0.5.1
You can’t perform that action at this time.
0 commit comments