Xuyi Wang / wolfSSL

Dependents:   OS

Committer:
wolfSSL
Date:
Thu Apr 28 00:56:55 2016 +0000
Revision:
3:6f956bdb3073
wolfSSL 3.9.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 3:6f956bdb3073 1 /* ssl.h
wolfSSL 3:6f956bdb3073 2 *
wolfSSL 3:6f956bdb3073 3 * Copyright (C) 2006-2016 wolfSSL Inc.
wolfSSL 3:6f956bdb3073 4 *
wolfSSL 3:6f956bdb3073 5 * This file is part of wolfSSL.
wolfSSL 3:6f956bdb3073 6 *
wolfSSL 3:6f956bdb3073 7 * wolfSSL is free software; you can redistribute it and/or modify
wolfSSL 3:6f956bdb3073 8 * it under the terms of the GNU General Public License as published by
wolfSSL 3:6f956bdb3073 9 * the Free Software Foundation; either version 2 of the License, or
wolfSSL 3:6f956bdb3073 10 * (at your option) any later version.
wolfSSL 3:6f956bdb3073 11 *
wolfSSL 3:6f956bdb3073 12 * wolfSSL is distributed in the hope that it will be useful,
wolfSSL 3:6f956bdb3073 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
wolfSSL 3:6f956bdb3073 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wolfSSL 3:6f956bdb3073 15 * GNU General Public License for more details.
wolfSSL 3:6f956bdb3073 16 *
wolfSSL 3:6f956bdb3073 17 * You should have received a copy of the GNU General Public License
wolfSSL 3:6f956bdb3073 18 * along with this program; if not, write to the Free Software
wolfSSL 3:6f956bdb3073 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
wolfSSL 3:6f956bdb3073 20 */
wolfSSL 3:6f956bdb3073 21
wolfSSL 3:6f956bdb3073 22
wolfSSL 3:6f956bdb3073 23
wolfSSL 3:6f956bdb3073 24 /* ssl.h defines wolfssl_openssl compatibility layer
wolfSSL 3:6f956bdb3073 25 *
wolfSSL 3:6f956bdb3073 26 */
wolfSSL 3:6f956bdb3073 27
wolfSSL 3:6f956bdb3073 28
wolfSSL 3:6f956bdb3073 29 #ifndef WOLFSSL_OPENSSL_H_
wolfSSL 3:6f956bdb3073 30 #define WOLFSSL_OPENSSL_H_
wolfSSL 3:6f956bdb3073 31
wolfSSL 3:6f956bdb3073 32 /* wolfssl_openssl compatibility layer */
wolfSSL 3:6f956bdb3073 33 #include <wolfssl/ssl.h>
wolfSSL 3:6f956bdb3073 34
wolfSSL 3:6f956bdb3073 35 #ifdef __cplusplus
wolfSSL 3:6f956bdb3073 36 extern "C" {
wolfSSL 3:6f956bdb3073 37 #endif
wolfSSL 3:6f956bdb3073 38
wolfSSL 3:6f956bdb3073 39 #ifdef _WIN32
wolfSSL 3:6f956bdb3073 40 /* wincrypt.h clashes */
wolfSSL 3:6f956bdb3073 41 #undef X509_NAME
wolfSSL 3:6f956bdb3073 42 #endif
wolfSSL 3:6f956bdb3073 43
wolfSSL 3:6f956bdb3073 44
wolfSSL 3:6f956bdb3073 45 typedef WOLFSSL SSL;
wolfSSL 3:6f956bdb3073 46 typedef WOLFSSL_SESSION SSL_SESSION;
wolfSSL 3:6f956bdb3073 47 typedef WOLFSSL_METHOD SSL_METHOD;
wolfSSL 3:6f956bdb3073 48 typedef WOLFSSL_CTX SSL_CTX;
wolfSSL 3:6f956bdb3073 49
wolfSSL 3:6f956bdb3073 50 typedef WOLFSSL_X509 X509;
wolfSSL 3:6f956bdb3073 51 typedef WOLFSSL_X509_NAME X509_NAME;
wolfSSL 3:6f956bdb3073 52 typedef WOLFSSL_X509_CHAIN X509_CHAIN;
wolfSSL 3:6f956bdb3073 53
wolfSSL 3:6f956bdb3073 54
wolfSSL 3:6f956bdb3073 55 /* redeclare guard */
wolfSSL 3:6f956bdb3073 56 #define WOLFSSL_TYPES_DEFINED
wolfSSL 3:6f956bdb3073 57
wolfSSL 3:6f956bdb3073 58
wolfSSL 3:6f956bdb3073 59 typedef WOLFSSL_EVP_PKEY EVP_PKEY;
wolfSSL 3:6f956bdb3073 60 typedef WOLFSSL_RSA RSA;
wolfSSL 3:6f956bdb3073 61 typedef WOLFSSL_DSA DSA;
wolfSSL 3:6f956bdb3073 62 typedef WOLFSSL_EC_KEY EC_KEY;
wolfSSL 3:6f956bdb3073 63 typedef WOLFSSL_EC_GROUP EC_GROUP;
wolfSSL 3:6f956bdb3073 64 typedef WOLFSSL_EC_POINT EC_POINT;
wolfSSL 3:6f956bdb3073 65 typedef WOLFSSL_ECDSA_SIG ECDSA_SIG;
wolfSSL 3:6f956bdb3073 66 typedef WOLFSSL_BIO BIO;
wolfSSL 3:6f956bdb3073 67 typedef WOLFSSL_BIO_METHOD BIO_METHOD;
wolfSSL 3:6f956bdb3073 68 typedef WOLFSSL_CIPHER SSL_CIPHER;
wolfSSL 3:6f956bdb3073 69 typedef WOLFSSL_X509_LOOKUP X509_LOOKUP;
wolfSSL 3:6f956bdb3073 70 typedef WOLFSSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
wolfSSL 3:6f956bdb3073 71 typedef WOLFSSL_X509_CRL X509_CRL;
wolfSSL 3:6f956bdb3073 72 typedef WOLFSSL_X509_EXTENSION X509_EXTENSION;
wolfSSL 3:6f956bdb3073 73 typedef WOLFSSL_ASN1_TIME ASN1_TIME;
wolfSSL 3:6f956bdb3073 74 typedef WOLFSSL_ASN1_INTEGER ASN1_INTEGER;
wolfSSL 3:6f956bdb3073 75 typedef WOLFSSL_ASN1_OBJECT ASN1_OBJECT;
wolfSSL 3:6f956bdb3073 76 typedef WOLFSSL_ASN1_STRING ASN1_STRING;
wolfSSL 3:6f956bdb3073 77 typedef WOLFSSL_dynlock_value CRYPTO_dynlock_value;
wolfSSL 3:6f956bdb3073 78
wolfSSL 3:6f956bdb3073 79 #define ASN1_UTCTIME WOLFSSL_ASN1_TIME
wolfSSL 3:6f956bdb3073 80
wolfSSL 3:6f956bdb3073 81 typedef WOLFSSL_MD4_CTX MD4_CTX;
wolfSSL 3:6f956bdb3073 82 typedef WOLFSSL_COMP_METHOD COMP_METHOD;
wolfSSL 3:6f956bdb3073 83 typedef WOLFSSL_X509_STORE X509_STORE;
wolfSSL 3:6f956bdb3073 84 typedef WOLFSSL_X509_REVOKED X509_REVOKED;
wolfSSL 3:6f956bdb3073 85 typedef WOLFSSL_X509_OBJECT X509_OBJECT;
wolfSSL 3:6f956bdb3073 86 typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
wolfSSL 3:6f956bdb3073 87
wolfSSL 3:6f956bdb3073 88 #define SSL_get_cipher_list(ctx,i) wolfSSL_get_cipher_list((i))
wolfSSL 3:6f956bdb3073 89 #define SSL_get_cipher_name(ctx) wolfSSL_get_cipher((ctx))
wolfSSL 3:6f956bdb3073 90 #define SSL_get_shared_ciphers(ctx,buf,len) \
wolfSSL 3:6f956bdb3073 91 strncpy(buf, "Not Implemented, SSLv2 only", len)
wolfSSL 3:6f956bdb3073 92
wolfSSL 3:6f956bdb3073 93 /* @TODO */
wolfSSL 3:6f956bdb3073 94 #define ERR_print_errors_fp(file)
wolfSSL 3:6f956bdb3073 95
wolfSSL 3:6f956bdb3073 96 /* at the moment only returns ok */
wolfSSL 3:6f956bdb3073 97 #define SSL_get_verify_result(ctx) X509_V_OK
wolfSSL 3:6f956bdb3073 98 #define SSL_get_verify_mode wolfSSL_SSL_get_mode
wolfSSL 3:6f956bdb3073 99 #define SSL_get_verify_depth wolfSSL_get_verify_depth
wolfSSL 3:6f956bdb3073 100 #define SSL_CTX_get_verify_mode wolfSSL_CTX_get_verify_mode
wolfSSL 3:6f956bdb3073 101 #define SSL_CTX_get_verify_depth wolfSSL_CTX_get_verify_depth
wolfSSL 3:6f956bdb3073 102 #define SSL_get_certificate(ctx) 0 /* used to pass to get_privatekey */
wolfSSL 3:6f956bdb3073 103
wolfSSL 3:6f956bdb3073 104 #define SSLv3_server_method wolfSSLv3_server_method
wolfSSL 3:6f956bdb3073 105 #define SSLv3_client_method wolfSSLv3_client_method
wolfSSL 3:6f956bdb3073 106 #define TLSv1_server_method wolfTLSv1_server_method
wolfSSL 3:6f956bdb3073 107 #define TLSv1_client_method wolfTLSv1_client_method
wolfSSL 3:6f956bdb3073 108 #define TLSv1_1_server_method wolfTLSv1_1_server_method
wolfSSL 3:6f956bdb3073 109 #define TLSv1_1_client_method wolfTLSv1_1_client_method
wolfSSL 3:6f956bdb3073 110 #define TLSv1_2_server_method wolfTLSv1_2_server_method
wolfSSL 3:6f956bdb3073 111 #define TLSv1_2_client_method wolfTLSv1_2_client_method
wolfSSL 3:6f956bdb3073 112
wolfSSL 3:6f956bdb3073 113 #ifdef WOLFSSL_DTLS
wolfSSL 3:6f956bdb3073 114 #define DTLSv1_client_method wolfDTLSv1_client_method
wolfSSL 3:6f956bdb3073 115 #define DTLSv1_server_method wolfDTLSv1_server_method
wolfSSL 3:6f956bdb3073 116 #define DTLSv1_2_client_method wolfDTLSv1_2_client_method
wolfSSL 3:6f956bdb3073 117 #define DTLSv1_2_server_method wolfDTLSv1_2_server_method
wolfSSL 3:6f956bdb3073 118 #endif
wolfSSL 3:6f956bdb3073 119
wolfSSL 3:6f956bdb3073 120
wolfSSL 3:6f956bdb3073 121 #ifndef NO_FILESYSTEM
wolfSSL 3:6f956bdb3073 122 #define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
wolfSSL 3:6f956bdb3073 123 #define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
wolfSSL 3:6f956bdb3073 124 #define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
wolfSSL 3:6f956bdb3073 125 #define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
wolfSSL 3:6f956bdb3073 126 #define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
wolfSSL 3:6f956bdb3073 127
wolfSSL 3:6f956bdb3073 128 #define SSL_use_certificate_file wolfSSL_use_certificate_file
wolfSSL 3:6f956bdb3073 129 #define SSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
wolfSSL 3:6f956bdb3073 130 #define SSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
wolfSSL 3:6f956bdb3073 131 #define SSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
wolfSSL 3:6f956bdb3073 132 #endif
wolfSSL 3:6f956bdb3073 133
wolfSSL 3:6f956bdb3073 134 #define SSL_CTX_new wolfSSL_CTX_new
wolfSSL 3:6f956bdb3073 135 #define SSL_new wolfSSL_new
wolfSSL 3:6f956bdb3073 136 #define SSL_set_fd wolfSSL_set_fd
wolfSSL 3:6f956bdb3073 137 #define SSL_get_fd wolfSSL_get_fd
wolfSSL 3:6f956bdb3073 138 #define SSL_connect wolfSSL_connect
wolfSSL 3:6f956bdb3073 139 #define SSL_clear wolfSSL_clear
wolfSSL 3:6f956bdb3073 140
wolfSSL 3:6f956bdb3073 141 #define SSL_write wolfSSL_write
wolfSSL 3:6f956bdb3073 142 #define SSL_read wolfSSL_read
wolfSSL 3:6f956bdb3073 143 #define SSL_peek wolfSSL_peek
wolfSSL 3:6f956bdb3073 144 #define SSL_accept wolfSSL_accept
wolfSSL 3:6f956bdb3073 145 #define SSL_CTX_free wolfSSL_CTX_free
wolfSSL 3:6f956bdb3073 146 #define SSL_free wolfSSL_free
wolfSSL 3:6f956bdb3073 147 #define SSL_shutdown wolfSSL_shutdown
wolfSSL 3:6f956bdb3073 148
wolfSSL 3:6f956bdb3073 149 #define SSL_CTX_set_quiet_shutdown wolfSSL_CTX_set_quiet_shutdown
wolfSSL 3:6f956bdb3073 150 #define SSL_set_quiet_shutdown wolfSSL_set_quiet_shutdown
wolfSSL 3:6f956bdb3073 151 #define SSL_get_error wolfSSL_get_error
wolfSSL 3:6f956bdb3073 152 #define SSL_set_session wolfSSL_set_session
wolfSSL 3:6f956bdb3073 153 #define SSL_get_session wolfSSL_get_session
wolfSSL 3:6f956bdb3073 154 #define SSL_flush_sessions wolfSSL_flush_sessions
wolfSSL 3:6f956bdb3073 155 /* assume unlimited temporarily */
wolfSSL 3:6f956bdb3073 156 #define SSL_CTX_get_session_cache_mode(ctx) 0
wolfSSL 3:6f956bdb3073 157
wolfSSL 3:6f956bdb3073 158 #define SSL_CTX_set_verify wolfSSL_CTX_set_verify
wolfSSL 3:6f956bdb3073 159 #define SSL_set_verify wolfSSL_set_verify
wolfSSL 3:6f956bdb3073 160 #define SSL_pending wolfSSL_pending
wolfSSL 3:6f956bdb3073 161 #define SSL_load_error_strings wolfSSL_load_error_strings
wolfSSL 3:6f956bdb3073 162 #define SSL_library_init wolfSSL_library_init
wolfSSL 3:6f956bdb3073 163 #define SSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
wolfSSL 3:6f956bdb3073 164 #define SSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
wolfSSL 3:6f956bdb3073 165 #define SSL_set_cipher_list wolfSSL_set_cipher_list
wolfSSL 3:6f956bdb3073 166
wolfSSL 3:6f956bdb3073 167 #define ERR_error_string wolfSSL_ERR_error_string
wolfSSL 3:6f956bdb3073 168 #define ERR_error_string_n wolfSSL_ERR_error_string_n
wolfSSL 3:6f956bdb3073 169 #define ERR_reason_error_string wolfSSL_ERR_reason_error_string
wolfSSL 3:6f956bdb3073 170
wolfSSL 3:6f956bdb3073 171 #define SSL_set_ex_data wolfSSL_set_ex_data
wolfSSL 3:6f956bdb3073 172 #define SSL_get_shutdown wolfSSL_get_shutdown
wolfSSL 3:6f956bdb3073 173 #define SSL_set_rfd wolfSSL_set_rfd
wolfSSL 3:6f956bdb3073 174 #define SSL_set_wfd wolfSSL_set_wfd
wolfSSL 3:6f956bdb3073 175 #define SSL_set_shutdown wolfSSL_set_shutdown
wolfSSL 3:6f956bdb3073 176 #define SSL_set_session_id_context wolfSSL_set_session_id_context
wolfSSL 3:6f956bdb3073 177 #define SSL_set_connect_state wolfSSL_set_connect_state
wolfSSL 3:6f956bdb3073 178 #define SSL_set_accept_state wolfSSL_set_accept_state
wolfSSL 3:6f956bdb3073 179 #define SSL_session_reused wolfSSL_session_reused
wolfSSL 3:6f956bdb3073 180 #define SSL_SESSION_free wolfSSL_SESSION_free
wolfSSL 3:6f956bdb3073 181 #define SSL_is_init_finished wolfSSL_is_init_finished
wolfSSL 3:6f956bdb3073 182
wolfSSL 3:6f956bdb3073 183 #define SSL_get_version wolfSSL_get_version
wolfSSL 3:6f956bdb3073 184 #define SSL_get_current_cipher wolfSSL_get_current_cipher
wolfSSL 3:6f956bdb3073 185 #define SSL_get_cipher wolfSSL_get_cipher
wolfSSL 3:6f956bdb3073 186 #define SSL_CIPHER_description wolfSSL_CIPHER_description
wolfSSL 3:6f956bdb3073 187 #define SSL_CIPHER_get_name wolfSSL_CIPHER_get_name
wolfSSL 3:6f956bdb3073 188 #define SSL_get1_session wolfSSL_get1_session
wolfSSL 3:6f956bdb3073 189
wolfSSL 3:6f956bdb3073 190 #define SSL_get_keyblock_size wolfSSL_get_keyblock_size
wolfSSL 3:6f956bdb3073 191 #define SSL_get_keys wolfSSL_get_keys
wolfSSL 3:6f956bdb3073 192
wolfSSL 3:6f956bdb3073 193 #define X509_free wolfSSL_X509_free
wolfSSL 3:6f956bdb3073 194 #define OPENSSL_free wolfSSL_OPENSSL_free
wolfSSL 3:6f956bdb3073 195
wolfSSL 3:6f956bdb3073 196 #define OCSP_parse_url wolfSSL_OCSP_parse_url
wolfSSL 3:6f956bdb3073 197 #define SSLv23_client_method wolfSSLv23_client_method
wolfSSL 3:6f956bdb3073 198 #define SSLv2_client_method wolfSSLv2_client_method
wolfSSL 3:6f956bdb3073 199 #define SSLv2_server_method wolfSSLv2_server_method
wolfSSL 3:6f956bdb3073 200
wolfSSL 3:6f956bdb3073 201 #define MD4_Init wolfSSL_MD4_Init
wolfSSL 3:6f956bdb3073 202 #define MD4_Update wolfSSL_MD4_Update
wolfSSL 3:6f956bdb3073 203 #define MD4_Final wolfSSL_MD4_Final
wolfSSL 3:6f956bdb3073 204
wolfSSL 3:6f956bdb3073 205 #define BIO_new wolfSSL_BIO_new
wolfSSL 3:6f956bdb3073 206 #define BIO_free wolfSSL_BIO_free
wolfSSL 3:6f956bdb3073 207 #define BIO_free_all wolfSSL_BIO_free_all
wolfSSL 3:6f956bdb3073 208 #define BIO_read wolfSSL_BIO_read
wolfSSL 3:6f956bdb3073 209 #define BIO_write wolfSSL_BIO_write
wolfSSL 3:6f956bdb3073 210 #define BIO_push wolfSSL_BIO_push
wolfSSL 3:6f956bdb3073 211 #define BIO_pop wolfSSL_BIO_pop
wolfSSL 3:6f956bdb3073 212 #define BIO_flush wolfSSL_BIO_flush
wolfSSL 3:6f956bdb3073 213 #define BIO_pending wolfSSL_BIO_pending
wolfSSL 3:6f956bdb3073 214
wolfSSL 3:6f956bdb3073 215 #define BIO_get_mem_data wolfSSL_BIO_get_mem_data
wolfSSL 3:6f956bdb3073 216 #define BIO_new_mem_buf wolfSSL_BIO_new_mem_buf
wolfSSL 3:6f956bdb3073 217
wolfSSL 3:6f956bdb3073 218 #define BIO_f_buffer wolfSSL_BIO_f_buffer
wolfSSL 3:6f956bdb3073 219 #define BIO_set_write_buffer_size wolfSSL_BIO_set_write_buffer_size
wolfSSL 3:6f956bdb3073 220 #define BIO_f_ssl wolfSSL_BIO_f_ssl
wolfSSL 3:6f956bdb3073 221 #define BIO_new_socket wolfSSL_BIO_new_socket
wolfSSL 3:6f956bdb3073 222 #define SSL_set_bio wolfSSL_set_bio
wolfSSL 3:6f956bdb3073 223 #define BIO_eof wolfSSL_BIO_eof
wolfSSL 3:6f956bdb3073 224 #define BIO_set_ss wolfSSL_BIO_set_ss
wolfSSL 3:6f956bdb3073 225
wolfSSL 3:6f956bdb3073 226 #define BIO_s_mem wolfSSL_BIO_s_mem
wolfSSL 3:6f956bdb3073 227 #define BIO_f_base64 wolfSSL_BIO_f_base64
wolfSSL 3:6f956bdb3073 228 #define BIO_set_flags wolfSSL_BIO_set_flags
wolfSSL 3:6f956bdb3073 229
wolfSSL 3:6f956bdb3073 230 #define OpenSSL_add_all_algorithms wolfSSL_add_all_algorithms
wolfSSL 3:6f956bdb3073 231 #define SSLeay_add_ssl_algorithms wolfSSL_add_all_algorithms
wolfSSL 3:6f956bdb3073 232 #define SSLeay_add_all_algorithms wolfSSL_add_all_algorithms
wolfSSL 3:6f956bdb3073 233
wolfSSL 3:6f956bdb3073 234 #define RAND_screen wolfSSL_RAND_screen
wolfSSL 3:6f956bdb3073 235 #define RAND_file_name wolfSSL_RAND_file_name
wolfSSL 3:6f956bdb3073 236 #define RAND_write_file wolfSSL_RAND_write_file
wolfSSL 3:6f956bdb3073 237 #define RAND_load_file wolfSSL_RAND_load_file
wolfSSL 3:6f956bdb3073 238 #define RAND_egd wolfSSL_RAND_egd
wolfSSL 3:6f956bdb3073 239 #define RAND_seed wolfSSL_RAND_seed
wolfSSL 3:6f956bdb3073 240 #define RAND_add wolfSSL_RAND_add
wolfSSL 3:6f956bdb3073 241
wolfSSL 3:6f956bdb3073 242 #define COMP_zlib wolfSSL_COMP_zlib
wolfSSL 3:6f956bdb3073 243 #define COMP_rle wolfSSL_COMP_rle
wolfSSL 3:6f956bdb3073 244 #define SSL_COMP_add_compression_method wolfSSL_COMP_add_compression_method
wolfSSL 3:6f956bdb3073 245
wolfSSL 3:6f956bdb3073 246 #define SSL_get_ex_new_index wolfSSL_get_ex_new_index
wolfSSL 3:6f956bdb3073 247
wolfSSL 3:6f956bdb3073 248 #define CRYPTO_set_id_callback wolfSSL_set_id_callback
wolfSSL 3:6f956bdb3073 249 #define CRYPTO_set_locking_callback wolfSSL_set_locking_callback
wolfSSL 3:6f956bdb3073 250 #define CRYPTO_set_dynlock_create_callback wolfSSL_set_dynlock_create_callback
wolfSSL 3:6f956bdb3073 251 #define CRYPTO_set_dynlock_lock_callback wolfSSL_set_dynlock_lock_callback
wolfSSL 3:6f956bdb3073 252 #define CRYPTO_set_dynlock_destroy_callback wolfSSL_set_dynlock_destroy_callback
wolfSSL 3:6f956bdb3073 253 #define CRYPTO_num_locks wolfSSL_num_locks
wolfSSL 3:6f956bdb3073 254
wolfSSL 3:6f956bdb3073 255 #define X509_STORE_CTX_get_current_cert wolfSSL_X509_STORE_CTX_get_current_cert
wolfSSL 3:6f956bdb3073 256 #define X509_STORE_CTX_get_error wolfSSL_X509_STORE_CTX_get_error
wolfSSL 3:6f956bdb3073 257 #define X509_STORE_CTX_get_error_depth wolfSSL_X509_STORE_CTX_get_error_depth
wolfSSL 3:6f956bdb3073 258
wolfSSL 3:6f956bdb3073 259 #define X509_NAME_oneline wolfSSL_X509_NAME_oneline
wolfSSL 3:6f956bdb3073 260 #define X509_get_issuer_name wolfSSL_X509_get_issuer_name
wolfSSL 3:6f956bdb3073 261 #define X509_get_subject_name wolfSSL_X509_get_subject_name
wolfSSL 3:6f956bdb3073 262 #define X509_verify_cert_error_string wolfSSL_X509_verify_cert_error_string
wolfSSL 3:6f956bdb3073 263
wolfSSL 3:6f956bdb3073 264 #define X509_LOOKUP_add_dir wolfSSL_X509_LOOKUP_add_dir
wolfSSL 3:6f956bdb3073 265 #define X509_LOOKUP_load_file wolfSSL_X509_LOOKUP_load_file
wolfSSL 3:6f956bdb3073 266 #define X509_LOOKUP_hash_dir wolfSSL_X509_LOOKUP_hash_dir
wolfSSL 3:6f956bdb3073 267 #define X509_LOOKUP_file wolfSSL_X509_LOOKUP_file
wolfSSL 3:6f956bdb3073 268
wolfSSL 3:6f956bdb3073 269 #define X509_STORE_add_lookup wolfSSL_X509_STORE_add_lookup
wolfSSL 3:6f956bdb3073 270 #define X509_STORE_new wolfSSL_X509_STORE_new
wolfSSL 3:6f956bdb3073 271 #define X509_STORE_get_by_subject wolfSSL_X509_STORE_get_by_subject
wolfSSL 3:6f956bdb3073 272 #define X509_STORE_CTX_init wolfSSL_X509_STORE_CTX_init
wolfSSL 3:6f956bdb3073 273 #define X509_STORE_CTX_cleanup wolfSSL_X509_STORE_CTX_cleanup
wolfSSL 3:6f956bdb3073 274
wolfSSL 3:6f956bdb3073 275 #define X509_CRL_get_lastUpdate wolfSSL_X509_CRL_get_lastUpdate
wolfSSL 3:6f956bdb3073 276 #define X509_CRL_get_nextUpdate wolfSSL_X509_CRL_get_nextUpdate
wolfSSL 3:6f956bdb3073 277
wolfSSL 3:6f956bdb3073 278 #define X509_get_pubkey wolfSSL_X509_get_pubkey
wolfSSL 3:6f956bdb3073 279 #define X509_CRL_verify wolfSSL_X509_CRL_verify
wolfSSL 3:6f956bdb3073 280 #define X509_STORE_CTX_set_error wolfSSL_X509_STORE_CTX_set_error
wolfSSL 3:6f956bdb3073 281 #define X509_OBJECT_free_contents wolfSSL_X509_OBJECT_free_contents
wolfSSL 3:6f956bdb3073 282 #define EVP_PKEY_free wolfSSL_EVP_PKEY_free
wolfSSL 3:6f956bdb3073 283 #define X509_cmp_current_time wolfSSL_X509_cmp_current_time
wolfSSL 3:6f956bdb3073 284 #define sk_X509_REVOKED_num wolfSSL_sk_X509_REVOKED_num
wolfSSL 3:6f956bdb3073 285 #define X509_CRL_get_REVOKED wolfSSL_X509_CRL_get_REVOKED
wolfSSL 3:6f956bdb3073 286 #define sk_X509_REVOKED_value wolfSSL_sk_X509_REVOKED_value
wolfSSL 3:6f956bdb3073 287 #define X509_get_notBefore(cert) (ASN1_TIME*)wolfSSL_X509_notBefore((cert))
wolfSSL 3:6f956bdb3073 288 #define X509_get_notAfter(cert) (ASN1_TIME*)wolfSSL_X509_notAfter((cert))
wolfSSL 3:6f956bdb3073 289
wolfSSL 3:6f956bdb3073 290
wolfSSL 3:6f956bdb3073 291 #define X509_get_serialNumber wolfSSL_X509_get_serialNumber
wolfSSL 3:6f956bdb3073 292
wolfSSL 3:6f956bdb3073 293 #define ASN1_TIME_print wolfSSL_ASN1_TIME_print
wolfSSL 3:6f956bdb3073 294
wolfSSL 3:6f956bdb3073 295 #define ASN1_INTEGER_cmp wolfSSL_ASN1_INTEGER_cmp
wolfSSL 3:6f956bdb3073 296 #define ASN1_INTEGER_get wolfSSL_ASN1_INTEGER_get
wolfSSL 3:6f956bdb3073 297
wolfSSL 3:6f956bdb3073 298 #define SSL_load_client_CA_file wolfSSL_load_client_CA_file
wolfSSL 3:6f956bdb3073 299
wolfSSL 3:6f956bdb3073 300 #define SSL_CTX_set_client_CA_list wolfSSL_CTX_set_client_CA_list
wolfSSL 3:6f956bdb3073 301 #define X509_STORE_CTX_get_ex_data wolfSSL_X509_STORE_CTX_get_ex_data
wolfSSL 3:6f956bdb3073 302 #define SSL_get_ex_data_X509_STORE_CTX_idx wolfSSL_get_ex_data_X509_STORE_CTX_idx
wolfSSL 3:6f956bdb3073 303 #define SSL_get_ex_data wolfSSL_get_ex_data
wolfSSL 3:6f956bdb3073 304
wolfSSL 3:6f956bdb3073 305 #define SSL_CTX_set_default_passwd_cb_userdata wolfSSL_CTX_set_default_passwd_cb_userdata
wolfSSL 3:6f956bdb3073 306 #define SSL_CTX_set_default_passwd_cb wolfSSL_CTX_set_default_passwd_cb
wolfSSL 3:6f956bdb3073 307
wolfSSL 3:6f956bdb3073 308 #define SSL_CTX_set_timeout(ctx, to) wolfSSL_CTX_set_timeout(ctx, (unsigned int) to)
wolfSSL 3:6f956bdb3073 309 #define SSL_CTX_set_info_callback wolfSSL_CTX_set_info_callback
wolfSSL 3:6f956bdb3073 310
wolfSSL 3:6f956bdb3073 311 #define ERR_peek_error wolfSSL_ERR_peek_error
wolfSSL 3:6f956bdb3073 312 #define ERR_GET_REASON wolfSSL_ERR_GET_REASON
wolfSSL 3:6f956bdb3073 313
wolfSSL 3:6f956bdb3073 314 #define SSL_alert_type_string wolfSSL_alert_type_string
wolfSSL 3:6f956bdb3073 315 #define SSL_alert_desc_string wolfSSL_alert_desc_string
wolfSSL 3:6f956bdb3073 316 #define SSL_state_string wolfSSL_state_string
wolfSSL 3:6f956bdb3073 317
wolfSSL 3:6f956bdb3073 318 #define RSA_free wolfSSL_RSA_free
wolfSSL 3:6f956bdb3073 319 #define RSA_generate_key wolfSSL_RSA_generate_key
wolfSSL 3:6f956bdb3073 320 #define SSL_CTX_set_tmp_rsa_callback wolfSSL_CTX_set_tmp_rsa_callback
wolfSSL 3:6f956bdb3073 321
wolfSSL 3:6f956bdb3073 322 #define PEM_def_callback wolfSSL_PEM_def_callback
wolfSSL 3:6f956bdb3073 323
wolfSSL 3:6f956bdb3073 324 #define SSL_CTX_sess_accept wolfSSL_CTX_sess_accept
wolfSSL 3:6f956bdb3073 325 #define SSL_CTX_sess_connect wolfSSL_CTX_sess_connect
wolfSSL 3:6f956bdb3073 326 #define SSL_CTX_sess_accept_good wolfSSL_CTX_sess_accept_good
wolfSSL 3:6f956bdb3073 327 #define SSL_CTX_sess_connect_good wolfSSL_CTX_sess_connect_good
wolfSSL 3:6f956bdb3073 328 #define SSL_CTX_sess_accept_renegotiate wolfSSL_CTX_sess_accept_renegotiate
wolfSSL 3:6f956bdb3073 329 #define SSL_CTX_sess_connect_renegotiate wolfSSL_CTX_sess_connect_renegotiate
wolfSSL 3:6f956bdb3073 330 #define SSL_CTX_sess_hits wolfSSL_CTX_sess_hits
wolfSSL 3:6f956bdb3073 331 #define SSL_CTX_sess_cb_hits wolfSSL_CTX_sess_cb_hits
wolfSSL 3:6f956bdb3073 332 #define SSL_CTX_sess_cache_full wolfSSL_CTX_sess_cache_full
wolfSSL 3:6f956bdb3073 333 #define SSL_CTX_sess_misses wolfSSL_CTX_sess_misses
wolfSSL 3:6f956bdb3073 334 #define SSL_CTX_sess_timeouts wolfSSL_CTX_sess_timeouts
wolfSSL 3:6f956bdb3073 335 #define SSL_CTX_sess_number wolfSSL_CTX_sess_number
wolfSSL 3:6f956bdb3073 336 #define SSL_CTX_sess_get_cache_size wolfSSL_CTX_sess_get_cache_size
wolfSSL 3:6f956bdb3073 337
wolfSSL 3:6f956bdb3073 338
wolfSSL 3:6f956bdb3073 339 #define SSL_DEFAULT_CIPHER_LIST WOLFSSL_DEFAULT_CIPHER_LIST
wolfSSL 3:6f956bdb3073 340 #define RSA_F4 WOLFSSL_RSA_F4
wolfSSL 3:6f956bdb3073 341
wolfSSL 3:6f956bdb3073 342 #define SSL_CTX_set_psk_client_callback wolfSSL_CTX_set_psk_client_callback
wolfSSL 3:6f956bdb3073 343 #define SSL_set_psk_client_callback wolfSSL_set_psk_client_callback
wolfSSL 3:6f956bdb3073 344
wolfSSL 3:6f956bdb3073 345 #define SSL_get_psk_identity_hint wolfSSL_get_psk_identity_hint
wolfSSL 3:6f956bdb3073 346 #define SSL_get_psk_identity wolfSSL_get_psk_identity
wolfSSL 3:6f956bdb3073 347
wolfSSL 3:6f956bdb3073 348 #define SSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint
wolfSSL 3:6f956bdb3073 349 #define SSL_use_psk_identity_hint wolfSSL_use_psk_identity_hint
wolfSSL 3:6f956bdb3073 350
wolfSSL 3:6f956bdb3073 351 #define SSL_CTX_set_psk_server_callback wolfSSL_CTX_set_psk_server_callback
wolfSSL 3:6f956bdb3073 352 #define SSL_set_psk_server_callback wolfSSL_set_psk_server_callback
wolfSSL 3:6f956bdb3073 353
wolfSSL 3:6f956bdb3073 354 #define ERR_get_error_line_data wolfSSL_ERR_get_error_line_data
wolfSSL 3:6f956bdb3073 355
wolfSSL 3:6f956bdb3073 356 #define ERR_get_error wolfSSL_ERR_get_error
wolfSSL 3:6f956bdb3073 357 #define ERR_clear_error wolfSSL_ERR_clear_error
wolfSSL 3:6f956bdb3073 358
wolfSSL 3:6f956bdb3073 359 #define RAND_status wolfSSL_RAND_status
wolfSSL 3:6f956bdb3073 360 #define RAND_bytes wolfSSL_RAND_bytes
wolfSSL 3:6f956bdb3073 361 #define SSLv23_server_method wolfSSLv23_server_method
wolfSSL 3:6f956bdb3073 362 #define SSL_CTX_set_options wolfSSL_CTX_set_options
wolfSSL 3:6f956bdb3073 363 #define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
wolfSSL 3:6f956bdb3073 364
wolfSSL 3:6f956bdb3073 365 #define ERR_free_strings wolfSSL_ERR_free_strings
wolfSSL 3:6f956bdb3073 366 #define ERR_remove_state wolfSSL_ERR_remove_state
wolfSSL 3:6f956bdb3073 367 #define EVP_cleanup wolfSSL_EVP_cleanup
wolfSSL 3:6f956bdb3073 368
wolfSSL 3:6f956bdb3073 369 #define CRYPTO_cleanup_all_ex_data wolfSSL_cleanup_all_ex_data
wolfSSL 3:6f956bdb3073 370 #define SSL_CTX_set_mode wolfSSL_CTX_set_mode
wolfSSL 3:6f956bdb3073 371 #define SSL_CTX_get_mode wolfSSL_CTX_get_mode
wolfSSL 3:6f956bdb3073 372 #define SSL_CTX_set_default_read_ahead wolfSSL_CTX_set_default_read_ahead
wolfSSL 3:6f956bdb3073 373
wolfSSL 3:6f956bdb3073 374 #define SSL_CTX_sess_set_cache_size wolfSSL_CTX_sess_set_cache_size
wolfSSL 3:6f956bdb3073 375 #define SSL_CTX_set_default_verify_paths wolfSSL_CTX_set_default_verify_paths
wolfSSL 3:6f956bdb3073 376
wolfSSL 3:6f956bdb3073 377 #define SSL_CTX_set_session_id_context wolfSSL_CTX_set_session_id_context
wolfSSL 3:6f956bdb3073 378 #define SSL_get_peer_certificate wolfSSL_get_peer_certificate
wolfSSL 3:6f956bdb3073 379
wolfSSL 3:6f956bdb3073 380 #define SSL_want_read wolfSSL_want_read
wolfSSL 3:6f956bdb3073 381 #define SSL_want_write wolfSSL_want_write
wolfSSL 3:6f956bdb3073 382
wolfSSL 3:6f956bdb3073 383 #define BIO_prf wolfSSL_BIO_prf
wolfSSL 3:6f956bdb3073 384 #define ASN1_UTCTIME_pr wolfSSL_ASN1_UTCTIME_pr
wolfSSL 3:6f956bdb3073 385
wolfSSL 3:6f956bdb3073 386 #define sk_num wolfSSL_sk_num
wolfSSL 3:6f956bdb3073 387 #define sk_value wolfSSL_sk_value
wolfSSL 3:6f956bdb3073 388
wolfSSL 3:6f956bdb3073 389 #define SSL_CTX_get_ex_data wolfSSL_CTX_get_ex_data
wolfSSL 3:6f956bdb3073 390 #define SSL_CTX_set_ex_data wolfSSL_CTX_set_ex_data
wolfSSL 3:6f956bdb3073 391 #define SSL_CTX_sess_set_get_cb wolfSSL_CTX_sess_set_get_cb
wolfSSL 3:6f956bdb3073 392 #define SSL_CTX_sess_set_new_cb wolfSSL_CTX_sess_set_new_cb
wolfSSL 3:6f956bdb3073 393 #define SSL_CTX_sess_set_remove_cb wolfSSL_CTX_sess_set_remove_cb
wolfSSL 3:6f956bdb3073 394
wolfSSL 3:6f956bdb3073 395 #define i2d_SSL_SESSION wolfSSL_i2d_SSL_SESSION
wolfSSL 3:6f956bdb3073 396 #define d2i_SSL_SESSION wolfSSL_d2i_SSL_SESSION
wolfSSL 3:6f956bdb3073 397 #define SSL_SESSION_set_timeout wolfSSL_SSL_SESSION_set_timeout
wolfSSL 3:6f956bdb3073 398 #define SSL_SESSION_get_timeout wolfSSL_SESSION_get_timeout
wolfSSL 3:6f956bdb3073 399 #define SSL_SESSION_get_time wolfSSL_SESSION_get_time
wolfSSL 3:6f956bdb3073 400 #define SSL_CTX_get_ex_new_index wolfSSL_CTX_get_ex_new_index
wolfSSL 3:6f956bdb3073 401
wolfSSL 3:6f956bdb3073 402 /* yassl had set the default to be 500 */
wolfSSL 3:6f956bdb3073 403 #define SSL_get_default_timeout(ctx) 500
wolfSSL 3:6f956bdb3073 404
wolfSSL 3:6f956bdb3073 405 /* Lighthttp compatibility */
wolfSSL 3:6f956bdb3073 406
wolfSSL 3:6f956bdb3073 407 #ifdef HAVE_LIGHTY
wolfSSL 3:6f956bdb3073 408 typedef WOLFSSL_X509_NAME_ENTRY X509_NAME_ENTRY;
wolfSSL 3:6f956bdb3073 409
wolfSSL 3:6f956bdb3073 410 #define SSL_CB_HANDSHAKE_START 0x10
wolfSSL 3:6f956bdb3073 411 #define X509_NAME_free wolfSSL_X509_NAME_free
wolfSSL 3:6f956bdb3073 412 #define SSL_CTX_use_certificate wolfSSL_CTX_use_certificate
wolfSSL 3:6f956bdb3073 413 #define SSL_CTX_use_PrivateKey wolfSSL_CTX_use_PrivateKey
wolfSSL 3:6f956bdb3073 414 #define BIO_read_filename wolfSSL_BIO_read_filename
wolfSSL 3:6f956bdb3073 415 #define BIO_s_file wolfSSL_BIO_s_file
wolfSSL 3:6f956bdb3073 416 #define OBJ_nid2sn wolf_OBJ_nid2sn
wolfSSL 3:6f956bdb3073 417 #define OBJ_obj2nid wolf_OBJ_obj2nid
wolfSSL 3:6f956bdb3073 418 #define OBJ_sn2nid wolf_OBJ_sn2nid
wolfSSL 3:6f956bdb3073 419 #define PEM_read_bio_X509 PEM_read_bio_WOLFSSL_X509
wolfSSL 3:6f956bdb3073 420 #define SSL_CTX_set_verify_depth wolfSSL_CTX_set_verify_depth
wolfSSL 3:6f956bdb3073 421 #define SSL_get_app_data wolfSSL_get_app_data
wolfSSL 3:6f956bdb3073 422 #define SSL_set_app_data wolfSSL_set_app_data
wolfSSL 3:6f956bdb3073 423 #define X509_NAME_entry_count wolfSSL_X509_NAME_entry_count
wolfSSL 3:6f956bdb3073 424 #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
wolfSSL 3:6f956bdb3073 425 #define X509_NAME_get_entry wolfSSL_X509_NAME_get_entry
wolfSSL 3:6f956bdb3073 426 #define sk_X509_NAME_pop_free wolfSSL_sk_X509_NAME_pop_free
wolfSSL 3:6f956bdb3073 427 #define SHA1 wolfSSL_SHA1
wolfSSL 3:6f956bdb3073 428 #define X509_check_private_key wolfSSL_X509_check_private_key
wolfSSL 3:6f956bdb3073 429 #define SSL_dup_CA_list wolfSSL_dup_CA_list
wolfSSL 3:6f956bdb3073 430
wolfSSL 3:6f956bdb3073 431 #endif
wolfSSL 3:6f956bdb3073 432
wolfSSL 3:6f956bdb3073 433 #if defined(HAVE_STUNNEL) || defined(HAVE_LIGHTY)
wolfSSL 3:6f956bdb3073 434
wolfSSL 3:6f956bdb3073 435 #define OBJ_nid2ln wolf_OBJ_nid2ln
wolfSSL 3:6f956bdb3073 436 #define OBJ_txt2nid wolf_OBJ_txt2nid
wolfSSL 3:6f956bdb3073 437 #define PEM_read_bio_DHparams wolfSSL_PEM_read_bio_DHparams
wolfSSL 3:6f956bdb3073 438 #define PEM_write_bio_X509 PEM_write_bio_WOLFSSL_X509
wolfSSL 3:6f956bdb3073 439 #define SSL_CTX_set_tmp_dh wolfSSL_CTX_set_tmp_dh
wolfSSL 3:6f956bdb3073 440 #define BIO_new_file wolfSSL_BIO_new_file
wolfSSL 3:6f956bdb3073 441
wolfSSL 3:6f956bdb3073 442
wolfSSL 3:6f956bdb3073 443 #endif /* HAVE_STUNNEL || HAVE_LIGHTY */
wolfSSL 3:6f956bdb3073 444
wolfSSL 3:6f956bdb3073 445 #ifdef HAVE_STUNNEL
wolfSSL 3:6f956bdb3073 446 #include <wolfssl/openssl/asn1.h>
wolfSSL 3:6f956bdb3073 447
wolfSSL 3:6f956bdb3073 448 /* defined as: (SSL_ST_ACCEPT|SSL_CB_LOOP), which becomes 0x2001*/
wolfSSL 3:6f956bdb3073 449 #define SSL_CB_ACCEPT_LOOP 0x2001
wolfSSL 3:6f956bdb3073 450 #define SSL2_VERSION 0x0002
wolfSSL 3:6f956bdb3073 451 #define SSL3_VERSION 0x0300
wolfSSL 3:6f956bdb3073 452 #define TLS1_VERSION 0x0301
wolfSSL 3:6f956bdb3073 453 #define DTLS1_VERSION 0xFEFF
wolfSSL 3:6f956bdb3073 454 #define SSL23_ST_SR_CLNT_HELLO_A (0x210|0x2000)
wolfSSL 3:6f956bdb3073 455 #define SSL3_ST_SR_CLNT_HELLO_A (0x110|0x2000)
wolfSSL 3:6f956bdb3073 456 #define ASN1_STRFLGS_ESC_MSB 4
wolfSSL 3:6f956bdb3073 457 #define X509_V_ERR_CERT_REJECTED 28
wolfSSL 3:6f956bdb3073 458
wolfSSL 3:6f956bdb3073 459 #define SSL_alert_desc_string_long wolfSSL_alert_desc_string_long
wolfSSL 3:6f956bdb3073 460 #define SSL_alert_type_string_long wolfSSL_alert_type_string_long
wolfSSL 3:6f956bdb3073 461 #define SSL_CIPHER_get_bits wolfSSL_CIPHER_get_bits
wolfSSL 3:6f956bdb3073 462 #define sk_X509_NAME_num wolfSSL_sk_X509_NAME_num
wolfSSL 3:6f956bdb3073 463 #define sk_X509_num wolfSSL_sk_X509_num
wolfSSL 3:6f956bdb3073 464 #define X509_NAME_print_ex wolfSSL_X509_NAME_print_ex
wolfSSL 3:6f956bdb3073 465 #define X509_get0_pubkey_bitstr wolfSSL_X509_get0_pubkey_bitstr
wolfSSL 3:6f956bdb3073 466 #define SSL_CTX_get_options wolfSSL_CTX_get_options
wolfSSL 3:6f956bdb3073 467
wolfSSL 3:6f956bdb3073 468 #define SSL_CTX_flush_sessions wolfSSL_flush_sessions
wolfSSL 3:6f956bdb3073 469 #define SSL_CTX_add_session wolfSSL_CTX_add_session
wolfSSL 3:6f956bdb3073 470 #define SSL_get_SSL_CTX wolfSSL_get_SSL_CTX
wolfSSL 3:6f956bdb3073 471 #define SSL_version wolfSSL_version
wolfSSL 3:6f956bdb3073 472 #define SSL_get_state wolfSSL_get_state
wolfSSL 3:6f956bdb3073 473 #define SSL_state_string_long wolfSSL_state_string_long
wolfSSL 3:6f956bdb3073 474 #define SSL_get_peer_cert_chain wolfSSL_get_peer_cert_chain
wolfSSL 3:6f956bdb3073 475 #define sk_X509_NAME_value wolfSSL_sk_X509_NAME_value
wolfSSL 3:6f956bdb3073 476 #define sk_X509_value wolfSSL_sk_X509_value
wolfSSL 3:6f956bdb3073 477 #define SSL_SESSION_get_ex_data wolfSSL_SESSION_get_ex_data
wolfSSL 3:6f956bdb3073 478 #define SSL_SESSION_set_ex_data wolfSSL_SESSION_set_ex_data
wolfSSL 3:6f956bdb3073 479 #define SSL_SESSION_get_ex_new_index wolfSSL_SESSION_get_ex_new_index
wolfSSL 3:6f956bdb3073 480 #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
wolfSSL 3:6f956bdb3073 481 #define CRYPTO_dynlock_value WOLFSSL_dynlock_value
wolfSSL 3:6f956bdb3073 482 typedef WOLFSSL_ASN1_BIT_STRING ASN1_BIT_STRING;
wolfSSL 3:6f956bdb3073 483 #define X509_STORE_get1_certs wolfSSL_X509_STORE_get1_certs
wolfSSL 3:6f956bdb3073 484 #define sk_X509_pop_free wolfSSL_sk_X509_pop_free
wolfSSL 3:6f956bdb3073 485
wolfSSL 3:6f956bdb3073 486 #define SSL_TLSEXT_ERR_OK 0
wolfSSL 3:6f956bdb3073 487 #define SSL_TLSEXT_ERR_ALERT_FATAL alert_fatal
wolfSSL 3:6f956bdb3073 488 #define SSL_TLSEXT_ERR_NOACK alert_warning
wolfSSL 3:6f956bdb3073 489 #define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME
wolfSSL 3:6f956bdb3073 490
wolfSSL 3:6f956bdb3073 491 #define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name
wolfSSL 3:6f956bdb3073 492 #define SSL_get_servername wolfSSL_get_servername
wolfSSL 3:6f956bdb3073 493 #define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX
wolfSSL 3:6f956bdb3073 494 #define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback
wolfSSL 3:6f956bdb3073 495 #define SSL_CTX_set_tlsext_servername_callback wolfSSL_CTX_set_servername_callback
wolfSSL 3:6f956bdb3073 496 #define SSL_CTX_set_tlsext_servername_arg wolfSSL_CTX_set_servername_arg
wolfSSL 3:6f956bdb3073 497
wolfSSL 3:6f956bdb3073 498 #define PSK_MAX_PSK_LEN 256
wolfSSL 3:6f956bdb3073 499 #define PSK_MAX_IDENTITY_LEN 128
wolfSSL 3:6f956bdb3073 500 #define ERR_remove_thread_state WOLFSSL_ERR_remove_thread_state
wolfSSL 3:6f956bdb3073 501 #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
wolfSSL 3:6f956bdb3073 502
wolfSSL 3:6f956bdb3073 503
wolfSSL 3:6f956bdb3073 504 #endif /* HAVE_STUNNEL */
wolfSSL 3:6f956bdb3073 505
wolfSSL 3:6f956bdb3073 506 #ifdef __cplusplus
wolfSSL 3:6f956bdb3073 507 } /* extern "C" */
wolfSSL 3:6f956bdb3073 508 #endif
wolfSSL 3:6f956bdb3073 509
wolfSSL 3:6f956bdb3073 510
wolfSSL 3:6f956bdb3073 511 #endif /* wolfSSL_openssl_h__ */
wolfSSL 3:6f956bdb3073 512