1 | /* ssl.h
|
---|
2 | *
|
---|
3 | * Copyright (C) 2006-2017 wolfSSL Inc.
|
---|
4 | *
|
---|
5 | * This file is part of wolfSSL.
|
---|
6 | *
|
---|
7 | * wolfSSL is free software; you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation; either version 2 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * wolfSSL is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with this program; if not, write to the Free Software
|
---|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
---|
20 | */
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | /* ssl.h defines wolfssl_openssl compatibility layer
|
---|
25 | *
|
---|
26 | */
|
---|
27 |
|
---|
28 |
|
---|
29 | #ifndef WOLFSSL_OPENSSL_H_
|
---|
30 | #define WOLFSSL_OPENSSL_H_
|
---|
31 |
|
---|
32 | /* wolfssl_openssl compatibility layer */
|
---|
33 | #ifndef OPENSSL_EXTRA_SSL_GUARD
|
---|
34 | #define OPENSSL_EXTRA_SSL_GUARD
|
---|
35 | #include <wolfssl/ssl.h>
|
---|
36 | #endif /* OPENSSL_EXTRA_SSL_GUARD */
|
---|
37 |
|
---|
38 | #include <wolfssl/openssl/evp.h>
|
---|
39 | #ifdef OPENSSL_EXTRA
|
---|
40 | #include <wolfssl/openssl/crypto.h>
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #if defined(WOLFSSL_ASIO) || defined(WOLFSSL_HAPROXY)
|
---|
44 | #include <wolfssl/wolfcrypt/asn.h>
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #ifdef __cplusplus
|
---|
48 | extern "C" {
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #ifdef _WIN32
|
---|
52 | /* wincrypt.h clashes */
|
---|
53 | #undef X509_NAME
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #ifdef WOLFSSL_UTASKER
|
---|
57 | /* tcpip.h clashes */
|
---|
58 | #undef ASN1_INTEGER
|
---|
59 | #endif
|
---|
60 |
|
---|
61 |
|
---|
62 | typedef WOLFSSL SSL;
|
---|
63 | typedef WOLFSSL_SESSION SSL_SESSION;
|
---|
64 | typedef WOLFSSL_METHOD SSL_METHOD;
|
---|
65 | typedef WOLFSSL_CTX SSL_CTX;
|
---|
66 |
|
---|
67 | typedef WOLFSSL_X509 X509;
|
---|
68 | typedef WOLFSSL_X509 X509_REQ;
|
---|
69 | typedef WOLFSSL_X509_NAME X509_NAME;
|
---|
70 | typedef WOLFSSL_X509_CHAIN X509_CHAIN;
|
---|
71 |
|
---|
72 | typedef WOLFSSL_STACK EXTENDED_KEY_USAGE;
|
---|
73 |
|
---|
74 |
|
---|
75 | /* redeclare guard */
|
---|
76 | #define WOLFSSL_TYPES_DEFINED
|
---|
77 |
|
---|
78 | typedef WOLFSSL_BIO BIO;
|
---|
79 | typedef WOLFSSL_BIO_METHOD BIO_METHOD;
|
---|
80 | typedef WOLFSSL_CIPHER SSL_CIPHER;
|
---|
81 | typedef WOLFSSL_X509_LOOKUP X509_LOOKUP;
|
---|
82 | typedef WOLFSSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
|
---|
83 | typedef WOLFSSL_X509_CRL X509_CRL;
|
---|
84 | typedef WOLFSSL_X509_EXTENSION X509_EXTENSION;
|
---|
85 | typedef WOLFSSL_ASN1_TIME ASN1_TIME;
|
---|
86 | typedef WOLFSSL_ASN1_INTEGER ASN1_INTEGER;
|
---|
87 | typedef WOLFSSL_ASN1_OBJECT ASN1_OBJECT;
|
---|
88 | typedef WOLFSSL_ASN1_STRING ASN1_STRING;
|
---|
89 | typedef WOLFSSL_dynlock_value CRYPTO_dynlock_value;
|
---|
90 | typedef WOLFSSL_BUF_MEM BUF_MEM;
|
---|
91 |
|
---|
92 | /* GENERAL_NAME and BASIC_CONSTRAINTS structs may need implemented as
|
---|
93 | * compatibility layer expands. For now treating them as an ASN1_OBJECT */
|
---|
94 | typedef WOLFSSL_ASN1_OBJECT GENERAL_NAME;
|
---|
95 | typedef WOLFSSL_ASN1_OBJECT BASIC_CONSTRAINTS;
|
---|
96 |
|
---|
97 | #define ASN1_UTCTIME WOLFSSL_ASN1_TIME
|
---|
98 | #define ASN1_GENERALIZEDTIME WOLFSSL_ASN1_TIME
|
---|
99 |
|
---|
100 | typedef WOLFSSL_COMP_METHOD COMP_METHOD;
|
---|
101 | typedef WOLFSSL_X509_REVOKED X509_REVOKED;
|
---|
102 | typedef WOLFSSL_X509_OBJECT X509_OBJECT;
|
---|
103 | typedef WOLFSSL_X509_STORE X509_STORE;
|
---|
104 | typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
|
---|
105 |
|
---|
106 | #define EVP_CIPHER_INFO EncryptedInfo
|
---|
107 |
|
---|
108 | #define STACK_OF(x) WOLFSSL_STACK
|
---|
109 |
|
---|
110 | #define CRYPTO_free XFREE
|
---|
111 | #define CRYPTO_malloc XMALLOC
|
---|
112 | #define CRYPTO_EX_new WOLFSSL_CRYPTO_EX_new
|
---|
113 | #define CRYPTO_EX_dup WOLFSSL_CRYPTO_EX_dup
|
---|
114 | #define CRYPTO_EX_free WOLFSSL_CRYPTO_EX_free
|
---|
115 |
|
---|
116 | /* depreciated */
|
---|
117 | #define CRYPTO_thread_id wolfSSL_thread_id
|
---|
118 | #define CRYPTO_set_id_callback wolfSSL_set_id_callback
|
---|
119 |
|
---|
120 | #define CRYPTO_LOCK 0x01
|
---|
121 | #define CRYPTO_UNLOCK 0x02
|
---|
122 | #define CRYPTO_READ 0x04
|
---|
123 | #define CRYPTO_WRITE 0x08
|
---|
124 |
|
---|
125 | #define CRYPTO_set_locking_callback wolfSSL_set_locking_callback
|
---|
126 | #define CRYPTO_set_dynlock_create_callback wolfSSL_set_dynlock_create_callback
|
---|
127 | #define CRYPTO_set_dynlock_lock_callback wolfSSL_set_dynlock_lock_callback
|
---|
128 | #define CRYPTO_set_dynlock_destroy_callback wolfSSL_set_dynlock_destroy_callback
|
---|
129 | #define CRYPTO_num_locks wolfSSL_num_locks
|
---|
130 | #define CRYPTO_dynlock_value WOLFSSL_dynlock_value
|
---|
131 |
|
---|
132 | #define CRYPTO_cleanup_all_ex_data wolfSSL_cleanup_all_ex_data
|
---|
133 |
|
---|
134 | /* this function was used to set the default malloc, free, and realloc */
|
---|
135 | #define CRYPTO_malloc_init() /* CRYPTO_malloc_init is not needed */
|
---|
136 |
|
---|
137 | #define SSL_get_client_random(ssl,out,outSz) \
|
---|
138 | wolfSSL_get_client_random((ssl),(out),(outSz))
|
---|
139 | #define SSL_get_cipher_list(ctx,i) wolfSSL_get_cipher_list_ex((ctx),(i))
|
---|
140 | #define SSL_get_cipher_name(ctx) wolfSSL_get_cipher((ctx))
|
---|
141 | #define SSL_get_shared_ciphers(ctx,buf,len) \
|
---|
142 | wolfSSL_get_shared_ciphers((ctx),(buf),(len))
|
---|
143 |
|
---|
144 | /* at the moment only returns ok */
|
---|
145 | #define SSL_get_verify_result wolfSSL_get_verify_result
|
---|
146 | #define SSL_get_verify_mode wolfSSL_SSL_get_mode
|
---|
147 | #define SSL_get_verify_depth wolfSSL_get_verify_depth
|
---|
148 | #define SSL_CTX_get_verify_mode wolfSSL_CTX_get_verify_mode
|
---|
149 | #define SSL_CTX_get_verify_depth wolfSSL_CTX_get_verify_depth
|
---|
150 | #define SSL_get_certificate wolfSSL_get_certificate
|
---|
151 | #define SSL_use_certificate wolfSSL_use_certificate
|
---|
152 | #define SSL_use_certificate_ASN1 wolfSSL_use_certificate_ASN1
|
---|
153 | #define d2i_PKCS8_PRIV_KEY_INFO_bio wolfSSL_d2i_PKCS8_PKEY_bio
|
---|
154 | #define d2i_PKCS8PrivateKey_bio wolfSSL_d2i_PKCS8PrivateKey_bio
|
---|
155 | #define PKCS8_PRIV_KEY_INFO_free wolfSSL_EVP_PKEY_free
|
---|
156 | #define d2i_PKCS12_fp wolfSSL_d2i_PKCS12_fp
|
---|
157 |
|
---|
158 | #define d2i_PUBKEY wolfSSL_d2i_PUBKEY
|
---|
159 | #define d2i_PUBKEY_bio wolfSSL_d2i_PUBKEY_bio
|
---|
160 | #define d2i_PrivateKey wolfSSL_d2i_PrivateKey
|
---|
161 | #define d2i_AutoPrivateKey wolfSSL_d2i_AutoPrivateKey
|
---|
162 | #define SSL_use_PrivateKey wolfSSL_use_PrivateKey
|
---|
163 | #define SSL_use_PrivateKey_ASN1 wolfSSL_use_PrivateKey_ASN1
|
---|
164 | #define SSL_use_RSAPrivateKey_ASN1 wolfSSL_use_RSAPrivateKey_ASN1
|
---|
165 | #define SSL_get_privatekey wolfSSL_get_privatekey
|
---|
166 |
|
---|
167 | #define SSLv23_method wolfSSLv23_method
|
---|
168 | #define SSLv23_client_method wolfSSLv23_client_method
|
---|
169 | #define SSLv2_client_method wolfSSLv2_client_method
|
---|
170 | #define SSLv2_server_method wolfSSLv2_server_method
|
---|
171 | #define SSLv3_server_method wolfSSLv3_server_method
|
---|
172 | #define SSLv3_client_method wolfSSLv3_client_method
|
---|
173 | #define TLSv1_method wolfTLSv1_method
|
---|
174 | #define TLSv1_server_method wolfTLSv1_server_method
|
---|
175 | #define TLSv1_client_method wolfTLSv1_client_method
|
---|
176 | #define TLSv1_1_method wolfTLSv1_1_method
|
---|
177 | #define TLSv1_1_server_method wolfTLSv1_1_server_method
|
---|
178 | #define TLSv1_1_client_method wolfTLSv1_1_client_method
|
---|
179 | #define TLSv1_2_method wolfTLSv1_2_method
|
---|
180 | #define TLSv1_2_server_method wolfTLSv1_2_server_method
|
---|
181 | #define TLSv1_2_client_method wolfTLSv1_2_client_method
|
---|
182 | #define TLSv1_3_method wolfTLSv1_3_method
|
---|
183 | #define TLSv1_3_server_method wolfTLSv1_3_server_method
|
---|
184 | #define TLSv1_3_client_method wolfTLSv1_3_client_method
|
---|
185 |
|
---|
186 | #define X509_FILETYPE_ASN1 SSL_FILETYPE_ASN1
|
---|
187 |
|
---|
188 | #ifdef WOLFSSL_DTLS
|
---|
189 | #define DTLSv1_client_method wolfDTLSv1_client_method
|
---|
190 | #define DTLSv1_server_method wolfDTLSv1_server_method
|
---|
191 | #define DTLSv1_2_client_method wolfDTLSv1_2_client_method
|
---|
192 | #define DTLSv1_2_server_method wolfDTLSv1_2_server_method
|
---|
193 | #endif
|
---|
194 |
|
---|
195 |
|
---|
196 | #ifndef NO_FILESYSTEM
|
---|
197 | #define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
---|
198 | #define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
---|
199 | #define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
|
---|
200 | #define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
---|
201 | #define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
---|
202 |
|
---|
203 | #define SSL_use_certificate_file wolfSSL_use_certificate_file
|
---|
204 | #define SSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
|
---|
205 | #define SSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
|
---|
206 | #define SSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
|
---|
207 | #endif
|
---|
208 |
|
---|
209 | #define SSL_CTX_new wolfSSL_CTX_new
|
---|
210 | #define SSL_new wolfSSL_new
|
---|
211 | #define SSL_set_fd wolfSSL_set_fd
|
---|
212 | #define SSL_get_fd wolfSSL_get_fd
|
---|
213 | #define SSL_connect wolfSSL_connect
|
---|
214 | #define SSL_clear wolfSSL_clear
|
---|
215 | #define SSL_state wolfSSL_state
|
---|
216 |
|
---|
217 | #define SSL_write wolfSSL_write
|
---|
218 | #define SSL_read wolfSSL_read
|
---|
219 | #define SSL_peek wolfSSL_peek
|
---|
220 | #define SSL_accept wolfSSL_accept
|
---|
221 | #define SSL_CTX_free wolfSSL_CTX_free
|
---|
222 | #define SSL_free wolfSSL_free
|
---|
223 | #define SSL_shutdown wolfSSL_shutdown
|
---|
224 |
|
---|
225 | #define SSL_CTX_set_quiet_shutdown wolfSSL_CTX_set_quiet_shutdown
|
---|
226 | #define SSL_set_quiet_shutdown wolfSSL_set_quiet_shutdown
|
---|
227 | #define SSL_get_error wolfSSL_get_error
|
---|
228 | #define SSL_set_session wolfSSL_set_session
|
---|
229 | #define SSL_get_session wolfSSL_get_session
|
---|
230 | #define SSL_flush_sessions wolfSSL_flush_sessions
|
---|
231 | /* assume unlimited temporarily */
|
---|
232 | #define SSL_CTX_get_session_cache_mode(ctx) 0
|
---|
233 |
|
---|
234 | #define SSL_CTX_set_verify wolfSSL_CTX_set_verify
|
---|
235 | #define SSL_set_verify wolfSSL_set_verify
|
---|
236 | #define SSL_pending wolfSSL_pending
|
---|
237 | #define SSL_load_error_strings wolfSSL_load_error_strings
|
---|
238 | #define SSL_library_init wolfSSL_library_init
|
---|
239 | #define SSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
---|
240 | #define SSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
|
---|
241 | #define SSL_set_cipher_list wolfSSL_set_cipher_list
|
---|
242 |
|
---|
243 | #define SSL_set_ex_data wolfSSL_set_ex_data
|
---|
244 | #define SSL_get_shutdown wolfSSL_get_shutdown
|
---|
245 | #define SSL_set_rfd wolfSSL_set_rfd
|
---|
246 | #define SSL_set_wfd wolfSSL_set_wfd
|
---|
247 | #define SSL_set_shutdown wolfSSL_set_shutdown
|
---|
248 | #define SSL_set_session_id_context wolfSSL_set_session_id_context
|
---|
249 | #define SSL_set_connect_state wolfSSL_set_connect_state
|
---|
250 | #define SSL_set_accept_state wolfSSL_set_accept_state
|
---|
251 | #define SSL_session_reused wolfSSL_session_reused
|
---|
252 | #define SSL_SESSION_free wolfSSL_SESSION_free
|
---|
253 | #define SSL_is_init_finished wolfSSL_is_init_finished
|
---|
254 |
|
---|
255 | #define SSL_get_version wolfSSL_get_version
|
---|
256 | #define SSL_get_current_cipher wolfSSL_get_current_cipher
|
---|
257 |
|
---|
258 | /* use wolfSSL_get_cipher_name for its return format */
|
---|
259 | #define SSL_get_cipher wolfSSL_get_cipher_name
|
---|
260 | #define SSL_CIPHER_description wolfSSL_CIPHER_description
|
---|
261 | #define SSL_CIPHER_get_name wolfSSL_CIPHER_get_name
|
---|
262 | #define SSL_get1_session wolfSSL_get1_session
|
---|
263 |
|
---|
264 | #define SSL_get_keyblock_size wolfSSL_get_keyblock_size
|
---|
265 | #define SSL_get_keys wolfSSL_get_keys
|
---|
266 | #define SSL_SESSION_get_master_key wolfSSL_SESSION_get_master_key
|
---|
267 | #define SSL_SESSION_get_master_key_length wolfSSL_SESSION_get_master_key_length
|
---|
268 |
|
---|
269 | #define DSA_dup_DH wolfSSL_DSA_dup_DH
|
---|
270 |
|
---|
271 | #define i2d_X509_bio wolfSSL_i2d_X509_bio
|
---|
272 | #define d2i_X509_bio wolfSSL_d2i_X509_bio
|
---|
273 | #define d2i_X509_fp wolfSSL_d2i_X509_fp
|
---|
274 | #define i2d_X509 wolfSSL_i2d_X509
|
---|
275 | #define d2i_X509 wolfSSL_d2i_X509
|
---|
276 | #define PEM_read_bio_X509 wolfSSL_PEM_read_bio_X509
|
---|
277 | #define PEM_read_bio_X509_AUX wolfSSL_PEM_read_bio_X509_AUX
|
---|
278 | #define PEM_read_X509 wolfSSL_PEM_read_X509
|
---|
279 | #define PEM_write_bio_X509 wolfSSL_PEM_write_bio_X509
|
---|
280 | #define PEM_write_bio_X509_AUX wolfSSL_PEM_write_bio_X509_AUX
|
---|
281 |
|
---|
282 | #define i2d_X509_REQ wolfSSL_i2d_X509_REQ
|
---|
283 | #define X509_REQ_new wolfSSL_X509_REQ_new
|
---|
284 | #define X509_REQ_free wolfSSL_X509_REQ_free
|
---|
285 | #define X509_REQ_sign wolfSSL_X509_REQ_sign
|
---|
286 | #define X509_REQ_set_subject_name wolfSSL_X509_REQ_set_subject_name
|
---|
287 | #define X509_REQ_set_pubkey wolfSSL_X509_REQ_set_pubkey
|
---|
288 | #define PEM_write_bio_X509_REQ wolfSSL_PEM_write_bio_X509_REQ
|
---|
289 |
|
---|
290 | #define X509_new wolfSSL_X509_new
|
---|
291 | #define X509_free wolfSSL_X509_free
|
---|
292 | #define X509_load_certificate_file wolfSSL_X509_load_certificate_file
|
---|
293 | #define X509_digest wolfSSL_X509_digest
|
---|
294 | #define X509_get_ext_d2i wolfSSL_X509_get_ext_d2i
|
---|
295 | #define X509_get_issuer_name wolfSSL_X509_get_issuer_name
|
---|
296 | #define X509_get_subject_name wolfSSL_X509_get_subject_name
|
---|
297 | #define X509_get_pubkey wolfSSL_X509_get_pubkey
|
---|
298 | #define X509_get_notBefore(cert) (ASN1_TIME*)wolfSSL_X509_notBefore((cert))
|
---|
299 | #define X509_get_notAfter(cert) (ASN1_TIME*)wolfSSL_X509_notAfter((cert))
|
---|
300 | #define X509_get_serialNumber wolfSSL_X509_get_serialNumber
|
---|
301 | #define X509_get0_pubkey_bitstr wolfSSL_X509_get0_pubkey_bitstr
|
---|
302 | #define X509_get_ex_new_index wolfSSL_X509_get_ex_new_index
|
---|
303 | #define X509_get_ex_data wolfSSL_X509_get_ex_data
|
---|
304 | #define X509_set_ex_data wolfSSL_X509_set_ex_data
|
---|
305 | #define X509_get1_ocsp wolfSSL_X509_get1_ocsp
|
---|
306 | #ifndef WOLFSSL_HAPROXY
|
---|
307 | #define X509_get_version wolfSSL_X509_get_version
|
---|
308 | #endif
|
---|
309 | #define X509_get_signature_nid wolfSSL_X509_get_signature_nid
|
---|
310 | #define X509_set_subject_name wolfSSL_X509_set_subject_name
|
---|
311 | #define X509_set_pubkey wolfSSL_X509_set_pubkey
|
---|
312 | #define X509_print wolfSSL_X509_print
|
---|
313 | #define X509_verify_cert_error_string wolfSSL_X509_verify_cert_error_string
|
---|
314 | #define X509_verify_cert wolfSSL_X509_verify_cert
|
---|
315 | #define X509_check_private_key wolfSSL_X509_check_private_key
|
---|
316 | #define X509_check_ca wolfSSL_X509_check_ca
|
---|
317 | #define X509_check_host wolfSSL_X509_check_host
|
---|
318 | #define X509_email_free wolfSSL_X509_email_free
|
---|
319 | #define X509_check_issued wolfSSL_X509_check_issued
|
---|
320 | #define X509_dup wolfSSL_X509_dup
|
---|
321 |
|
---|
322 | #define sk_X509_new wolfSSL_sk_X509_new
|
---|
323 | #define sk_X509_num wolfSSL_sk_X509_num
|
---|
324 | #define sk_X509_value wolfSSL_sk_X509_value
|
---|
325 | #define sk_X509_push wolfSSL_sk_X509_push
|
---|
326 | #define sk_X509_pop wolfSSL_sk_X509_pop
|
---|
327 | #define sk_X509_pop_free wolfSSL_sk_X509_pop_free
|
---|
328 | #define sk_X509_free wolfSSL_sk_X509_free
|
---|
329 |
|
---|
330 | #define i2d_X509_NAME wolfSSL_i2d_X509_NAME
|
---|
331 | #define X509_NAME_new wolfSSL_X509_NAME_new
|
---|
332 | #define X509_NAME_free wolfSSL_X509_NAME_free
|
---|
333 | #define X509_NAME_get_text_by_NID wolfSSL_X509_NAME_get_text_by_NID
|
---|
334 | #define X509_NAME_cmp wolfSSL_X509_NAME_cmp
|
---|
335 | #define X509_NAME_ENTRY_free wolfSSL_X509_NAME_ENTRY_free
|
---|
336 | #define X509_NAME_ENTRY_create_by_NID wolfSSL_X509_NAME_ENTRY_create_by_NID
|
---|
337 | #define X509_NAME_add_entry wolfSSL_X509_NAME_add_entry
|
---|
338 | #define X509_NAME_add_entry_by_txt wolfSSL_X509_NAME_add_entry_by_txt
|
---|
339 | #define X509_NAME_oneline wolfSSL_X509_NAME_oneline
|
---|
340 | #define X509_NAME_get_index_by_NID wolfSSL_X509_NAME_get_index_by_NID
|
---|
341 | #define X509_NAME_print_ex wolfSSL_X509_NAME_print_ex
|
---|
342 | #define X509_NAME_digest wolfSSL_X509_NAME_digest
|
---|
343 | #define X509_cmp_current_time wolfSSL_X509_cmp_current_time
|
---|
344 |
|
---|
345 | #define sk_X509_NAME_pop_free wolfSSL_sk_X509_NAME_pop_free
|
---|
346 | #define sk_X509_NAME_num wolfSSL_sk_X509_NAME_num
|
---|
347 | #define sk_X509_NAME_value wolfSSL_sk_X509_NAME_value
|
---|
348 |
|
---|
349 | typedef WOLFSSL_X509_NAME_ENTRY X509_NAME_ENTRY;
|
---|
350 |
|
---|
351 | #define X509_NAME_entry_count wolfSSL_X509_NAME_entry_count
|
---|
352 | #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
|
---|
353 | #define X509_NAME_get_entry wolfSSL_X509_NAME_get_entry
|
---|
354 | #define X509_NAME_ENTRY_get_data wolfSSL_X509_NAME_ENTRY_get_data
|
---|
355 | #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
|
---|
356 |
|
---|
357 | #define X509_V_FLAG_CRL_CHECK WOLFSSL_CRL_CHECK
|
---|
358 | #define X509_V_FLAG_CRL_CHECK_ALL WOLFSSL_CRL_CHECKALL
|
---|
359 |
|
---|
360 | #define X509_V_FLAG_USE_CHECK_TIME WOLFSSL_USE_CHECK_TIME
|
---|
361 | #define X509_V_FLAG_NO_CHECK_TIME WOLFSSL_NO_CHECK_TIME
|
---|
362 | #define X509_CHECK_FLAG_NO_WILDCARDS WOLFSSL_NO_WILDCARDS
|
---|
363 |
|
---|
364 | #define X509_STORE_CTX_get_current_cert wolfSSL_X509_STORE_CTX_get_current_cert
|
---|
365 | #define X509_STORE_CTX_set_verify_cb wolfSSL_X509_STORE_CTX_set_verify_cb
|
---|
366 | #define X509_STORE_CTX_new wolfSSL_X509_STORE_CTX_new
|
---|
367 | #define X509_STORE_CTX_free wolfSSL_X509_STORE_CTX_free
|
---|
368 | #define X509_STORE_CTX_get_chain wolfSSL_X509_STORE_CTX_get_chain
|
---|
369 | #define X509_STORE_CTX_get_error wolfSSL_X509_STORE_CTX_get_error
|
---|
370 | #define X509_STORE_CTX_get_error_depth wolfSSL_X509_STORE_CTX_get_error_depth
|
---|
371 | #define X509_STORE_CTX_init wolfSSL_X509_STORE_CTX_init
|
---|
372 | #define X509_STORE_CTX_cleanup wolfSSL_X509_STORE_CTX_cleanup
|
---|
373 | #define X509_STORE_CTX_set_error wolfSSL_X509_STORE_CTX_set_error
|
---|
374 | #define X509_STORE_CTX_get_ex_data wolfSSL_X509_STORE_CTX_get_ex_data
|
---|
375 |
|
---|
376 | #define X509_STORE_new wolfSSL_X509_STORE_new
|
---|
377 | #define X509_STORE_free wolfSSL_X509_STORE_free
|
---|
378 | #define X509_STORE_add_lookup wolfSSL_X509_STORE_add_lookup
|
---|
379 | #define X509_STORE_add_cert wolfSSL_X509_STORE_add_cert
|
---|
380 | #define X509_STORE_add_crl wolfSSL_X509_STORE_add_crl
|
---|
381 | #define X509_STORE_set_flags wolfSSL_X509_STORE_set_flags
|
---|
382 | #define X509_STORE_get1_certs wolfSSL_X509_STORE_get1_certs
|
---|
383 | #define X509_STORE_get_by_subject wolfSSL_X509_STORE_get_by_subject
|
---|
384 | #define X509_STORE_CTX_get1_issuer wolfSSL_X509_STORE_CTX_get1_issuer
|
---|
385 | #define X509_STORE_CTX_set_time wolfSSL_X509_STORE_CTX_set_time
|
---|
386 |
|
---|
387 | #define X509_LOOKUP_add_dir wolfSSL_X509_LOOKUP_add_dir
|
---|
388 | #define X509_LOOKUP_load_file wolfSSL_X509_LOOKUP_load_file
|
---|
389 | #define X509_LOOKUP_hash_dir wolfSSL_X509_LOOKUP_hash_dir
|
---|
390 | #define X509_LOOKUP_file wolfSSL_X509_LOOKUP_file
|
---|
391 |
|
---|
392 | #define d2i_X509_CRL wolfSSL_d2i_X509_CRL
|
---|
393 | #define d2i_X509_CRL_fp wolfSSL_d2i_X509_CRL_fp
|
---|
394 | #define PEM_read_X509_CRL wolfSSL_PEM_read_X509_CRL
|
---|
395 |
|
---|
396 | #define X509_CRL_free wolfSSL_X509_CRL_free
|
---|
397 | #define X509_CRL_get_lastUpdate wolfSSL_X509_CRL_get_lastUpdate
|
---|
398 | #define X509_CRL_get_nextUpdate wolfSSL_X509_CRL_get_nextUpdate
|
---|
399 | #define X509_CRL_verify wolfSSL_X509_CRL_verify
|
---|
400 | #define X509_CRL_get_REVOKED wolfSSL_X509_CRL_get_REVOKED
|
---|
401 |
|
---|
402 | #define sk_X509_REVOKED_num wolfSSL_sk_X509_REVOKED_num
|
---|
403 | #define sk_X509_REVOKED_value wolfSSL_sk_X509_REVOKED_value
|
---|
404 |
|
---|
405 | #define X509_OBJECT_free_contents wolfSSL_X509_OBJECT_free_contents
|
---|
406 |
|
---|
407 | #define OCSP_parse_url wolfSSL_OCSP_parse_url
|
---|
408 |
|
---|
409 | #define MD4_Init wolfSSL_MD4_Init
|
---|
410 | #define MD4_Update wolfSSL_MD4_Update
|
---|
411 | #define MD4_Final wolfSSL_MD4_Final
|
---|
412 |
|
---|
413 | #define BIO_new wolfSSL_BIO_new
|
---|
414 | #define BIO_free wolfSSL_BIO_free
|
---|
415 | #define BIO_free_all wolfSSL_BIO_free_all
|
---|
416 | #define BIO_nread0 wolfSSL_BIO_nread0
|
---|
417 | #define BIO_nread wolfSSL_BIO_nread
|
---|
418 | #define BIO_read wolfSSL_BIO_read
|
---|
419 | #define BIO_nwrite0 wolfSSL_BIO_nwrite0
|
---|
420 | #define BIO_nwrite wolfSSL_BIO_nwrite
|
---|
421 | #define BIO_write wolfSSL_BIO_write
|
---|
422 | #define BIO_push wolfSSL_BIO_push
|
---|
423 | #define BIO_pop wolfSSL_BIO_pop
|
---|
424 | #define BIO_flush wolfSSL_BIO_flush
|
---|
425 | #define BIO_pending wolfSSL_BIO_pending
|
---|
426 |
|
---|
427 | #define BIO_get_mem_data wolfSSL_BIO_get_mem_data
|
---|
428 | #define BIO_new_mem_buf wolfSSL_BIO_new_mem_buf
|
---|
429 |
|
---|
430 | #define BIO_f_buffer wolfSSL_BIO_f_buffer
|
---|
431 | #define BIO_set_write_buffer_size wolfSSL_BIO_set_write_buffer_size
|
---|
432 | #define BIO_f_ssl wolfSSL_BIO_f_ssl
|
---|
433 | #define BIO_new_socket wolfSSL_BIO_new_socket
|
---|
434 | #define SSL_set_bio wolfSSL_set_bio
|
---|
435 | #define BIO_eof wolfSSL_BIO_eof
|
---|
436 | #define BIO_set_ss wolfSSL_BIO_set_ss
|
---|
437 |
|
---|
438 | #define BIO_s_mem wolfSSL_BIO_s_mem
|
---|
439 | #define BIO_f_base64 wolfSSL_BIO_f_base64
|
---|
440 | #define BIO_set_flags wolfSSL_BIO_set_flags
|
---|
441 |
|
---|
442 | #define SSLeay_add_ssl_algorithms wolfSSL_add_all_algorithms
|
---|
443 | #define SSLeay_add_all_algorithms wolfSSL_add_all_algorithms
|
---|
444 |
|
---|
445 | #define RAND_screen wolfSSL_RAND_screen
|
---|
446 | #define RAND_file_name wolfSSL_RAND_file_name
|
---|
447 | #define RAND_write_file wolfSSL_RAND_write_file
|
---|
448 | #define RAND_load_file wolfSSL_RAND_load_file
|
---|
449 | #define RAND_egd wolfSSL_RAND_egd
|
---|
450 | #define RAND_seed wolfSSL_RAND_seed
|
---|
451 | #define RAND_cleanup wolfSSL_RAND_Cleanup
|
---|
452 | #define RAND_add wolfSSL_RAND_add
|
---|
453 | #define RAND_poll wolfSSL_RAND_poll
|
---|
454 | #define RAND_status wolfSSL_RAND_status
|
---|
455 | #define RAND_bytes wolfSSL_RAND_bytes
|
---|
456 | #define RAND_pseudo_bytes wolfSSL_RAND_pseudo_bytes
|
---|
457 |
|
---|
458 | #define COMP_zlib wolfSSL_COMP_zlib
|
---|
459 | #define COMP_rle wolfSSL_COMP_rle
|
---|
460 | #define SSL_COMP_add_compression_method wolfSSL_COMP_add_compression_method
|
---|
461 |
|
---|
462 | #define SSL_get_ex_new_index wolfSSL_get_ex_new_index
|
---|
463 |
|
---|
464 |
|
---|
465 | typedef WOLFSSL_ASN1_BIT_STRING ASN1_BIT_STRING;
|
---|
466 |
|
---|
467 | #define ASN1_TIME_adj wolfSSL_ASN1_TIME_adj
|
---|
468 | #define ASN1_TIME_print wolfSSL_ASN1_TIME_print
|
---|
469 | #define ASN1_TIME_to_generalizedtime wolfSSL_ASN1_TIME_to_generalizedtime
|
---|
470 | #define ASN1_GENERALIZEDTIME_print wolfSSL_ASN1_GENERALIZEDTIME_print
|
---|
471 | #define ASN1_GENERALIZEDTIME_free wolfSSL_ASN1_GENERALIZEDTIME_free
|
---|
472 |
|
---|
473 | #define ASN1_tag2str wolfSSL_ASN1_tag2str
|
---|
474 |
|
---|
475 | #define i2a_ASN1_INTEGER wolfSSL_i2a_ASN1_INTEGER
|
---|
476 | #define i2c_ASN1_INTEGER wolfSSL_i2c_ASN1_INTEGER
|
---|
477 | #define ASN1_INTEGER_new wolfSSL_ASN1_INTEGER_new
|
---|
478 | #define ASN1_INTEGER_free wolfSSL_ASN1_INTEGER_free
|
---|
479 | #define ASN1_INTEGER_cmp wolfSSL_ASN1_INTEGER_cmp
|
---|
480 | #define ASN1_INTEGER_get wolfSSL_ASN1_INTEGER_get
|
---|
481 | #define ASN1_INTEGER_to_BN wolfSSL_ASN1_INTEGER_to_BN
|
---|
482 |
|
---|
483 | #define ASN1_STRING_data wolfSSL_ASN1_STRING_data
|
---|
484 | #define ASN1_STRING_get0_data wolfSSL_ASN1_STRING_data
|
---|
485 | #define ASN1_STRING_length wolfSSL_ASN1_STRING_length
|
---|
486 | #define ASN1_STRING_to_UTF8 wolfSSL_ASN1_STRING_to_UTF8
|
---|
487 | #define ASN1_STRING_print_ex wolfSSL_ASN1_STRING_print_ex
|
---|
488 |
|
---|
489 | #define ASN1_UTCTIME_pr wolfSSL_ASN1_UTCTIME_pr
|
---|
490 |
|
---|
491 | #define ASN1_IA5STRING WOLFSSL_ASN1_STRING
|
---|
492 |
|
---|
493 | #define ASN1_OCTET_STRING WOLFSSL_ASN1_STRING
|
---|
494 |
|
---|
495 | #define SSL_load_client_CA_file wolfSSL_load_client_CA_file
|
---|
496 |
|
---|
497 | #define SSL_CTX_get_client_CA_list wolfSSL_SSL_CTX_get_client_CA_list
|
---|
498 | #define SSL_CTX_set_client_CA_list wolfSSL_CTX_set_client_CA_list
|
---|
499 | #define SSL_CTX_set_cert_store wolfSSL_CTX_set_cert_store
|
---|
500 | #define SSL_CTX_get_cert_store wolfSSL_CTX_get_cert_store
|
---|
501 | #define SSL_get_ex_data_X509_STORE_CTX_idx wolfSSL_get_ex_data_X509_STORE_CTX_idx
|
---|
502 | #define SSL_get_ex_data wolfSSL_get_ex_data
|
---|
503 |
|
---|
504 | #define SSL_CTX_set_default_passwd_cb_userdata wolfSSL_CTX_set_default_passwd_cb_userdata
|
---|
505 | #define SSL_CTX_set_default_passwd_cb wolfSSL_CTX_set_default_passwd_cb
|
---|
506 |
|
---|
507 | #define SSL_CTX_set_timeout(ctx, to) \
|
---|
508 | wolfSSL_CTX_set_timeout(ctx, (unsigned int) to)
|
---|
509 | #define SSL_CTX_set_info_callback wolfSSL_CTX_set_info_callback
|
---|
510 | #define SSL_CTX_set_alpn_protos wolfSSL_CTX_set_alpn_protos
|
---|
511 |
|
---|
512 | #define SSL_alert_type_string wolfSSL_alert_type_string
|
---|
513 | #define SSL_alert_desc_string wolfSSL_alert_desc_string
|
---|
514 | #define SSL_state_string wolfSSL_state_string
|
---|
515 |
|
---|
516 | #define RSA_free wolfSSL_RSA_free
|
---|
517 | #define RSA_generate_key wolfSSL_RSA_generate_key
|
---|
518 | #define SSL_CTX_set_tmp_rsa_callback wolfSSL_CTX_set_tmp_rsa_callback
|
---|
519 |
|
---|
520 | #define PEM_def_callback wolfSSL_PEM_def_callback
|
---|
521 |
|
---|
522 | #define SSL_CTX_sess_accept wolfSSL_CTX_sess_accept
|
---|
523 | #define SSL_CTX_sess_connect wolfSSL_CTX_sess_connect
|
---|
524 | #define SSL_CTX_sess_accept_good wolfSSL_CTX_sess_accept_good
|
---|
525 | #define SSL_CTX_sess_connect_good wolfSSL_CTX_sess_connect_good
|
---|
526 | #define SSL_CTX_sess_accept_renegotiate wolfSSL_CTX_sess_accept_renegotiate
|
---|
527 | #define SSL_CTX_sess_connect_renegotiate wolfSSL_CTX_sess_connect_renegotiate
|
---|
528 | #define SSL_CTX_sess_hits wolfSSL_CTX_sess_hits
|
---|
529 | #define SSL_CTX_sess_cb_hits wolfSSL_CTX_sess_cb_hits
|
---|
530 | #define SSL_CTX_sess_cache_full wolfSSL_CTX_sess_cache_full
|
---|
531 | #define SSL_CTX_sess_misses wolfSSL_CTX_sess_misses
|
---|
532 | #define SSL_CTX_sess_timeouts wolfSSL_CTX_sess_timeouts
|
---|
533 | #define SSL_CTX_sess_number wolfSSL_CTX_sess_number
|
---|
534 | #define SSL_CTX_sess_get_cache_size wolfSSL_CTX_sess_get_cache_size
|
---|
535 |
|
---|
536 |
|
---|
537 | #define SSL_DEFAULT_CIPHER_LIST WOLFSSL_DEFAULT_CIPHER_LIST
|
---|
538 |
|
---|
539 | #define SSL_CTX_set_psk_client_callback wolfSSL_CTX_set_psk_client_callback
|
---|
540 | #define SSL_set_psk_client_callback wolfSSL_set_psk_client_callback
|
---|
541 |
|
---|
542 | #define SSL_get_psk_identity_hint wolfSSL_get_psk_identity_hint
|
---|
543 | #define SSL_get_psk_identity wolfSSL_get_psk_identity
|
---|
544 |
|
---|
545 | #define SSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint
|
---|
546 | #define SSL_use_psk_identity_hint wolfSSL_use_psk_identity_hint
|
---|
547 |
|
---|
548 | #define SSL_CTX_set_psk_server_callback wolfSSL_CTX_set_psk_server_callback
|
---|
549 | #define SSL_set_psk_server_callback wolfSSL_set_psk_server_callback
|
---|
550 |
|
---|
551 | /* system file ints for ERR_put_error */
|
---|
552 | #define SYS_F_ACCEPT WOLFSSL_SYS_ACCEPT
|
---|
553 | #define SYS_F_BIND WOLFSSL_SYS_BIND
|
---|
554 | #define SYS_F_CONNECT WOLFSSL_SYS_CONNECT
|
---|
555 | #define SYS_F_FOPEN WOLFSSL_SYS_FOPEN
|
---|
556 | #define SYS_F_FREAD WOLFSSL_SYS_FREAD
|
---|
557 | #define SYS_F_GETADDRINFO WOLFSSL_SYS_GETADDRINFO
|
---|
558 | #define SYS_F_GETSOCKOPT WOLFSSL_SYS_GETSOCKOPT
|
---|
559 | #define SYS_F_GETSOCKNAME WOLFSSL_SYS_GETSOCKNAME
|
---|
560 | #define SYS_F_OPENDIR WOLFSSL_SYS_OPENDIR
|
---|
561 | #define SYS_F_SETSOCKOPT WOLFSSL_SYS_SETSOCKOPT
|
---|
562 | #define SYS_F_SOCKET WOLFSSL_SYS_SOCKET
|
---|
563 | #define SYS_F_GETHOSTBYNAME WOLFSSL_SYS_GETHOSTBYNAME
|
---|
564 | #define SYS_F_GETNAMEINFO WOLFSSL_SYS_GETNAMEINFO
|
---|
565 | #define SYS_F_GETSERVBYNAME WOLFSSL_SYS_GETSERVBYNAME
|
---|
566 | #define SYS_F_IOCTLSOCKET WOLFSSL_SYS_IOCTLSOCKET
|
---|
567 | #define SYS_F_LISTEN WOLFSSL_SYS_LISTEN
|
---|
568 |
|
---|
569 | #define ERR_GET_REASON wolfSSL_ERR_GET_REASON
|
---|
570 |
|
---|
571 | #define ERR_put_error wolfSSL_ERR_put_error
|
---|
572 | #define ERR_peek_error wolfSSL_ERR_peek_error
|
---|
573 | #define ERR_peek_errors_fp wolfSSL_ERR_peek_errors_fp
|
---|
574 | #define ERR_peek_error_line_data wolfSSL_ERR_peek_error_line_data
|
---|
575 | #define ERR_peek_last_error wolfSSL_ERR_peek_last_error
|
---|
576 | #define ERR_peek_last_error_line wolfSSL_ERR_peek_last_error_line
|
---|
577 | #define ERR_get_error_line wolfSSL_ERR_get_error_line
|
---|
578 | #define ERR_get_error_line_data wolfSSL_ERR_get_error_line_data
|
---|
579 | #define ERR_get_error wolfSSL_ERR_get_error
|
---|
580 | #define ERR_print_errors_fp(file) wolfSSL_ERR_dump_errors_fp((file))
|
---|
581 | #define ERR_clear_error wolfSSL_ERR_clear_error
|
---|
582 | #define ERR_free_strings wolfSSL_ERR_free_strings
|
---|
583 | #define ERR_remove_state wolfSSL_ERR_remove_state
|
---|
584 | #define ERR_remove_thread_state wolfSSL_ERR_remove_thread_state
|
---|
585 | #define ERR_error_string wolfSSL_ERR_error_string
|
---|
586 | #define ERR_error_string_n wolfSSL_ERR_error_string_n
|
---|
587 | #define ERR_reason_error_string wolfSSL_ERR_reason_error_string
|
---|
588 | #define ERR_load_BIO_strings wolfSSL_ERR_load_BIO_strings
|
---|
589 |
|
---|
590 | #define SSLv23_server_method wolfSSLv23_server_method
|
---|
591 | #define SSL_CTX_set_options wolfSSL_CTX_set_options
|
---|
592 | #define SSL_CTX_get_options wolfSSL_CTX_get_options
|
---|
593 | #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
|
---|
594 |
|
---|
595 | #define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
|
---|
596 | #define SSL_check_private_key wolfSSL_check_private_key
|
---|
597 |
|
---|
598 | #define SSL_CTX_set_mode wolfSSL_CTX_set_mode
|
---|
599 | #define SSL_CTX_get_mode wolfSSL_CTX_get_mode
|
---|
600 | #define SSL_CTX_set_default_read_ahead wolfSSL_CTX_set_default_read_ahead
|
---|
601 |
|
---|
602 | #define SSL_CTX_sess_set_cache_size wolfSSL_CTX_sess_set_cache_size
|
---|
603 | #define SSL_CTX_set_default_verify_paths wolfSSL_CTX_set_default_verify_paths
|
---|
604 |
|
---|
605 | #define SSL_CTX_set_session_id_context wolfSSL_CTX_set_session_id_context
|
---|
606 | #define SSL_get_peer_certificate wolfSSL_get_peer_certificate
|
---|
607 | #define SSL_get_peer_cert_chain wolfSSL_get_peer_cert_chain
|
---|
608 |
|
---|
609 | #define SSL_want_read wolfSSL_want_read
|
---|
610 | #define SSL_want_write wolfSSL_want_write
|
---|
611 |
|
---|
612 | #define BIO_prf wolfSSL_BIO_prf
|
---|
613 |
|
---|
614 | #define sk_num wolfSSL_sk_num
|
---|
615 | #define sk_value wolfSSL_sk_value
|
---|
616 |
|
---|
617 | #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio
|
---|
618 | #define d2i_PKCS12_fp wolfSSL_d2i_PKCS12_fp
|
---|
619 |
|
---|
620 | #define d2i_RSAPublicKey wolfSSL_d2i_RSAPublicKey
|
---|
621 | #define d2i_RSAPrivateKey wolfSSL_d2i_RSAPrivateKey
|
---|
622 | #define i2d_RSAPrivateKey wolfSSL_i2d_RSAPrivateKey
|
---|
623 | #define i2d_RSAPublicKey wolfSSL_i2d_RSAPublicKey
|
---|
624 |
|
---|
625 | #define SSL_CTX_get_ex_data wolfSSL_CTX_get_ex_data
|
---|
626 | #define SSL_CTX_set_ex_data wolfSSL_CTX_set_ex_data
|
---|
627 | #define SSL_CTX_sess_set_get_cb wolfSSL_CTX_sess_set_get_cb
|
---|
628 | #define SSL_CTX_sess_set_new_cb wolfSSL_CTX_sess_set_new_cb
|
---|
629 | #define SSL_CTX_sess_set_remove_cb wolfSSL_CTX_sess_set_remove_cb
|
---|
630 |
|
---|
631 | #define i2d_SSL_SESSION wolfSSL_i2d_SSL_SESSION
|
---|
632 | #define d2i_SSL_SESSION wolfSSL_d2i_SSL_SESSION
|
---|
633 | #define SSL_SESSION_set_timeout wolfSSL_SSL_SESSION_set_timeout
|
---|
634 | #define SSL_SESSION_get_timeout wolfSSL_SESSION_get_timeout
|
---|
635 | #define SSL_SESSION_get_time wolfSSL_SESSION_get_time
|
---|
636 | #define SSL_CTX_get_ex_new_index wolfSSL_CTX_get_ex_new_index
|
---|
637 | #define PEM_read wolfSSL_PEM_read
|
---|
638 | #define PEM_write wolfSSL_PEM_write
|
---|
639 | #define PEM_get_EVP_CIPHER_INFO wolfSSL_PEM_get_EVP_CIPHER_INFO
|
---|
640 | #define PEM_do_header wolfSSL_PEM_do_header
|
---|
641 |
|
---|
642 | /*#if OPENSSL_API_COMPAT < 0x10100000L*/
|
---|
643 | #define CONF_modules_free()
|
---|
644 | #define ENGINE_cleanup()
|
---|
645 | #define HMAC_CTX_cleanup wolfSSL_HMAC_cleanup
|
---|
646 | #define SSL_CTX_need_tmp_RSA(ctx) 0
|
---|
647 | #define SSL_CTX_set_tmp_rsa(ctx,rsa) 1
|
---|
648 | #define SSL_need_tmp_RSA(ssl) 0
|
---|
649 | #define SSL_set_tmp_rsa(ssl,rsa) 1
|
---|
650 | /*#endif*/
|
---|
651 |
|
---|
652 | #define CONF_modules_unload(a)
|
---|
653 |
|
---|
654 | #define SSL_get_hit wolfSSL_session_reused
|
---|
655 |
|
---|
656 | /* yassl had set the default to be 500 */
|
---|
657 | #define SSL_get_default_timeout(ctx) 500
|
---|
658 |
|
---|
659 | #define SSL_CTX_use_certificate wolfSSL_CTX_use_certificate
|
---|
660 | #define SSL_CTX_use_PrivateKey wolfSSL_CTX_use_PrivateKey
|
---|
661 | #define BIO_read_filename wolfSSL_BIO_read_filename
|
---|
662 | #define BIO_s_file wolfSSL_BIO_s_file
|
---|
663 | #define SSL_CTX_set_verify_depth wolfSSL_CTX_set_verify_depth
|
---|
664 | #define SSL_set_verify_depth wolfSSL_set_verify_depth
|
---|
665 | #define SSL_get_app_data wolfSSL_get_app_data
|
---|
666 | #define SSL_set_app_data wolfSSL_set_app_data
|
---|
667 | #define SHA1 wolfSSL_SHA1
|
---|
668 |
|
---|
669 | #define SSL_dup_CA_list wolfSSL_dup_CA_list
|
---|
670 |
|
---|
671 | enum {
|
---|
672 | GEN_DNS = 0x02, /* ASN_DNS_TYPE */
|
---|
673 | GEN_EMAIL = 0x01, /* ASN_RFC822_TYPE */
|
---|
674 | GEN_URI = 0x06 /* ASN_URI_TYPE */
|
---|
675 | };
|
---|
676 |
|
---|
677 | #define PEM_read_bio_DHparams wolfSSL_PEM_read_bio_DHparams
|
---|
678 | #define PEM_read_bio_DSAparams wolfSSL_PEM_read_bio_DSAparams
|
---|
679 |
|
---|
680 | #if defined(OPENSSL_ALL) || defined(WOLFSSL_HAPROXY)
|
---|
681 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
682 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
683 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
684 | #define SSL_get_ciphers(x) wolfSSL_get_ciphers_compat(x)
|
---|
685 | #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
|
---|
686 | #define SSL_get_cipher_bits(s,np) \
|
---|
687 | wolfSSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)
|
---|
688 | #define sk_SSL_CIPHER_num wolfSSL_sk_SSL_CIPHER_num
|
---|
689 | #define sk_SSL_COMP_zero wolfSSL_sk_SSL_COMP_zero
|
---|
690 | #define sk_SSL_CIPHER_value wolfSSL_sk_SSL_CIPHER_value
|
---|
691 | #endif /* OPENSSL_ALL || WOLFSSL_HAPROXY */
|
---|
692 |
|
---|
693 | #if defined(OPENSSL_ALL) || defined(WOLFSSL_ASIO)
|
---|
694 | #include <wolfssl/openssl/pem.h>
|
---|
695 |
|
---|
696 | typedef STACK_OF(WOLFSSL_ASN1_OBJECT) GENERAL_NAMES;
|
---|
697 | #define SSL_CTRL_CHAIN 88
|
---|
698 | #define BIO_CTRL_WPENDING 13
|
---|
699 | #define GEN_IPADD 7
|
---|
700 | #define ERR_LIB_SSL 20
|
---|
701 | #define SSL_R_SHORT_READ 10
|
---|
702 | #define ERR_R_PEM_LIB 9
|
---|
703 | #define V_ASN1_IA5STRING 22
|
---|
704 | #define SSL_CTRL_MODE 33
|
---|
705 |
|
---|
706 | #define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx,NULL)
|
---|
707 | #define d2i_RSAPrivateKey_bio wolfSSL_d2i_RSAPrivateKey_bio
|
---|
708 | #define SSL_CTX_use_RSAPrivateKey wolfSSL_CTX_use_RSAPrivateKey
|
---|
709 | #define d2i_PrivateKey_bio wolfSSL_d2i_PrivateKey_bio
|
---|
710 | #define BIO_new_bio_pair wolfSSL_BIO_new_bio_pair
|
---|
711 | #define SSL_get_verify_callback wolfSSL_get_verify_callback
|
---|
712 | #define GENERAL_NAMES_free(GENERAL_NAMES)NULL
|
---|
713 |
|
---|
714 | #define SSL_set_mode(ssl,op) wolfSSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
|
---|
715 |
|
---|
716 | #define SSL_CTX_use_certificate_ASN1 wolfSSL_CTX_use_certificate_ASN1
|
---|
717 | #define SSL_CTX_set0_chain(ctx,sk) \
|
---|
718 | wolfSSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))
|
---|
719 | #define SSL_CTX_get_app_data(ctx) wolfSSL_CTX_get_ex_data(ctx,0)
|
---|
720 | #define SSL_CTX_set_app_data(ctx,arg) wolfSSL_CTX_set_ex_data(ctx,0, \
|
---|
721 | (char *)(arg))
|
---|
722 | #endif /* OPENSSL_ALL || WOLFSSL_ASIO */
|
---|
723 |
|
---|
724 | #define SSL_CTX_set_tmp_dh wolfSSL_CTX_set_tmp_dh
|
---|
725 |
|
---|
726 | #define BIO_new_file wolfSSL_BIO_new_file
|
---|
727 | #define BIO_ctrl wolfSSL_BIO_ctrl
|
---|
728 | #define BIO_ctrl_pending wolfSSL_BIO_ctrl_pending
|
---|
729 | #define BIO_wpending wolfSSL_BIO_wpending
|
---|
730 | #define BIO_get_mem_ptr wolfSSL_BIO_get_mem_ptr
|
---|
731 | #define BIO_int_ctrl wolfSSL_BIO_int_ctrl
|
---|
732 | #define BIO_reset wolfSSL_BIO_reset
|
---|
733 | #define BIO_s_file wolfSSL_BIO_s_file
|
---|
734 | #define BIO_s_bio wolfSSL_BIO_s_bio
|
---|
735 | #define BIO_s_socket wolfSSL_BIO_s_socket
|
---|
736 | #define BIO_set_fd wolfSSL_BIO_set_fd
|
---|
737 | #define BIO_ctrl_reset_read_request wolfSSL_BIO_ctrl_reset_read_request
|
---|
738 |
|
---|
739 | #define BIO_set_write_buf_size wolfSSL_BIO_set_write_buf_size
|
---|
740 | #define BIO_make_bio_pair wolfSSL_BIO_make_bio_pair
|
---|
741 |
|
---|
742 | #define BIO_set_fp wolfSSL_BIO_set_fp
|
---|
743 | #define BIO_get_fp wolfSSL_BIO_get_fp
|
---|
744 | #define BIO_seek wolfSSL_BIO_seek
|
---|
745 | #define BIO_write_filename wolfSSL_BIO_write_filename
|
---|
746 | #define BIO_set_mem_eof_return wolfSSL_BIO_set_mem_eof_return
|
---|
747 |
|
---|
748 | #define TLSEXT_STATUSTYPE_ocsp 1
|
---|
749 |
|
---|
750 | #define SSL_set_options wolfSSL_set_options
|
---|
751 | #define SSL_get_options wolfSSL_get_options
|
---|
752 | #define SSL_clear_options wolfSSL_clear_options
|
---|
753 | #define SSL_set_tmp_dh wolfSSL_set_tmp_dh
|
---|
754 | #define SSL_clear_num_renegotiations wolfSSL_clear_num_renegotiations
|
---|
755 | #define SSL_total_renegotiations wolfSSL_total_renegotiations
|
---|
756 | #define SSL_set_tlsext_debug_arg wolfSSL_set_tlsext_debug_arg
|
---|
757 | #define SSL_set_tlsext_status_type wolfSSL_set_tlsext_status_type
|
---|
758 | #define SSL_set_tlsext_status_exts wolfSSL_set_tlsext_status_exts
|
---|
759 | #define SSL_get_tlsext_status_ids wolfSSL_get_tlsext_status_ids
|
---|
760 | #define SSL_set_tlsext_status_ids wolfSSL_set_tlsext_status_ids
|
---|
761 | #define SSL_get_tlsext_status_ocsp_res wolfSSL_get_tlsext_status_ocsp_resp
|
---|
762 | #define SSL_set_tlsext_status_ocsp_res wolfSSL_set_tlsext_status_ocsp_resp
|
---|
763 | #define SSL_set_tlsext_status_ocsp_resp wolfSSL_set_tlsext_status_ocsp_resp
|
---|
764 | #define SSL_get_tlsext_status_ocsp_resp wolfSSL_get_tlsext_status_ocsp_resp
|
---|
765 |
|
---|
766 | #define SSL_CTX_add_extra_chain_cert wolfSSL_CTX_add_extra_chain_cert
|
---|
767 | #define SSL_CTX_get_read_ahead wolfSSL_CTX_get_read_ahead
|
---|
768 | #define SSL_CTX_set_read_ahead wolfSSL_CTX_set_read_ahead
|
---|
769 | #define SSL_CTX_set_tlsext_status_arg wolfSSL_CTX_set_tlsext_status_arg
|
---|
770 | #define SSL_CTX_set_tlsext_opaque_prf_input_callback_arg \
|
---|
771 | wolfSSL_CTX_set_tlsext_opaque_prf_input_callback_arg
|
---|
772 | #define SSL_get_server_random wolfSSL_get_server_random
|
---|
773 |
|
---|
774 | #define SSL_get_tlsext_status_exts wolfSSL_get_tlsext_status_exts
|
---|
775 |
|
---|
776 | #define BIO_C_SET_FILE_PTR 106
|
---|
777 | #define BIO_C_GET_FILE_PTR 107
|
---|
778 | #define BIO_C_SET_FILENAME 108
|
---|
779 | #define BIO_C_FILE_SEEK 128
|
---|
780 | #define BIO_C_SET_BUF_MEM_EOF_RETURN 130
|
---|
781 | #define BIO_C_SET_WRITE_BUF_SIZE 136
|
---|
782 | #define BIO_C_MAKE_BIO_PAIR 138
|
---|
783 |
|
---|
784 | #define BIO_CTRL_RESET 1
|
---|
785 | #define BIO_CTRL_INFO 3
|
---|
786 | #define BIO_CTRL_FLUSH 11
|
---|
787 | #define BIO_CLOSE 0x01
|
---|
788 | #define BIO_FP_WRITE 0x04
|
---|
789 |
|
---|
790 | #define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
|
---|
791 | #define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
|
---|
792 | #define SSL_CTRL_SET_TMP_DH 3
|
---|
793 | #define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
|
---|
794 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
|
---|
795 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
|
---|
796 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
|
---|
797 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
|
---|
798 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
|
---|
799 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
|
---|
800 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
|
---|
801 |
|
---|
802 | #define SSL_CTRL_SET_TMP_DH 3
|
---|
803 | #define SSL_CTRL_EXTRA_CHAIN_CERT 14
|
---|
804 |
|
---|
805 | #define SSL_CTRL_SET_SESS_CACHE_SIZE 42
|
---|
806 | #define SSL_CTRL_GET_READ_AHEAD 40
|
---|
807 | #define SSL_CTRL_SET_READ_AHEAD 41
|
---|
808 |
|
---|
809 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB 63
|
---|
810 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
|
---|
811 |
|
---|
812 | #define SSL_CTRL_GET_EXTRA_CHAIN_CERTS 82
|
---|
813 |
|
---|
814 | #define SSL_ctrl wolfSSL_ctrl
|
---|
815 | #define SSL_CTX_ctrl wolfSSL_CTX_ctrl
|
---|
816 |
|
---|
817 | #define SSL3_RANDOM_SIZE 32 /* same as RAN_LEN in internal.h */
|
---|
818 | #if defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(OPENSSL_EXTRA) \
|
---|
819 | || defined(OPENSSL_ALL)
|
---|
820 | #include <wolfssl/openssl/asn1.h>
|
---|
821 |
|
---|
822 | #define SSL2_VERSION 0x0002
|
---|
823 | #define SSL3_VERSION 0x0300
|
---|
824 | #define TLS1_VERSION 0x0301
|
---|
825 | #define DTLS1_VERSION 0xFEFF
|
---|
826 | #define SSL23_ST_SR_CLNT_HELLO_A (0x210|0x2000)
|
---|
827 | #define SSL3_ST_SR_CLNT_HELLO_A (0x110|0x2000)
|
---|
828 | #define ASN1_STRFLGS_ESC_MSB 4
|
---|
829 |
|
---|
830 | #define SSL_MAX_MASTER_KEY_LENGTH WOLFSSL_MAX_MASTER_KEY_LENGTH
|
---|
831 |
|
---|
832 | #define SSL_alert_desc_string_long wolfSSL_alert_desc_string_long
|
---|
833 | #define SSL_alert_type_string_long wolfSSL_alert_type_string_long
|
---|
834 | #define SSL_CIPHER_get_bits wolfSSL_CIPHER_get_bits
|
---|
835 | #define sk_GENERAL_NAME_num wolfSSL_sk_GENERAL_NAME_num
|
---|
836 | #define SSL_CTX_get_options wolfSSL_CTX_get_options
|
---|
837 |
|
---|
838 | #define SSL_CTX_flush_sessions wolfSSL_flush_sessions
|
---|
839 | #define SSL_CTX_add_session wolfSSL_CTX_add_session
|
---|
840 | #define SSL_version wolfSSL_version
|
---|
841 | #define SSL_get_state wolfSSL_get_state
|
---|
842 | #define SSL_state_string_long wolfSSL_state_string_long
|
---|
843 |
|
---|
844 | #define sk_GENERAL_NAME_value wolfSSL_sk_GENERAL_NAME_value
|
---|
845 | #define SSL_SESSION_get_ex_data wolfSSL_SESSION_get_ex_data
|
---|
846 | #define SSL_SESSION_set_ex_data wolfSSL_SESSION_set_ex_data
|
---|
847 | #define SSL_SESSION_get_ex_new_index wolfSSL_SESSION_get_ex_new_index
|
---|
848 | #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
|
---|
849 | #define sk_GENERAL_NAME_pop_free wolfSSL_sk_GENERAL_NAME_pop_free
|
---|
850 | #define GENERAL_NAME_free NULL
|
---|
851 |
|
---|
852 | #define SSL3_AL_FATAL 2
|
---|
853 | #define SSL_TLSEXT_ERR_OK 0
|
---|
854 | #define SSL_TLSEXT_ERR_ALERT_FATAL alert_fatal
|
---|
855 | #define SSL_TLSEXT_ERR_NOACK alert_warning
|
---|
856 | #define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME
|
---|
857 |
|
---|
858 | #define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name
|
---|
859 | #define SSL_get_servername wolfSSL_get_servername
|
---|
860 | #define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX
|
---|
861 | #define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback
|
---|
862 | #define SSL_CTX_set_tlsext_servername_callback wolfSSL_CTX_set_tlsext_servername_callback
|
---|
863 | #define SSL_CTX_set_tlsext_servername_arg wolfSSL_CTX_set_servername_arg
|
---|
864 |
|
---|
865 | #define PSK_MAX_PSK_LEN 256
|
---|
866 | #define PSK_MAX_IDENTITY_LEN 128
|
---|
867 | #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
|
---|
868 |
|
---|
869 |
|
---|
870 | #endif /* HAVE_STUNNEL || WOLFSSL_NGINX */
|
---|
871 | #define SSL_CTX_get_default_passwd_cb wolfSSL_CTX_get_default_passwd_cb
|
---|
872 | #define SSL_CTX_get_default_passwd_cb_userdata wolfSSL_CTX_get_default_passwd_cb_userdata
|
---|
873 |
|
---|
874 | #define SSL_CTX_set_msg_callback wolfSSL_CTX_set_msg_callback
|
---|
875 | #define SSL_set_msg_callback wolfSSL_set_msg_callback
|
---|
876 | #define SSL_CTX_set_msg_callback_arg wolfSSL_CTX_set_msg_callback_arg
|
---|
877 | #define SSL_set_msg_callback_arg wolfSSL_set_msg_callback_arg
|
---|
878 |
|
---|
879 |
|
---|
880 | /* Nginx uses this to determine if reached end of certs in file.
|
---|
881 | * PEM_read_bio_X509 is called and the return error is lost.
|
---|
882 | * The error that needs to be detected is: SSL_NO_PEM_HEADER.
|
---|
883 | */
|
---|
884 | #define ERR_GET_LIB(l) (int)((((unsigned long)l)>>24L)&0xffL)
|
---|
885 | #define PEM_R_NO_START_LINE 108
|
---|
886 | #define ERR_LIB_PEM 9
|
---|
887 | #define ERR_LIB_X509 10
|
---|
888 |
|
---|
889 | #if defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) || \
|
---|
890 | defined(WOLFSSL_MYSQL_COMPATIBLE) || defined(OPENSSL_ALL) || \
|
---|
891 | defined(HAVE_LIGHTY)
|
---|
892 |
|
---|
893 | #include <wolfssl/error-ssl.h>
|
---|
894 |
|
---|
895 | #define OPENSSL_STRING WOLFSSL_STRING
|
---|
896 |
|
---|
897 | #define TLSEXT_TYPE_application_layer_protocol_negotiation 16
|
---|
898 |
|
---|
899 | #define OPENSSL_NPN_UNSUPPORTED 0
|
---|
900 | #define OPENSSL_NPN_NEGOTIATED 1
|
---|
901 | #define OPENSSL_NPN_NO_OVERLAP 2
|
---|
902 |
|
---|
903 | /* Nginx checks these to see if the error was a handshake error. */
|
---|
904 | #define SSL_R_BAD_CHANGE_CIPHER_SPEC LENGTH_ERROR
|
---|
905 | #define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG BUFFER_E
|
---|
906 | #define SSL_R_DIGEST_CHECK_FAILED VERIFY_MAC_ERROR
|
---|
907 | #define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST SUITES_ERROR
|
---|
908 | #define SSL_R_EXCESSIVE_MESSAGE_SIZE BUFFER_ERROR
|
---|
909 | #define SSL_R_LENGTH_MISMATCH LENGTH_ERROR
|
---|
910 | #define SSL_R_NO_CIPHERS_SPECIFIED SUITES_ERROR
|
---|
911 | #define SSL_R_NO_COMPRESSION_SPECIFIED COMPRESSION_ERROR
|
---|
912 | #define SSL_R_NO_SHARED_CIPHER MATCH_SUITE_ERROR
|
---|
913 | #define SSL_R_RECORD_LENGTH_MISMATCH HANDSHAKE_SIZE_ERROR
|
---|
914 | #define SSL_R_UNEXPECTED_MESSAGE OUT_OF_ORDER_E
|
---|
915 | #define SSL_R_UNEXPECTED_RECORD SANITY_MSG_E
|
---|
916 | #define SSL_R_UNKNOWN_ALERT_TYPE BUFFER_ERROR
|
---|
917 | #define SSL_R_UNKNOWN_PROTOCOL VERSION_ERROR
|
---|
918 | #define SSL_R_WRONG_VERSION_NUMBER VERSION_ERROR
|
---|
919 | #define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC ENCRYPT_ERROR
|
---|
920 | #define SSL_R_HTTPS_PROXY_REQUEST PARSE_ERROR
|
---|
921 | #define SSL_R_HTTP_REQUEST PARSE_ERROR
|
---|
922 | #define SSL_R_UNSUPPORTED_PROTOCOL VERSION_ERROR
|
---|
923 |
|
---|
924 |
|
---|
925 | #ifdef HAVE_SESSION_TICKET
|
---|
926 | #define SSL_OP_NO_TICKET SSL_OP_NO_TICKET
|
---|
927 | #define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72
|
---|
928 | #endif
|
---|
929 |
|
---|
930 | #define OPENSSL_config wolfSSL_OPENSSL_config
|
---|
931 | #define OPENSSL_memdup wolfSSL_OPENSSL_memdup
|
---|
932 | #define SSL_CTX_get_timeout wolfSSL_SSL_CTX_get_timeout
|
---|
933 | #define SSL_CTX_set_tmp_ecdh wolfSSL_SSL_CTX_set_tmp_ecdh
|
---|
934 | #define SSL_CTX_remove_session wolfSSL_SSL_CTX_remove_session
|
---|
935 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
936 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
937 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
938 | #define SSL_in_init wolfSSL_SSL_in_init
|
---|
939 | #define SSL_get0_session wolfSSL_SSL_get0_session
|
---|
940 | #define SSL_CTX_set_tlsext_ticket_key_cb wolfSSL_CTX_set_tlsext_ticket_key_cb
|
---|
941 | #define SSL_CTX_set_tlsext_status_cb wolfSSL_CTX_set_tlsext_status_cb
|
---|
942 | #define SSL_CTX_get_extra_chain_certs wolfSSL_CTX_get_extra_chain_certs
|
---|
943 | #define sk_OPENSSL_STRING_value wolfSSL_sk_WOLFSSL_STRING_value
|
---|
944 | #define SSL_get0_alpn_selected wolfSSL_get0_alpn_selected
|
---|
945 | #define SSL_select_next_proto wolfSSL_select_next_proto
|
---|
946 | #define SSL_CTX_set_alpn_select_cb wolfSSL_CTX_set_alpn_select_cb
|
---|
947 | #define SSL_CTX_set_next_protos_advertised_cb wolfSSL_CTX_set_next_protos_advertised_cb
|
---|
948 | #define SSL_CTX_set_next_proto_select_cb wolfSSL_CTX_set_next_proto_select_cb
|
---|
949 | #define SSL_get0_next_proto_negotiated wolfSSL_get0_next_proto_negotiated
|
---|
950 | #define SSL_is_server wolfSSL_is_server
|
---|
951 | #define SSL_CTX_set1_curves_list wolfSSL_CTX_set1_curves_list
|
---|
952 |
|
---|
953 | #endif /* WOLFSSL_NGINX || WOLFSSL_HAPROXY || WOLFSSL_MYSQL_COMPATIBLE ||
|
---|
954 | OPENSSL_ALL || HAVE_LIGHTY */
|
---|
955 |
|
---|
956 | #ifdef OPENSSL_EXTRA
|
---|
957 | #define SSL_CTX_add_client_CA wolfSSL_CTX_add_client_CA
|
---|
958 | #define SSL_CTX_set_srp_password wolfSSL_CTX_set_srp_password
|
---|
959 | #define SSL_CTX_set_srp_username wolfSSL_CTX_set_srp_username
|
---|
960 | #define SSL_get_SSL_CTX wolfSSL_get_SSL_CTX
|
---|
961 |
|
---|
962 | #define ERR_NUM_ERRORS 16
|
---|
963 | #define EVP_PKEY_RSA 6
|
---|
964 | #define EVP_PKEY_RSA2 19
|
---|
965 | #define SN_pkcs9_emailAddress "Email"
|
---|
966 | #define LN_pkcs9_emailAddress "emailAddress"
|
---|
967 | #define NID_pkcs9_emailAddress 48
|
---|
968 | #define OBJ_pkcs9_emailAddress 1L,2L,840L,113539L,1L,9L,1L
|
---|
969 |
|
---|
970 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
971 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
972 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
973 | #endif /* OPENSSL_EXTRA */
|
---|
974 |
|
---|
975 | #ifdef __cplusplus
|
---|
976 | } /* extern "C" */
|
---|
977 | #endif
|
---|
978 |
|
---|
979 | #endif /* wolfSSL_openssl_h__ */
|
---|