Skip to content

Commit

Permalink
remove a useless function
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Feb 20, 2024
1 parent 9db55b5 commit fa622f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/cryptography/hazmat/backends/openssl/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def openssl_assert(self, ok: bool) -> None:
def _enable_fips(self) -> None:
# This function enables FIPS mode for OpenSSL 3.0.0 on installs that
# have the FIPS provider installed properly.
self._binding._enable_fips()
rust_openssl.enable_fips(rust_openssl._providers)
assert rust_openssl.is_fips_enabled()
self._fips_enabled = rust_openssl.is_fips_enabled()

Expand Down
3 changes: 0 additions & 3 deletions src/cryptography/hazmat/bindings/openssl/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ class Binding:
def __init__(self) -> None:
self._ensure_ffi_initialized()

def _enable_fips(self) -> None:
openssl.enable_fips(openssl._providers)

@classmethod
def _ensure_ffi_initialized(cls) -> None:
with cls._init_lock:
Expand Down

0 comments on commit fa622f0

Please sign in to comment.