Skip to content

Commit

Permalink
Update truststore to 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Apr 1, 2023
1 parent a77fbdc commit 7c11bb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/pip/_vendor/truststore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""Verify certificates using OS trust stores. This is useful when your system contains
custom certificate authorities such as when using a corporate proxy or using test certificates.
Supports macOS, Windows, and Linux (with OpenSSL).
"""
"""Verify certificates using native system trust stores"""

import sys as _sys

Expand All @@ -13,4 +10,4 @@
del _api, _sys # type: ignore[name-defined] # noqa: F821

__all__ = ["SSLContext", "inject_into_ssl", "extract_from_ssl"]
__version__ = "0.6.0"
__version__ = "0.6.1"
12 changes: 8 additions & 4 deletions src/pip/_vendor/truststore/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,19 @@ def maximum_version(self) -> ssl.TLSVersion:

@maximum_version.setter
def maximum_version(self, value: ssl.TLSVersion) -> None:
self._ctx.maximum_version = value
_original_super_SSLContext.maximum_version.__set__( # type: ignore[attr-defined]
self._ctx, value
)

@property
def minimum_version(self) -> ssl.TLSVersion:
return self._ctx.minimum_version

@minimum_version.setter
def minimum_version(self, value: ssl.TLSVersion) -> None:
self._ctx.minimum_version = value
_original_super_SSLContext.minimum_version.__set__( # type: ignore[attr-defined]
self._ctx, value
)

@property
def options(self) -> ssl.Options:
Expand All @@ -248,8 +252,8 @@ def protocol(self) -> ssl._SSLMethod:
return self._ctx.protocol

@property
def security_level(self) -> int:
return self._ctx.security_level # type: ignore[attr-defined,no-any-return]
def security_level(self) -> int: # type: ignore[override]
return self._ctx.security_level

@property
def verify_flags(self) -> ssl.VerifyFlags:
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ setuptools==65.6.3
six==1.16.0
tenacity==8.1.0
tomli==2.0.1
truststore==0.6.0
truststore==0.6.1
webencodings==0.5.1

0 comments on commit 7c11bb6

Please sign in to comment.