mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-06 21:33:00 +00:00
Remove unnecessary assignment.
This commit is contained in:
@@ -73,7 +73,7 @@ def cryptography_get_extensions_from_cert(cert):
|
||||
try:
|
||||
# For certain old versions of cryptography, backend is a MultiBackend object,
|
||||
# which has no _lib attribute. In that case, revert to the old approach.
|
||||
x = backend._lib
|
||||
backend._lib
|
||||
except AttributeError:
|
||||
backend = cert._backend
|
||||
|
||||
@@ -128,7 +128,7 @@ def cryptography_get_extensions_from_csr(csr):
|
||||
try:
|
||||
# For certain old versions of cryptography, backend is a MultiBackend object,
|
||||
# which has no _lib attribute. In that case, revert to the old approach.
|
||||
x = backend._lib
|
||||
backend._lib
|
||||
except AttributeError:
|
||||
backend = csr._backend
|
||||
|
||||
@@ -549,7 +549,7 @@ def parse_pkcs12(pkcs12_bytes, passphrase=None):
|
||||
try:
|
||||
# For certain old versions of cryptography, backend is a MultiBackend object,
|
||||
# which has no _lib attribute. In that case, revert to the old approach.
|
||||
x = backend._lib
|
||||
backend._lib
|
||||
except AttributeError:
|
||||
backend = certificate._backend
|
||||
maybe_name = backend._lib.X509_alias_get0(certificate._x509, backend._ffi.NULL)
|
||||
|
||||
Reference in New Issue
Block a user