Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/provider.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
6 INCLUDES = """
7 #if CRYPTOGRAPHY_OPENSSL_300_OR_GREATER
8 #include <openssl/provider.h>
9 #include <openssl/proverr.h>
10 #endif
11 """
12
13 TYPES = """
14 static const long Cryptography_HAS_PROVIDERS;
15
16 typedef ... OSSL_PROVIDER;
17 typedef ... OSSL_LIB_CTX;
18
19 static const long PROV_R_BAD_DECRYPT;
20 static const long PROV_R_XTS_DUPLICATED_KEYS;
21 static const long PROV_R_WRONG_FINAL_BLOCK_LENGTH;
22 """
23
24 FUNCTIONS = """
25 """
26
27 CUSTOMIZATIONS = """
28 #if CRYPTOGRAPHY_OPENSSL_300_OR_GREATER
29 static const long Cryptography_HAS_PROVIDERS = 1;
30 #else
31 static const long Cryptography_HAS_PROVIDERS = 0;
32 typedef void OSSL_PROVIDER;
33 typedef void OSSL_LIB_CTX;
34 static const long PROV_R_BAD_DECRYPT = 0;
35 static const long PROV_R_XTS_DUPLICATED_KEYS = 0;
36 static const long PROV_R_WRONG_FINAL_BLOCK_LENGTH = 0;
37 #endif
38 """