• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <openssl/opensslv.h>
2 #include <openssl/opensslconf.h>
3 
4 #define VERSION2(n, v) RUST_VERSION_##n##_##v
5 #define VERSION(n, v) VERSION2(n, v)
6 
7 #define NEW_VERSION2(a, b, c) RUST_VERSION_NEW_OPENSSL_##a##_##b##_##c
8 #define NEW_VERSION(a, b, c) NEW_VERSION2(a, b, c)
9 
10 #ifdef LIBRESSL_VERSION_NUMBER
11 VERSION(LIBRESSL, LIBRESSL_VERSION_NUMBER)
12 #elif defined OPENSSL_VERSION_MAJOR
13 NEW_VERSION(OPENSSL_VERSION_MAJOR, OPENSSL_VERSION_MINOR, OPENSSL_VERSION_PATCH)
14 #else
15 VERSION(OPENSSL, OPENSSL_VERSION_NUMBER)
16 #endif
17 
18 #ifdef OPENSSL_IS_BORINGSSL
19 RUST_OPENSSL_IS_BORINGSSL
20 #endif
21 
22 #ifdef OPENSSL_NO_BF
23 RUST_CONF_OPENSSL_NO_BF
24 #endif
25 
26 #ifdef OPENSSL_NO_BUF_FREELISTS
27 RUST_CONF_OPENSSL_NO_BUF_FREELISTS
28 #endif
29 
30 #ifdef OPENSSL_NO_CHACHA
31 RUST_CONF_OPENSSL_NO_CHACHA
32 #endif
33 
34 #ifdef OPENSSL_NO_IDEA
35 RUST_CONF_OPENSSL_NO_IDEA
36 #endif
37 
38 #ifdef OPENSSL_NO_CAMELLIA
39 RUST_CONF_OPENSSL_NO_CAMELLIA
40 #endif
41 
42 #ifdef OPENSSL_NO_CAST
43 RUST_CONF_OPENSSL_NO_CAST
44 #endif
45 
46 #ifdef OPENSSL_NO_CMS
47 RUST_CONF_OPENSSL_NO_CMS
48 #endif
49 
50 #ifdef OPENSSL_NO_COMP
51 RUST_CONF_OPENSSL_NO_COMP
52 #endif
53 
54 #ifdef OPENSSL_NO_EC
55 RUST_CONF_OPENSSL_NO_EC
56 #endif
57 
58 #ifdef OPENSSL_NO_EC2M
59 RUST_CONF_OPENSSL_NO_EC2M
60 #endif
61 
62 #ifdef OPENSSL_NO_ENGINE
63 RUST_CONF_OPENSSL_NO_ENGINE
64 #endif
65 
66 #ifdef OPENSSL_NO_KRB5
67 RUST_CONF_OPENSSL_NO_KRB5
68 #endif
69 
70 #ifdef OPENSSL_NO_NEXTPROTONEG
71 RUST_CONF_OPENSSL_NO_NEXTPROTONEG
72 #endif
73 
74 #ifdef OPENSSL_NO_OCSP
75 RUST_CONF_OPENSSL_NO_OCSP
76 #endif
77 
78 #ifdef OPENSSL_NO_PSK
79 RUST_CONF_OPENSSL_NO_PSK
80 #endif
81 
82 #ifdef OPENSSL_NO_RFC3779
83 RUST_CONF_OPENSSL_NO_RFC3779
84 #endif
85 
86 #ifdef OPENSSL_NO_RMD160
87 RUST_CONF_OPENSSL_NO_RMD160
88 #endif
89 
90 #ifdef OPENSSL_NO_SHA
91 RUST_CONF_OPENSSL_NO_SHA
92 #endif
93 
94 #ifdef OPENSSL_NO_SRP
95 RUST_CONF_OPENSSL_NO_SRP
96 #endif
97 
98 #ifdef OPENSSL_NO_SSL3_METHOD
99 RUST_CONF_OPENSSL_NO_SSL3_METHOD
100 #endif
101 
102 #ifdef OPENSSL_NO_TLSEXT
103 RUST_CONF_OPENSSL_NO_TLSEXT
104 #endif
105 
106 #ifdef OPENSSL_NO_STDIO
107 RUST_CONF_OPENSSL_NO_STDIO
108 #endif
109 
110 #ifdef OPENSSL_NO_SM3
111 RUST_CONF_OPENSSL_NO_SM3
112 #endif
113 
114 #ifdef OPENSSL_NO_SM4
115 RUST_CONF_OPENSSL_NO_SM4
116 #endif
117 
118 #ifdef OPENSSL_NO_DEPRECATED_3_0
119 RUST_CONF_OPENSSL_NO_DEPRECATED_3_0
120 #endif
121 
122 #ifdef OPENSSL_NO_SEED
123 RUST_CONF_OPENSSL_NO_SEED
124 #endif
125