aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/cryptography/_cffi_src/openssl/engine.py
diff options
context:
space:
mode:
authortorkve <torkve@yandex-team.ru>2022-02-10 16:48:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:23 +0300
commitf9cfbeee51d5849127bb58793a2edcdfd7bb91bb (patch)
treef7c863cfcc3f1cb6de7f77e11fec2ae60868c8fb /contrib/python/cryptography/_cffi_src/openssl/engine.py
parent5eefa17021221fd267f1dd5f9d63d2493d131a8a (diff)
downloadydb-f9cfbeee51d5849127bb58793a2edcdfd7bb91bb.tar.gz
Restoring authorship annotation for <torkve@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/cryptography/_cffi_src/openssl/engine.py')
-rw-r--r--contrib/python/cryptography/_cffi_src/openssl/engine.py64
1 files changed, 32 insertions, 32 deletions
diff --git a/contrib/python/cryptography/_cffi_src/openssl/engine.py b/contrib/python/cryptography/_cffi_src/openssl/engine.py
index 24cdd42a83..a390d99e33 100644
--- a/contrib/python/cryptography/_cffi_src/openssl/engine.py
+++ b/contrib/python/cryptography/_cffi_src/openssl/engine.py
@@ -10,9 +10,9 @@ INCLUDES = """
TYPES = """
typedef ... ENGINE;
-typedef ... UI_METHOD;
+typedef ... UI_METHOD;
-static const long Cryptography_HAS_ENGINE;
+static const long Cryptography_HAS_ENGINE;
"""
FUNCTIONS = """
@@ -26,40 +26,40 @@ int ENGINE_ctrl_cmd(ENGINE *, const char *, long, void *, void (*)(void), int);
int ENGINE_free(ENGINE *);
const char *ENGINE_get_name(const ENGINE *);
-// These bindings are unused by cryptography or pyOpenSSL but are present
-// for advanced users who need them.
-int ENGINE_ctrl_cmd_string(ENGINE *, const char *, const char *, int);
-void ENGINE_load_builtin_engines(void);
-EVP_PKEY *ENGINE_load_private_key(ENGINE *, const char *, UI_METHOD *, void *);
-EVP_PKEY *ENGINE_load_public_key(ENGINE *, const char *, UI_METHOD *, void *);
+// These bindings are unused by cryptography or pyOpenSSL but are present
+// for advanced users who need them.
+int ENGINE_ctrl_cmd_string(ENGINE *, const char *, const char *, int);
+void ENGINE_load_builtin_engines(void);
+EVP_PKEY *ENGINE_load_private_key(ENGINE *, const char *, UI_METHOD *, void *);
+EVP_PKEY *ENGINE_load_public_key(ENGINE *, const char *, UI_METHOD *, void *);
"""
-CUSTOMIZATIONS = """
-#ifdef OPENSSL_NO_ENGINE
-static const long Cryptography_HAS_ENGINE = 0;
+CUSTOMIZATIONS = """
+#ifdef OPENSSL_NO_ENGINE
+static const long Cryptography_HAS_ENGINE = 0;
-ENGINE *(*ENGINE_by_id)(const char *) = NULL;
-int (*ENGINE_init)(ENGINE *) = NULL;
-int (*ENGINE_finish)(ENGINE *) = NULL;
-ENGINE *(*ENGINE_get_default_RAND)(void) = NULL;
-int (*ENGINE_set_default_RAND)(ENGINE *) = NULL;
-void (*ENGINE_unregister_RAND)(ENGINE *) = NULL;
-int (*ENGINE_ctrl_cmd)(ENGINE *, const char *, long, void *,
- void (*)(void), int) = NULL;
-
-int (*ENGINE_free)(ENGINE *) = NULL;
-const char *(*ENGINE_get_id)(const ENGINE *) = NULL;
-const char *(*ENGINE_get_name)(const ENGINE *) = NULL;
-
-int (*ENGINE_ctrl_cmd_string)(ENGINE *, const char *, const char *,
- int) = NULL;
-void (*ENGINE_load_builtin_engines)(void) = NULL;
-EVP_PKEY *(*ENGINE_load_private_key)(ENGINE *, const char *, UI_METHOD *,
- void *) = NULL;
-EVP_PKEY *(*ENGINE_load_public_key)(ENGINE *, const char *,
- UI_METHOD *, void *) = NULL;
+ENGINE *(*ENGINE_by_id)(const char *) = NULL;
+int (*ENGINE_init)(ENGINE *) = NULL;
+int (*ENGINE_finish)(ENGINE *) = NULL;
+ENGINE *(*ENGINE_get_default_RAND)(void) = NULL;
+int (*ENGINE_set_default_RAND)(ENGINE *) = NULL;
+void (*ENGINE_unregister_RAND)(ENGINE *) = NULL;
+int (*ENGINE_ctrl_cmd)(ENGINE *, const char *, long, void *,
+ void (*)(void), int) = NULL;
+int (*ENGINE_free)(ENGINE *) = NULL;
+const char *(*ENGINE_get_id)(const ENGINE *) = NULL;
+const char *(*ENGINE_get_name)(const ENGINE *) = NULL;
+
+int (*ENGINE_ctrl_cmd_string)(ENGINE *, const char *, const char *,
+ int) = NULL;
+void (*ENGINE_load_builtin_engines)(void) = NULL;
+EVP_PKEY *(*ENGINE_load_private_key)(ENGINE *, const char *, UI_METHOD *,
+ void *) = NULL;
+EVP_PKEY *(*ENGINE_load_public_key)(ENGINE *, const char *,
+ UI_METHOD *, void *) = NULL;
+
#else
-static const long Cryptography_HAS_ENGINE = 1;
+static const long Cryptography_HAS_ENGINE = 1;
#endif
"""