From 7d79649e8d9fc6a4994c814022c5b584ef2670f7 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Thu, 19 Nov 2015 15:14:47 +0100 Subject: Change password callback to use userdata pointer Instead of a closure the pem_password_cb now uses the void *userdata argument to exchange data with the callback function. It's a necessary step to port all callbacks to new static callbacks. See: #2477 Signed-off-by: Christian Heimes --- src/cryptography/hazmat/backends/openssl/backend.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index e8b0322e..30ad9766 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -43,6 +43,7 @@ from cryptography.hazmat.backends.openssl.x509 import ( ) from cryptography.hazmat.bindings._openssl import ffi as _ffi from cryptography.hazmat.bindings.openssl import binding +from cryptography.hazmat.bindings._openssl import ffi as _ffi from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import dsa, ec, rsa from cryptography.hazmat.primitives.asymmetric.padding import ( -- cgit v1.2.3