Debian Codegraph @

lib_pypy/_cffi_ssl/_cffi_src/openssl/nid.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/obj_mac.h>
9 """
10
11 TYPES = """
12 static const int Cryptography_HAS_X25519;
13 static const int Cryptography_HAS_X448;
14 static const int Cryptography_HAS_ED448;
15 static const int Cryptography_HAS_ED25519;
16 static const int Cryptography_HAS_POLY1305;
17
18 static const int NID_undef;
19 static const int NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
20 static const int NID_X25519;
21 static const int NID_X448;
22 static const int NID_ED25519;
23 static const int NID_ED448;
24 static const int NID_poly1305;
25
26 static const int NID_X9_62_prime256v1;
27 static const int NID_info_access;
28 static const int NID_subject_alt_name;
29 static const int NID_crl_distribution_points;
30 static const int NID_crl_reason;
31 static const int NID_ad_OCSP;
32 static const int NID_ad_ca_issuers;
33 """
34
35 FUNCTIONS = """
36 """
37
38 CUSTOMIZATIONS = """
39 #ifndef NID_X25519
40 static const long Cryptography_HAS_X25519 = 0;
41 static const int NID_X25519 = 0;
42 #else
43 static const long Cryptography_HAS_X25519 = 1;
44 #endif
45 #ifndef NID_ED25519
46 static const long Cryptography_HAS_ED25519 = 0;
47 static const int NID_ED25519 = 0;
48 #else
49 static const long Cryptography_HAS_ED25519 = 1;
50 #endif
51 #ifndef NID_X448
52 static const long Cryptography_HAS_X448 = 0;
53 static const int NID_X448 = 0;
54 #else
55 static const long Cryptography_HAS_X448 = 1;
56 #endif
57 #ifndef NID_ED448
58 static const long Cryptography_HAS_ED448 = 0;
59 static const int NID_ED448 = 0;
60 #else
61 static const long Cryptography_HAS_ED448 = 1;
62 #endif
63 #ifndef NID_poly1305
64 static const long Cryptography_HAS_POLY1305 = 0;
65 static const int NID_poly1305 = 0;
66 #else
67 static const long Cryptography_HAS_POLY1305 = 1;
68 #endif
69 """