diff options
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index cb2cf7b0..38fe0772 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -512,9 +512,9 @@ def _encode_extended_key_usage(backend, extended_key_usage): res = backend._lib.sk_ASN1_OBJECT_push(eku, obj) backend.openssl_assert(res >= 1) - eku = backend._ffi.cast("EXTENDED_KEY_USAGE *", eku) + eku_ptr = backend._ffi.cast("EXTENDED_KEY_USAGE *", eku) return _encode_extension_to_der( - backend, backend._lib.i2d_EXTENDED_KEY_USAGE, eku + backend, backend._lib.i2d_EXTENDED_KEY_USAGE, eku_ptr ) |