Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/engine.py

raw symbols SCIP
1 # This file is dual licensed under the terms of the Apache License, Version
2 # 2.0, and the BSD License. See the LICENSE file in the root of this repository
3 # for complete details.
4
5 from __future__ import absolute_import, division, print_function
6
7 INCLUDES = """
8 #include <openssl/engine.h>
9 """
10
11 TYPES = """
12 typedef ... ENGINE;
13
14 static const long Cryptography_HAS_ENGINE;
15 """
16
17 FUNCTIONS = """
18 ENGINE *ENGINE_by_id(const char *);
19 int ENGINE_init(ENGINE *);
20 int ENGINE_finish(ENGINE *);
21 ENGINE *ENGINE_get_default_RAND(void);
22 int ENGINE_set_default_RAND(ENGINE *);
23 void ENGINE_unregister_RAND(ENGINE *);
24 int ENGINE_ctrl_cmd(ENGINE *, const char *, long, void *, void (*)(void), int);
25 int ENGINE_free(ENGINE *);
26 const char *ENGINE_get_name(const ENGINE *);
27
28 """
29
30 CUSTOMIZATIONS = """
31 #ifdef OPENSSL_NO_ENGINE
32 static const long Cryptography_HAS_ENGINE = 0;
33
34 ENGINE *(*ENGINE_by_id)(const char *) = NULL;
35 int (*ENGINE_init)(ENGINE *) = NULL;
36 int (*ENGINE_finish)(ENGINE *) = NULL;
37 ENGINE *(*ENGINE_get_default_RAND)(void) = NULL;
38 int (*ENGINE_set_default_RAND)(ENGINE *) = NULL;
39 void (*ENGINE_unregister_RAND)(ENGINE *) = NULL;
40 int (*ENGINE_ctrl_cmd)(ENGINE *, const char *, long, void *,
41 void (*)(void), int) = NULL;
42
43 int (*ENGINE_free)(ENGINE *) = NULL;
44 const char *(*ENGINE_get_id)(const ENGINE *) = NULL;
45 const char *(*ENGINE_get_name)(const ENGINE *) = NULL;
46
47 #else
48 static const long Cryptography_HAS_ENGINE = 1;
49 #endif
50 """