node_sys/interface/
crypto_constants.rs

1use wasm_bindgen::prelude::*;
2
3#[wasm_bindgen]
4extern {
5    #[derive(Clone, Debug)]
6    pub type CryptoConstants;
7
8    #[allow(non_snake_case)]
9    #[wasm_bindgen(method, getter)]
10    pub fn ALPN_ENABLED(this: &CryptoConstants) -> i32;
11
12    #[allow(non_snake_case)]
13    #[wasm_bindgen(method, getter)]
14    pub fn DH_CHECK_P_NOT_PRIME(this: &CryptoConstants) -> i32;
15
16    #[allow(non_snake_case)]
17    #[wasm_bindgen(method, getter)]
18    pub fn DH_CHECK_P_NOT_SAFE_PRIME(this: &CryptoConstants) -> i32;
19
20    #[allow(non_snake_case)]
21    #[wasm_bindgen(method, getter)]
22    pub fn DH_NOT_SUITABLE_GENERATOR(this: &CryptoConstants) -> i32;
23
24    #[allow(non_snake_case)]
25    #[wasm_bindgen(method, getter)]
26    pub fn DH_UNABLE_TO_CHECK_GENERATOR(this: &CryptoConstants) -> i32;
27
28    #[allow(non_snake_case)]
29    #[wasm_bindgen(method, getter)]
30    pub fn ENGINE_METHOD_ALL(this: &CryptoConstants) -> i32;
31
32    #[allow(non_snake_case)]
33    #[wasm_bindgen(method, getter)]
34    pub fn ENGINE_METHOD_CIPHERS(this: &CryptoConstants) -> i32;
35
36    #[allow(non_snake_case)]
37    #[wasm_bindgen(method, getter)]
38    pub fn ENGINE_METHOD_DH(this: &CryptoConstants) -> i32;
39
40    #[allow(non_snake_case)]
41    #[wasm_bindgen(method, getter)]
42    pub fn ENGINE_METHOD_DIGESTS(this: &CryptoConstants) -> i32;
43
44    #[allow(non_snake_case)]
45    #[wasm_bindgen(method, getter)]
46    pub fn ENGINE_METHOD_DSA(this: &CryptoConstants) -> i32;
47
48    #[allow(non_snake_case)]
49    #[wasm_bindgen(method, getter)]
50    pub fn ENGINE_METHOD_EC(this: &CryptoConstants) -> i32;
51
52    #[allow(non_snake_case)]
53    #[wasm_bindgen(method, getter)]
54    pub fn ENGINE_METHOD_NONE(this: &CryptoConstants) -> i32;
55
56    #[allow(non_snake_case)]
57    #[wasm_bindgen(method, getter)]
58    pub fn ENGINE_METHOD_PKEY_ASN1_METHS(this: &CryptoConstants) -> i32;
59
60    #[allow(non_snake_case)]
61    #[wasm_bindgen(method, getter)]
62    pub fn ENGINE_METHOD_PKEY_METHS(this: &CryptoConstants) -> i32;
63
64    #[allow(non_snake_case)]
65    #[wasm_bindgen(method, getter)]
66    pub fn ENGINE_METHOD_RAND(this: &CryptoConstants) -> i32;
67
68    #[allow(non_snake_case)]
69    #[wasm_bindgen(method, getter)]
70    pub fn ENGINE_METHOD_RSA(this: &CryptoConstants) -> i32;
71
72    #[allow(non_snake_case)]
73    #[wasm_bindgen(method, getter)]
74    pub fn OPENSSL_VERSION_NUMBER(this: &CryptoConstants) -> i32;
75
76    #[allow(non_snake_case)]
77    #[wasm_bindgen(method, getter)]
78    pub fn RSA_NO_PADDING(this: &CryptoConstants) -> i32;
79
80    #[allow(non_snake_case)]
81    #[wasm_bindgen(method, getter)]
82    pub fn RSA_PKCS1_OAEP_PADDING(this: &CryptoConstants) -> i32;
83
84    #[allow(non_snake_case)]
85    #[wasm_bindgen(method, getter)]
86    pub fn RSA_PKCS1_PADDING(this: &CryptoConstants) -> i32;
87
88    #[allow(non_snake_case)]
89    #[wasm_bindgen(method, getter)]
90    pub fn RSA_PKCS1_PSS_PADDING(this: &CryptoConstants) -> i32;
91
92    #[allow(non_snake_case)]
93    #[wasm_bindgen(method, getter)]
94    pub fn RSA_PSS_SALTLEN_AUTO(this: &CryptoConstants) -> i32;
95
96    #[allow(non_snake_case)]
97    #[wasm_bindgen(method, getter)]
98    pub fn RSA_PSS_SALTLEN_DIGEST(this: &CryptoConstants) -> i32;
99
100    #[allow(non_snake_case)]
101    #[wasm_bindgen(method, getter)]
102    pub fn RSA_PSS_SALTLEN_MAX_SIGN(this: &CryptoConstants) -> i32;
103
104    #[allow(non_snake_case)]
105    #[wasm_bindgen(method, getter)]
106    pub fn RSA_SSLV23_PADDING(this: &CryptoConstants) -> i32;
107
108    #[allow(non_snake_case)]
109    #[wasm_bindgen(method, getter)]
110    pub fn RSA_X931_PADDING(this: &CryptoConstants) -> i32;
111
112    #[allow(non_snake_case)]
113    #[wasm_bindgen(method, getter)]
114    pub fn SSL_OP_ALL(this: &CryptoConstants) -> i32;
115
116    #[allow(non_snake_case)]
117    #[wasm_bindgen(method, getter)]
118    pub fn SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION(this: &CryptoConstants) -> i32;
119
120    #[allow(non_snake_case)]
121    #[wasm_bindgen(method, getter)]
122    pub fn SSL_OP_CIPHER_SERVER_PREFERENCE(this: &CryptoConstants) -> i32;
123
124    #[allow(non_snake_case)]
125    #[wasm_bindgen(method, getter)]
126    pub fn SSL_OP_CISCO_ANYCONNECT(this: &CryptoConstants) -> i32;
127
128    #[allow(non_snake_case)]
129    #[wasm_bindgen(method, getter)]
130    pub fn SSL_OP_COOKIE_EXCHANGE(this: &CryptoConstants) -> i32;
131
132    #[allow(non_snake_case)]
133    #[wasm_bindgen(method, getter)]
134    pub fn SSL_OP_CRYPTOPRO_TLSEXT_BUG(this: &CryptoConstants) -> i32;
135
136    #[allow(non_snake_case)]
137    #[wasm_bindgen(method, getter)]
138    pub fn SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS(this: &CryptoConstants) -> i32;
139
140    #[allow(non_snake_case)]
141    #[wasm_bindgen(method, getter)]
142    pub fn SSL_OP_EPHEMERAL_RSA(this: &CryptoConstants) -> i32;
143
144    #[allow(non_snake_case)]
145    #[wasm_bindgen(method, getter)]
146    pub fn SSL_OP_LEGACY_SERVER_CONNECT(this: &CryptoConstants) -> i32;
147
148    #[allow(non_snake_case)]
149    #[wasm_bindgen(method, getter)]
150    pub fn SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER(this: &CryptoConstants) -> i32;
151
152    #[allow(non_snake_case)]
153    #[wasm_bindgen(method, getter)]
154    pub fn SSL_OP_MICROSOFT_SESS_ID_BUG(this: &CryptoConstants) -> i32;
155
156    #[allow(non_snake_case)]
157    #[wasm_bindgen(method, getter)]
158    pub fn SSL_OP_MSIE_SSLV2_RSA_PADDING(this: &CryptoConstants) -> i32;
159
160    #[allow(non_snake_case)]
161    #[wasm_bindgen(method, getter)]
162    pub fn SSL_OP_NETSCAPE_CA_DN_BUG(this: &CryptoConstants) -> i32;
163
164    #[allow(non_snake_case)]
165    #[wasm_bindgen(method, getter)]
166    pub fn SSL_OP_NETSCAPE_CHALLENGE_BUG(this: &CryptoConstants) -> i32;
167
168    #[allow(non_snake_case)]
169    #[wasm_bindgen(method, getter)]
170    pub fn SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG(this: &CryptoConstants) -> i32;
171
172    #[allow(non_snake_case)]
173    #[wasm_bindgen(method, getter)]
174    pub fn SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG(this: &CryptoConstants) -> i32;
175
176    #[allow(non_snake_case)]
177    #[wasm_bindgen(method, getter)]
178    pub fn SSL_OP_NO_COMPRESSION(this: &CryptoConstants) -> i32;
179
180    #[allow(non_snake_case)]
181    #[wasm_bindgen(method, getter)]
182    pub fn SSL_OP_NO_QUERY_MTU(this: &CryptoConstants) -> i32;
183
184    #[allow(non_snake_case)]
185    #[wasm_bindgen(method, getter)]
186    pub fn SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION(this: &CryptoConstants) -> i32;
187
188    #[allow(non_snake_case)]
189    #[wasm_bindgen(method, getter)]
190    pub fn SSL_OP_NO_SSLv2(this: &CryptoConstants) -> i32;
191
192    #[allow(non_snake_case)]
193    #[wasm_bindgen(method, getter)]
194    pub fn SSL_OP_NO_SSLv3(this: &CryptoConstants) -> i32;
195
196    #[allow(non_snake_case)]
197    #[wasm_bindgen(method, getter)]
198    pub fn SSL_OP_NO_TICKET(this: &CryptoConstants) -> i32;
199
200    #[allow(non_snake_case)]
201    #[wasm_bindgen(method, getter)]
202    pub fn SSL_OP_NO_TLSv1_1(this: &CryptoConstants) -> i32;
203
204    #[allow(non_snake_case)]
205    #[wasm_bindgen(method, getter)]
206    pub fn SSL_OP_NO_TLSv1_2(this: &CryptoConstants) -> i32;
207
208    #[allow(non_snake_case)]
209    #[wasm_bindgen(method, getter)]
210    pub fn SSL_OP_NO_TLSv1(this: &CryptoConstants) -> i32;
211
212    #[allow(non_snake_case)]
213    #[wasm_bindgen(method, getter)]
214    pub fn SSL_OP_PKCS1_CHECK_1(this: &CryptoConstants) -> i32;
215
216    #[allow(non_snake_case)]
217    #[wasm_bindgen(method, getter)]
218    pub fn SSL_OP_PKCS1_CHECK_2(this: &CryptoConstants) -> i32;
219
220    #[allow(non_snake_case)]
221    #[wasm_bindgen(method, getter)]
222    pub fn SSL_OP_SINGLE_DH_USE(this: &CryptoConstants) -> i32;
223
224    #[allow(non_snake_case)]
225    #[wasm_bindgen(method, getter)]
226    pub fn SSL_OP_SINGLE_ECDH_USE(this: &CryptoConstants) -> i32;
227
228    #[allow(non_snake_case)]
229    #[wasm_bindgen(method, getter)]
230    pub fn SSL_OP_SSLEAY_080_CLIENT_DH_BUG(this: &CryptoConstants) -> i32;
231
232    #[allow(non_snake_case)]
233    #[wasm_bindgen(method, getter)]
234    pub fn SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG(this: &CryptoConstants) -> i32;
235
236    #[allow(non_snake_case)]
237    #[wasm_bindgen(method, getter)]
238    pub fn SSL_OP_TLS_BLOCK_PADDING_BUG(this: &CryptoConstants) -> i32;
239
240    #[allow(non_snake_case)]
241    #[wasm_bindgen(method, getter)]
242    pub fn SSL_OP_TLS_D5_BUG(this: &CryptoConstants) -> i32;
243
244    #[allow(non_snake_case)]
245    #[wasm_bindgen(method, getter)]
246    pub fn SSL_OP_TLS_ROLLBACK_BUG(this: &CryptoConstants) -> i32;
247}