wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   CyaSSL-Twitter-OAuth4Tw Example-client-tls-cert TwitterReader TweetTest ... more

Committer:
wolfSSL
Date:
Tue May 02 08:44:47 2017 +0000
Revision:
7:481bce714567
wolfSSL3.10.2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wolfSSL 7:481bce714567 1 /* ssl.h
wolfSSL 7:481bce714567 2 *
wolfSSL 7:481bce714567 3 * Copyright (C) 2006-2016 wolfSSL Inc.
wolfSSL 7:481bce714567 4 *
wolfSSL 7:481bce714567 5 * This file is part of wolfSSL.
wolfSSL 7:481bce714567 6 *
wolfSSL 7:481bce714567 7 * wolfSSL is free software; you can redistribute it and/or modify
wolfSSL 7:481bce714567 8 * it under the terms of the GNU General Public License as published by
wolfSSL 7:481bce714567 9 * the Free Software Foundation; either version 2 of the License, or
wolfSSL 7:481bce714567 10 * (at your option) any later version.
wolfSSL 7:481bce714567 11 *
wolfSSL 7:481bce714567 12 * wolfSSL is distributed in the hope that it will be useful,
wolfSSL 7:481bce714567 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
wolfSSL 7:481bce714567 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wolfSSL 7:481bce714567 15 * GNU General Public License for more details.
wolfSSL 7:481bce714567 16 *
wolfSSL 7:481bce714567 17 * You should have received a copy of the GNU General Public License
wolfSSL 7:481bce714567 18 * along with this program; if not, write to the Free Software
wolfSSL 7:481bce714567 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
wolfSSL 7:481bce714567 20 */
wolfSSL 7:481bce714567 21
wolfSSL 7:481bce714567 22
wolfSSL 7:481bce714567 23
wolfSSL 7:481bce714567 24 /* ssl.h defines wolfssl_openssl compatibility layer
wolfSSL 7:481bce714567 25 *
wolfSSL 7:481bce714567 26 */
wolfSSL 7:481bce714567 27
wolfSSL 7:481bce714567 28
wolfSSL 7:481bce714567 29 #ifndef WOLFSSL_OPENSSL_H_
wolfSSL 7:481bce714567 30 #define WOLFSSL_OPENSSL_H_
wolfSSL 7:481bce714567 31
wolfSSL 7:481bce714567 32 /* wolfssl_openssl compatibility layer */
wolfSSL 7:481bce714567 33 #include <wolfssl/ssl.h>
wolfSSL 7:481bce714567 34
wolfSSL 7:481bce714567 35 #ifdef __cplusplus
wolfSSL 7:481bce714567 36 extern "C" {
wolfSSL 7:481bce714567 37 #endif
wolfSSL 7:481bce714567 38
wolfSSL 7:481bce714567 39 #ifdef _WIN32
wolfSSL 7:481bce714567 40 /* wincrypt.h clashes */
wolfSSL 7:481bce714567 41 #undef X509_NAME
wolfSSL 7:481bce714567 42 #endif
wolfSSL 7:481bce714567 43
wolfSSL 7:481bce714567 44 #ifdef WOLFSSL_UTASKER
wolfSSL 7:481bce714567 45 /* tcpip.h clashes */
wolfSSL 7:481bce714567 46 #undef ASN1_INTEGER
wolfSSL 7:481bce714567 47 #endif
wolfSSL 7:481bce714567 48
wolfSSL 7:481bce714567 49
wolfSSL 7:481bce714567 50 typedef WOLFSSL SSL;
wolfSSL 7:481bce714567 51 typedef WOLFSSL_SESSION SSL_SESSION;
wolfSSL 7:481bce714567 52 typedef WOLFSSL_METHOD SSL_METHOD;
wolfSSL 7:481bce714567 53 typedef WOLFSSL_CTX SSL_CTX;
wolfSSL 7:481bce714567 54
wolfSSL 7:481bce714567 55 typedef WOLFSSL_X509 X509;
wolfSSL 7:481bce714567 56 typedef WOLFSSL_X509_NAME X509_NAME;
wolfSSL 7:481bce714567 57 typedef WOLFSSL_X509_CHAIN X509_CHAIN;
wolfSSL 7:481bce714567 58
wolfSSL 7:481bce714567 59
wolfSSL 7:481bce714567 60 /* redeclare guard */
wolfSSL 7:481bce714567 61 #define WOLFSSL_TYPES_DEFINED
wolfSSL 7:481bce714567 62
wolfSSL 7:481bce714567 63
wolfSSL 7:481bce714567 64 typedef WOLFSSL_EVP_PKEY EVP_PKEY;
wolfSSL 7:481bce714567 65 typedef WOLFSSL_RSA RSA;
wolfSSL 7:481bce714567 66 typedef WOLFSSL_DSA DSA;
wolfSSL 7:481bce714567 67 typedef WOLFSSL_EC_KEY EC_KEY;
wolfSSL 7:481bce714567 68 typedef WOLFSSL_EC_GROUP EC_GROUP;
wolfSSL 7:481bce714567 69 typedef WOLFSSL_EC_POINT EC_POINT;
wolfSSL 7:481bce714567 70 typedef WOLFSSL_ECDSA_SIG ECDSA_SIG;
wolfSSL 7:481bce714567 71 typedef WOLFSSL_BIO BIO;
wolfSSL 7:481bce714567 72 typedef WOLFSSL_BIO_METHOD BIO_METHOD;
wolfSSL 7:481bce714567 73 typedef WOLFSSL_CIPHER SSL_CIPHER;
wolfSSL 7:481bce714567 74 typedef WOLFSSL_X509_LOOKUP X509_LOOKUP;
wolfSSL 7:481bce714567 75 typedef WOLFSSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
wolfSSL 7:481bce714567 76 typedef WOLFSSL_X509_CRL X509_CRL;
wolfSSL 7:481bce714567 77 typedef WOLFSSL_X509_EXTENSION X509_EXTENSION;
wolfSSL 7:481bce714567 78 typedef WOLFSSL_ASN1_TIME ASN1_TIME;
wolfSSL 7:481bce714567 79 typedef WOLFSSL_ASN1_INTEGER ASN1_INTEGER;
wolfSSL 7:481bce714567 80 typedef WOLFSSL_ASN1_OBJECT ASN1_OBJECT;
wolfSSL 7:481bce714567 81 typedef WOLFSSL_ASN1_STRING ASN1_STRING;
wolfSSL 7:481bce714567 82 typedef WOLFSSL_dynlock_value CRYPTO_dynlock_value;
wolfSSL 7:481bce714567 83 typedef WOLFSSL_BUF_MEM BUF_MEM;
wolfSSL 7:481bce714567 84
wolfSSL 7:481bce714567 85 /* GENERAL_NAME and BASIC_CONSTRAINTS structs may need implemented as
wolfSSL 7:481bce714567 86 * compatibility layer expands. For now treating them as an ASN1_OBJECT */
wolfSSL 7:481bce714567 87 typedef WOLFSSL_ASN1_OBJECT GENERAL_NAME;
wolfSSL 7:481bce714567 88 typedef WOLFSSL_ASN1_OBJECT BASIC_CONSTRAINTS;
wolfSSL 7:481bce714567 89
wolfSSL 7:481bce714567 90 #define ASN1_UTCTIME WOLFSSL_ASN1_TIME
wolfSSL 7:481bce714567 91
wolfSSL 7:481bce714567 92 typedef WOLFSSL_MD4_CTX MD4_CTX;
wolfSSL 7:481bce714567 93 typedef WOLFSSL_COMP_METHOD COMP_METHOD;
wolfSSL 7:481bce714567 94 typedef WOLFSSL_X509_STORE X509_STORE;
wolfSSL 7:481bce714567 95 typedef WOLFSSL_X509_REVOKED X509_REVOKED;
wolfSSL 7:481bce714567 96 typedef WOLFSSL_X509_OBJECT X509_OBJECT;
wolfSSL 7:481bce714567 97 typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
wolfSSL 7:481bce714567 98
wolfSSL 7:481bce714567 99 #define CRYPTO_free XFREE
wolfSSL 7:481bce714567 100 #define CRYPTO_malloc XMALLOC
wolfSSL 7:481bce714567 101
wolfSSL 7:481bce714567 102 #define SSL_get_client_random(ssl,out,outSz) \
wolfSSL 7:481bce714567 103 wolfSSL_get_client_random((ssl),(out),(outSz))
wolfSSL 7:481bce714567 104 #define SSL_get_cipher_list(ctx,i) wolfSSL_get_cipher_list((i))
wolfSSL 7:481bce714567 105 #define SSL_get_cipher_name(ctx) wolfSSL_get_cipher((ctx))
wolfSSL 7:481bce714567 106 #define SSL_get_shared_ciphers(ctx,buf,len) \
wolfSSL 7:481bce714567 107 strncpy(buf, "Not Implemented, SSLv2 only", len)
wolfSSL 7:481bce714567 108
wolfSSL 7:481bce714567 109 #define ERR_print_errors_fp(file) wolfSSL_ERR_dump_errors_fp((file))
wolfSSL 7:481bce714567 110
wolfSSL 7:481bce714567 111 /* at the moment only returns ok */
wolfSSL 7:481bce714567 112 #define SSL_get_verify_result wolfSSL_get_verify_result
wolfSSL 7:481bce714567 113 #define SSL_get_verify_mode wolfSSL_SSL_get_mode
wolfSSL 7:481bce714567 114 #define SSL_get_verify_depth wolfSSL_get_verify_depth
wolfSSL 7:481bce714567 115 #define SSL_CTX_get_verify_mode wolfSSL_CTX_get_verify_mode
wolfSSL 7:481bce714567 116 #define SSL_CTX_get_verify_depth wolfSSL_CTX_get_verify_depth
wolfSSL 7:481bce714567 117 #define SSL_get_certificate wolfSSL_get_certificate
wolfSSL 7:481bce714567 118 #define SSL_use_certificate wolfSSL_use_certificate
wolfSSL 7:481bce714567 119 #define SSL_use_certificate_ASN1 wolfSSL_use_certificate_ASN1
wolfSSL 7:481bce714567 120
wolfSSL 7:481bce714567 121 #define SSL_use_PrivateKey wolfSSL_use_PrivateKey
wolfSSL 7:481bce714567 122 #define SSL_use_PrivateKey_ASN1 wolfSSL_use_PrivateKey_ASN1
wolfSSL 7:481bce714567 123 #define SSL_use_RSAPrivateKey_ASN1 wolfSSL_use_RSAPrivateKey_ASN1
wolfSSL 7:481bce714567 124
wolfSSL 7:481bce714567 125 #define SSLv23_method wolfSSLv23_method
wolfSSL 7:481bce714567 126 #define SSLv3_server_method wolfSSLv3_server_method
wolfSSL 7:481bce714567 127 #define SSLv3_client_method wolfSSLv3_client_method
wolfSSL 7:481bce714567 128 #define TLSv1_server_method wolfTLSv1_server_method
wolfSSL 7:481bce714567 129 #define TLSv1_client_method wolfTLSv1_client_method
wolfSSL 7:481bce714567 130 #define TLSv1_1_server_method wolfTLSv1_1_server_method
wolfSSL 7:481bce714567 131 #define TLSv1_1_client_method wolfTLSv1_1_client_method
wolfSSL 7:481bce714567 132 #define TLSv1_2_server_method wolfTLSv1_2_server_method
wolfSSL 7:481bce714567 133 #define TLSv1_2_client_method wolfTLSv1_2_client_method
wolfSSL 7:481bce714567 134
wolfSSL 7:481bce714567 135 #ifdef WOLFSSL_DTLS
wolfSSL 7:481bce714567 136 #define DTLSv1_client_method wolfDTLSv1_client_method
wolfSSL 7:481bce714567 137 #define DTLSv1_server_method wolfDTLSv1_server_method
wolfSSL 7:481bce714567 138 #define DTLSv1_2_client_method wolfDTLSv1_2_client_method
wolfSSL 7:481bce714567 139 #define DTLSv1_2_server_method wolfDTLSv1_2_server_method
wolfSSL 7:481bce714567 140 #endif
wolfSSL 7:481bce714567 141
wolfSSL 7:481bce714567 142
wolfSSL 7:481bce714567 143 #ifndef NO_FILESYSTEM
wolfSSL 7:481bce714567 144 #define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
wolfSSL 7:481bce714567 145 #define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
wolfSSL 7:481bce714567 146 #define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
wolfSSL 7:481bce714567 147 #define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
wolfSSL 7:481bce714567 148 #define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
wolfSSL 7:481bce714567 149
wolfSSL 7:481bce714567 150 #define SSL_use_certificate_file wolfSSL_use_certificate_file
wolfSSL 7:481bce714567 151 #define SSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
wolfSSL 7:481bce714567 152 #define SSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
wolfSSL 7:481bce714567 153 #define SSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
wolfSSL 7:481bce714567 154 #endif
wolfSSL 7:481bce714567 155
wolfSSL 7:481bce714567 156 #define SSL_CTX_new wolfSSL_CTX_new
wolfSSL 7:481bce714567 157 #define SSL_new wolfSSL_new
wolfSSL 7:481bce714567 158 #define SSL_set_fd wolfSSL_set_fd
wolfSSL 7:481bce714567 159 #define SSL_get_fd wolfSSL_get_fd
wolfSSL 7:481bce714567 160 #define SSL_connect wolfSSL_connect
wolfSSL 7:481bce714567 161 #define SSL_clear wolfSSL_clear
wolfSSL 7:481bce714567 162 #define SSL_state wolfSSL_state
wolfSSL 7:481bce714567 163
wolfSSL 7:481bce714567 164 #define SSL_write wolfSSL_write
wolfSSL 7:481bce714567 165 #define SSL_read wolfSSL_read
wolfSSL 7:481bce714567 166 #define SSL_peek wolfSSL_peek
wolfSSL 7:481bce714567 167 #define SSL_accept wolfSSL_accept
wolfSSL 7:481bce714567 168 #define SSL_CTX_free wolfSSL_CTX_free
wolfSSL 7:481bce714567 169 #define SSL_free wolfSSL_free
wolfSSL 7:481bce714567 170 #define SSL_shutdown wolfSSL_shutdown
wolfSSL 7:481bce714567 171
wolfSSL 7:481bce714567 172 #define SSL_CTX_set_quiet_shutdown wolfSSL_CTX_set_quiet_shutdown
wolfSSL 7:481bce714567 173 #define SSL_set_quiet_shutdown wolfSSL_set_quiet_shutdown
wolfSSL 7:481bce714567 174 #define SSL_get_error wolfSSL_get_error
wolfSSL 7:481bce714567 175 #define SSL_set_session wolfSSL_set_session
wolfSSL 7:481bce714567 176 #define SSL_get_session wolfSSL_get_session
wolfSSL 7:481bce714567 177 #define SSL_flush_sessions wolfSSL_flush_sessions
wolfSSL 7:481bce714567 178 /* assume unlimited temporarily */
wolfSSL 7:481bce714567 179 #define SSL_CTX_get_session_cache_mode(ctx) 0
wolfSSL 7:481bce714567 180
wolfSSL 7:481bce714567 181 #define SSL_CTX_set_verify wolfSSL_CTX_set_verify
wolfSSL 7:481bce714567 182 #define SSL_set_verify wolfSSL_set_verify
wolfSSL 7:481bce714567 183 #define SSL_pending wolfSSL_pending
wolfSSL 7:481bce714567 184 #define SSL_load_error_strings wolfSSL_load_error_strings
wolfSSL 7:481bce714567 185 #define SSL_library_init wolfSSL_library_init
wolfSSL 7:481bce714567 186 #define SSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
wolfSSL 7:481bce714567 187 #define SSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
wolfSSL 7:481bce714567 188 #define SSL_set_cipher_list wolfSSL_set_cipher_list
wolfSSL 7:481bce714567 189
wolfSSL 7:481bce714567 190 #define ERR_error_string wolfSSL_ERR_error_string
wolfSSL 7:481bce714567 191 #define ERR_error_string_n wolfSSL_ERR_error_string_n
wolfSSL 7:481bce714567 192 #define ERR_reason_error_string wolfSSL_ERR_reason_error_string
wolfSSL 7:481bce714567 193
wolfSSL 7:481bce714567 194 #define SSL_set_ex_data wolfSSL_set_ex_data
wolfSSL 7:481bce714567 195 #define SSL_get_shutdown wolfSSL_get_shutdown
wolfSSL 7:481bce714567 196 #define SSL_set_rfd wolfSSL_set_rfd
wolfSSL 7:481bce714567 197 #define SSL_set_wfd wolfSSL_set_wfd
wolfSSL 7:481bce714567 198 #define SSL_set_shutdown wolfSSL_set_shutdown
wolfSSL 7:481bce714567 199 #define SSL_set_session_id_context wolfSSL_set_session_id_context
wolfSSL 7:481bce714567 200 #define SSL_set_connect_state wolfSSL_set_connect_state
wolfSSL 7:481bce714567 201 #define SSL_set_accept_state wolfSSL_set_accept_state
wolfSSL 7:481bce714567 202 #define SSL_session_reused wolfSSL_session_reused
wolfSSL 7:481bce714567 203 #define SSL_SESSION_free wolfSSL_SESSION_free
wolfSSL 7:481bce714567 204 #define SSL_is_init_finished wolfSSL_is_init_finished
wolfSSL 7:481bce714567 205
wolfSSL 7:481bce714567 206 #define SSL_get_version wolfSSL_get_version
wolfSSL 7:481bce714567 207 #define SSL_get_current_cipher wolfSSL_get_current_cipher
wolfSSL 7:481bce714567 208
wolfSSL 7:481bce714567 209 /* use wolfSSL_get_cipher_name for its return format */
wolfSSL 7:481bce714567 210 #define SSL_get_cipher wolfSSL_get_cipher_name
wolfSSL 7:481bce714567 211 #define SSL_CIPHER_description wolfSSL_CIPHER_description
wolfSSL 7:481bce714567 212 #define SSL_CIPHER_get_name wolfSSL_CIPHER_get_name
wolfSSL 7:481bce714567 213 #define SSL_get1_session wolfSSL_get1_session
wolfSSL 7:481bce714567 214
wolfSSL 7:481bce714567 215 #define SSL_get_keyblock_size wolfSSL_get_keyblock_size
wolfSSL 7:481bce714567 216 #define SSL_get_keys wolfSSL_get_keys
wolfSSL 7:481bce714567 217 #define SSL_SESSION_get_master_key wolfSSL_SESSION_get_master_key
wolfSSL 7:481bce714567 218 #define SSL_SESSION_get_master_key_length wolfSSL_SESSION_get_master_key_length
wolfSSL 7:481bce714567 219
wolfSSL 7:481bce714567 220 #define SSL_X509_NAME_get_text_by_NID wolfSSL_X509_NAME_get_text_by_NID
wolfSSL 7:481bce714567 221 #define X509_get_ext_d2i wolfSSL_X509_get_ext_d2i
wolfSSL 7:481bce714567 222 #define X509_digest wolfSSL_X509_digest
wolfSSL 7:481bce714567 223 #define X509_free wolfSSL_X509_free
wolfSSL 7:481bce714567 224 #define OPENSSL_free wolfSSL_OPENSSL_free
wolfSSL 7:481bce714567 225
wolfSSL 7:481bce714567 226 #define OCSP_parse_url wolfSSL_OCSP_parse_url
wolfSSL 7:481bce714567 227 #define SSLv23_client_method wolfSSLv23_client_method
wolfSSL 7:481bce714567 228 #define SSLv2_client_method wolfSSLv2_client_method
wolfSSL 7:481bce714567 229 #define SSLv2_server_method wolfSSLv2_server_method
wolfSSL 7:481bce714567 230
wolfSSL 7:481bce714567 231 #define MD4_Init wolfSSL_MD4_Init
wolfSSL 7:481bce714567 232 #define MD4_Update wolfSSL_MD4_Update
wolfSSL 7:481bce714567 233 #define MD4_Final wolfSSL_MD4_Final
wolfSSL 7:481bce714567 234
wolfSSL 7:481bce714567 235 #define BIO_new wolfSSL_BIO_new
wolfSSL 7:481bce714567 236 #define BIO_free wolfSSL_BIO_free
wolfSSL 7:481bce714567 237 #define BIO_free_all wolfSSL_BIO_free_all
wolfSSL 7:481bce714567 238 #define BIO_nread0 wolfSSL_BIO_nread0
wolfSSL 7:481bce714567 239 #define BIO_nread wolfSSL_BIO_nread
wolfSSL 7:481bce714567 240 #define BIO_read wolfSSL_BIO_read
wolfSSL 7:481bce714567 241 #define BIO_nwrite0 wolfSSL_BIO_nwrite0
wolfSSL 7:481bce714567 242 #define BIO_nwrite wolfSSL_BIO_nwrite
wolfSSL 7:481bce714567 243 #define BIO_write wolfSSL_BIO_write
wolfSSL 7:481bce714567 244 #define BIO_push wolfSSL_BIO_push
wolfSSL 7:481bce714567 245 #define BIO_pop wolfSSL_BIO_pop
wolfSSL 7:481bce714567 246 #define BIO_flush wolfSSL_BIO_flush
wolfSSL 7:481bce714567 247 #define BIO_pending wolfSSL_BIO_pending
wolfSSL 7:481bce714567 248
wolfSSL 7:481bce714567 249 #define BIO_get_mem_data wolfSSL_BIO_get_mem_data
wolfSSL 7:481bce714567 250 #define BIO_new_mem_buf wolfSSL_BIO_new_mem_buf
wolfSSL 7:481bce714567 251
wolfSSL 7:481bce714567 252 #define BIO_f_buffer wolfSSL_BIO_f_buffer
wolfSSL 7:481bce714567 253 #define BIO_set_write_buffer_size wolfSSL_BIO_set_write_buffer_size
wolfSSL 7:481bce714567 254 #define BIO_f_ssl wolfSSL_BIO_f_ssl
wolfSSL 7:481bce714567 255 #define BIO_new_socket wolfSSL_BIO_new_socket
wolfSSL 7:481bce714567 256 #define SSL_set_bio wolfSSL_set_bio
wolfSSL 7:481bce714567 257 #define BIO_eof wolfSSL_BIO_eof
wolfSSL 7:481bce714567 258 #define BIO_set_ss wolfSSL_BIO_set_ss
wolfSSL 7:481bce714567 259
wolfSSL 7:481bce714567 260 #define BIO_s_mem wolfSSL_BIO_s_mem
wolfSSL 7:481bce714567 261 #define BIO_f_base64 wolfSSL_BIO_f_base64
wolfSSL 7:481bce714567 262 #define BIO_set_flags wolfSSL_BIO_set_flags
wolfSSL 7:481bce714567 263
wolfSSL 7:481bce714567 264 #define OpenSSL_add_all_digests()
wolfSSL 7:481bce714567 265 #define OpenSSL_add_all_algorithms wolfSSL_add_all_algorithms
wolfSSL 7:481bce714567 266 #define SSLeay_add_ssl_algorithms wolfSSL_add_all_algorithms
wolfSSL 7:481bce714567 267 #define SSLeay_add_all_algorithms wolfSSL_add_all_algorithms
wolfSSL 7:481bce714567 268
wolfSSL 7:481bce714567 269 #define RAND_screen wolfSSL_RAND_screen
wolfSSL 7:481bce714567 270 #define RAND_file_name wolfSSL_RAND_file_name
wolfSSL 7:481bce714567 271 #define RAND_write_file wolfSSL_RAND_write_file
wolfSSL 7:481bce714567 272 #define RAND_load_file wolfSSL_RAND_load_file
wolfSSL 7:481bce714567 273 #define RAND_egd wolfSSL_RAND_egd
wolfSSL 7:481bce714567 274 #define RAND_seed wolfSSL_RAND_seed
wolfSSL 7:481bce714567 275 #define RAND_add wolfSSL_RAND_add
wolfSSL 7:481bce714567 276
wolfSSL 7:481bce714567 277 #define COMP_zlib wolfSSL_COMP_zlib
wolfSSL 7:481bce714567 278 #define COMP_rle wolfSSL_COMP_rle
wolfSSL 7:481bce714567 279 #define SSL_COMP_add_compression_method wolfSSL_COMP_add_compression_method
wolfSSL 7:481bce714567 280
wolfSSL 7:481bce714567 281 #define SSL_get_ex_new_index wolfSSL_get_ex_new_index
wolfSSL 7:481bce714567 282
wolfSSL 7:481bce714567 283 #define CRYPTO_set_id_callback wolfSSL_set_id_callback
wolfSSL 7:481bce714567 284 #define CRYPTO_set_locking_callback wolfSSL_set_locking_callback
wolfSSL 7:481bce714567 285 #define CRYPTO_set_dynlock_create_callback wolfSSL_set_dynlock_create_callback
wolfSSL 7:481bce714567 286 #define CRYPTO_set_dynlock_lock_callback wolfSSL_set_dynlock_lock_callback
wolfSSL 7:481bce714567 287 #define CRYPTO_set_dynlock_destroy_callback wolfSSL_set_dynlock_destroy_callback
wolfSSL 7:481bce714567 288 #define CRYPTO_num_locks wolfSSL_num_locks
wolfSSL 7:481bce714567 289
wolfSSL 7:481bce714567 290
wolfSSL 7:481bce714567 291 # define CRYPTO_LOCK 1
wolfSSL 7:481bce714567 292 # define CRYPTO_UNLOCK 2
wolfSSL 7:481bce714567 293 # define CRYPTO_READ 4
wolfSSL 7:481bce714567 294 # define CRYPTO_WRITE 8
wolfSSL 7:481bce714567 295
wolfSSL 7:481bce714567 296 #define X509_STORE_CTX_get_current_cert wolfSSL_X509_STORE_CTX_get_current_cert
wolfSSL 7:481bce714567 297 #define X509_STORE_add_cert wolfSSL_X509_STORE_add_cert
wolfSSL 7:481bce714567 298 #define X509_STORE_set_flags wolfSSL_X509_STORE_set_flags
wolfSSL 7:481bce714567 299 #define X509_STORE_CTX_get_chain wolfSSL_X509_STORE_CTX_get_chain
wolfSSL 7:481bce714567 300 #define X509_STORE_CTX_get_error wolfSSL_X509_STORE_CTX_get_error
wolfSSL 7:481bce714567 301 #define X509_STORE_CTX_get_error_depth wolfSSL_X509_STORE_CTX_get_error_depth
wolfSSL 7:481bce714567 302
wolfSSL 7:481bce714567 303 #define X509_NAME_oneline wolfSSL_X509_NAME_oneline
wolfSSL 7:481bce714567 304 #define X509_get_issuer_name wolfSSL_X509_get_issuer_name
wolfSSL 7:481bce714567 305 #define X509_get_subject_name wolfSSL_X509_get_subject_name
wolfSSL 7:481bce714567 306 #define X509_verify_cert_error_string wolfSSL_X509_verify_cert_error_string
wolfSSL 7:481bce714567 307
wolfSSL 7:481bce714567 308 #define X509_LOOKUP_add_dir wolfSSL_X509_LOOKUP_add_dir
wolfSSL 7:481bce714567 309 #define X509_LOOKUP_load_file wolfSSL_X509_LOOKUP_load_file
wolfSSL 7:481bce714567 310 #define X509_LOOKUP_hash_dir wolfSSL_X509_LOOKUP_hash_dir
wolfSSL 7:481bce714567 311 #define X509_LOOKUP_file wolfSSL_X509_LOOKUP_file
wolfSSL 7:481bce714567 312
wolfSSL 7:481bce714567 313 #define X509_STORE_add_lookup wolfSSL_X509_STORE_add_lookup
wolfSSL 7:481bce714567 314 #define X509_STORE_new wolfSSL_X509_STORE_new
wolfSSL 7:481bce714567 315 #define X509_STORE_get_by_subject wolfSSL_X509_STORE_get_by_subject
wolfSSL 7:481bce714567 316 #define X509_STORE_CTX_init wolfSSL_X509_STORE_CTX_init
wolfSSL 7:481bce714567 317 #define X509_STORE_CTX_cleanup wolfSSL_X509_STORE_CTX_cleanup
wolfSSL 7:481bce714567 318
wolfSSL 7:481bce714567 319 #define X509_CRL_get_lastUpdate wolfSSL_X509_CRL_get_lastUpdate
wolfSSL 7:481bce714567 320 #define X509_CRL_get_nextUpdate wolfSSL_X509_CRL_get_nextUpdate
wolfSSL 7:481bce714567 321
wolfSSL 7:481bce714567 322 #define X509_get_pubkey wolfSSL_X509_get_pubkey
wolfSSL 7:481bce714567 323 #define X509_CRL_verify wolfSSL_X509_CRL_verify
wolfSSL 7:481bce714567 324 #define X509_STORE_CTX_set_error wolfSSL_X509_STORE_CTX_set_error
wolfSSL 7:481bce714567 325 #define X509_OBJECT_free_contents wolfSSL_X509_OBJECT_free_contents
wolfSSL 7:481bce714567 326 #define EVP_PKEY_new wolfSSL_PKEY_new
wolfSSL 7:481bce714567 327 #define EVP_PKEY_free wolfSSL_EVP_PKEY_free
wolfSSL 7:481bce714567 328 #define X509_cmp_current_time wolfSSL_X509_cmp_current_time
wolfSSL 7:481bce714567 329 #define sk_X509_REVOKED_num wolfSSL_sk_X509_REVOKED_num
wolfSSL 7:481bce714567 330 #define X509_CRL_get_REVOKED wolfSSL_X509_CRL_get_REVOKED
wolfSSL 7:481bce714567 331 #define sk_X509_REVOKED_value wolfSSL_sk_X509_REVOKED_value
wolfSSL 7:481bce714567 332 #define X509_get_notBefore(cert) (ASN1_TIME*)wolfSSL_X509_notBefore((cert))
wolfSSL 7:481bce714567 333 #define X509_get_notAfter(cert) (ASN1_TIME*)wolfSSL_X509_notAfter((cert))
wolfSSL 7:481bce714567 334
wolfSSL 7:481bce714567 335
wolfSSL 7:481bce714567 336 #define X509_get_serialNumber wolfSSL_X509_get_serialNumber
wolfSSL 7:481bce714567 337
wolfSSL 7:481bce714567 338 #define ASN1_TIME_print wolfSSL_ASN1_TIME_print
wolfSSL 7:481bce714567 339
wolfSSL 7:481bce714567 340 #define ASN1_INTEGER_cmp wolfSSL_ASN1_INTEGER_cmp
wolfSSL 7:481bce714567 341 #define ASN1_INTEGER_get wolfSSL_ASN1_INTEGER_get
wolfSSL 7:481bce714567 342 #define ASN1_INTEGER_to_BN wolfSSL_ASN1_INTEGER_to_BN
wolfSSL 7:481bce714567 343
wolfSSL 7:481bce714567 344 #define SSL_load_client_CA_file wolfSSL_load_client_CA_file
wolfSSL 7:481bce714567 345
wolfSSL 7:481bce714567 346 #define SSL_CTX_set_client_CA_list wolfSSL_CTX_set_client_CA_list
wolfSSL 7:481bce714567 347 #define SSL_CTX_set_cert_store wolfSSL_CTX_set_cert_store
wolfSSL 7:481bce714567 348 #define SSL_CTX_get_cert_store wolfSSL_CTX_get_cert_store
wolfSSL 7:481bce714567 349 #define X509_STORE_CTX_get_ex_data wolfSSL_X509_STORE_CTX_get_ex_data
wolfSSL 7:481bce714567 350 #define SSL_get_ex_data_X509_STORE_CTX_idx wolfSSL_get_ex_data_X509_STORE_CTX_idx
wolfSSL 7:481bce714567 351 #define SSL_get_ex_data wolfSSL_get_ex_data
wolfSSL 7:481bce714567 352
wolfSSL 7:481bce714567 353 #define SSL_CTX_set_default_passwd_cb_userdata wolfSSL_CTX_set_default_passwd_cb_userdata
wolfSSL 7:481bce714567 354 #define SSL_CTX_set_default_passwd_cb wolfSSL_CTX_set_default_passwd_cb
wolfSSL 7:481bce714567 355
wolfSSL 7:481bce714567 356 #define SSL_CTX_set_timeout(ctx, to) wolfSSL_CTX_set_timeout(ctx, (unsigned int) to)
wolfSSL 7:481bce714567 357 #define SSL_CTX_set_info_callback wolfSSL_CTX_set_info_callback
wolfSSL 7:481bce714567 358
wolfSSL 7:481bce714567 359 #define ERR_peek_error wolfSSL_ERR_peek_error
wolfSSL 7:481bce714567 360 #define ERR_peek_last_error_line wolfSSL_ERR_peek_last_error_line
wolfSSL 7:481bce714567 361 #define ERR_peek_errors_fp wolfSSL_ERR_peek_errors_fp
wolfSSL 7:481bce714567 362 #define ERR_GET_REASON wolfSSL_ERR_GET_REASON
wolfSSL 7:481bce714567 363
wolfSSL 7:481bce714567 364 #define SSL_alert_type_string wolfSSL_alert_type_string
wolfSSL 7:481bce714567 365 #define SSL_alert_desc_string wolfSSL_alert_desc_string
wolfSSL 7:481bce714567 366 #define SSL_state_string wolfSSL_state_string
wolfSSL 7:481bce714567 367
wolfSSL 7:481bce714567 368 #define RSA_free wolfSSL_RSA_free
wolfSSL 7:481bce714567 369 #define RSA_generate_key wolfSSL_RSA_generate_key
wolfSSL 7:481bce714567 370 #define SSL_CTX_set_tmp_rsa_callback wolfSSL_CTX_set_tmp_rsa_callback
wolfSSL 7:481bce714567 371
wolfSSL 7:481bce714567 372 #define PEM_def_callback wolfSSL_PEM_def_callback
wolfSSL 7:481bce714567 373
wolfSSL 7:481bce714567 374 #define SSL_CTX_sess_accept wolfSSL_CTX_sess_accept
wolfSSL 7:481bce714567 375 #define SSL_CTX_sess_connect wolfSSL_CTX_sess_connect
wolfSSL 7:481bce714567 376 #define SSL_CTX_sess_accept_good wolfSSL_CTX_sess_accept_good
wolfSSL 7:481bce714567 377 #define SSL_CTX_sess_connect_good wolfSSL_CTX_sess_connect_good
wolfSSL 7:481bce714567 378 #define SSL_CTX_sess_accept_renegotiate wolfSSL_CTX_sess_accept_renegotiate
wolfSSL 7:481bce714567 379 #define SSL_CTX_sess_connect_renegotiate wolfSSL_CTX_sess_connect_renegotiate
wolfSSL 7:481bce714567 380 #define SSL_CTX_sess_hits wolfSSL_CTX_sess_hits
wolfSSL 7:481bce714567 381 #define SSL_CTX_sess_cb_hits wolfSSL_CTX_sess_cb_hits
wolfSSL 7:481bce714567 382 #define SSL_CTX_sess_cache_full wolfSSL_CTX_sess_cache_full
wolfSSL 7:481bce714567 383 #define SSL_CTX_sess_misses wolfSSL_CTX_sess_misses
wolfSSL 7:481bce714567 384 #define SSL_CTX_sess_timeouts wolfSSL_CTX_sess_timeouts
wolfSSL 7:481bce714567 385 #define SSL_CTX_sess_number wolfSSL_CTX_sess_number
wolfSSL 7:481bce714567 386 #define SSL_CTX_sess_get_cache_size wolfSSL_CTX_sess_get_cache_size
wolfSSL 7:481bce714567 387
wolfSSL 7:481bce714567 388
wolfSSL 7:481bce714567 389 #define SSL_DEFAULT_CIPHER_LIST WOLFSSL_DEFAULT_CIPHER_LIST
wolfSSL 7:481bce714567 390 #define RSA_F4 WOLFSSL_RSA_F4
wolfSSL 7:481bce714567 391
wolfSSL 7:481bce714567 392 #define SSL_CTX_set_psk_client_callback wolfSSL_CTX_set_psk_client_callback
wolfSSL 7:481bce714567 393 #define SSL_set_psk_client_callback wolfSSL_set_psk_client_callback
wolfSSL 7:481bce714567 394
wolfSSL 7:481bce714567 395 #define SSL_get_psk_identity_hint wolfSSL_get_psk_identity_hint
wolfSSL 7:481bce714567 396 #define SSL_get_psk_identity wolfSSL_get_psk_identity
wolfSSL 7:481bce714567 397
wolfSSL 7:481bce714567 398 #define SSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint
wolfSSL 7:481bce714567 399 #define SSL_use_psk_identity_hint wolfSSL_use_psk_identity_hint
wolfSSL 7:481bce714567 400
wolfSSL 7:481bce714567 401 #define SSL_CTX_set_psk_server_callback wolfSSL_CTX_set_psk_server_callback
wolfSSL 7:481bce714567 402 #define SSL_set_psk_server_callback wolfSSL_set_psk_server_callback
wolfSSL 7:481bce714567 403
wolfSSL 7:481bce714567 404 #define ERR_get_error_line_data wolfSSL_ERR_get_error_line_data
wolfSSL 7:481bce714567 405
wolfSSL 7:481bce714567 406 #define ERR_get_error wolfSSL_ERR_get_error
wolfSSL 7:481bce714567 407 #define ERR_clear_error wolfSSL_ERR_clear_error
wolfSSL 7:481bce714567 408
wolfSSL 7:481bce714567 409 #define RAND_status wolfSSL_RAND_status
wolfSSL 7:481bce714567 410 #define RAND_bytes wolfSSL_RAND_bytes
wolfSSL 7:481bce714567 411 #define SSLv23_server_method wolfSSLv23_server_method
wolfSSL 7:481bce714567 412 #define SSL_CTX_set_options wolfSSL_CTX_set_options
wolfSSL 7:481bce714567 413 #define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
wolfSSL 7:481bce714567 414
wolfSSL 7:481bce714567 415 #define ERR_free_strings wolfSSL_ERR_free_strings
wolfSSL 7:481bce714567 416 #define ERR_remove_state wolfSSL_ERR_remove_state
wolfSSL 7:481bce714567 417 #define EVP_cleanup wolfSSL_EVP_cleanup
wolfSSL 7:481bce714567 418
wolfSSL 7:481bce714567 419 #define CRYPTO_cleanup_all_ex_data wolfSSL_cleanup_all_ex_data
wolfSSL 7:481bce714567 420 #define SSL_CTX_set_mode wolfSSL_CTX_set_mode
wolfSSL 7:481bce714567 421 #define SSL_CTX_get_mode wolfSSL_CTX_get_mode
wolfSSL 7:481bce714567 422 #define SSL_CTX_set_default_read_ahead wolfSSL_CTX_set_default_read_ahead
wolfSSL 7:481bce714567 423
wolfSSL 7:481bce714567 424 #define SSL_CTX_sess_set_cache_size wolfSSL_CTX_sess_set_cache_size
wolfSSL 7:481bce714567 425 #define SSL_CTX_set_default_verify_paths wolfSSL_CTX_set_default_verify_paths
wolfSSL 7:481bce714567 426
wolfSSL 7:481bce714567 427 #define SSL_CTX_set_session_id_context wolfSSL_CTX_set_session_id_context
wolfSSL 7:481bce714567 428 #define SSL_get_peer_certificate wolfSSL_get_peer_certificate
wolfSSL 7:481bce714567 429
wolfSSL 7:481bce714567 430 #define SSL_want_read wolfSSL_want_read
wolfSSL 7:481bce714567 431 #define SSL_want_write wolfSSL_want_write
wolfSSL 7:481bce714567 432
wolfSSL 7:481bce714567 433 #define BIO_prf wolfSSL_BIO_prf
wolfSSL 7:481bce714567 434 #define ASN1_UTCTIME_pr wolfSSL_ASN1_UTCTIME_pr
wolfSSL 7:481bce714567 435
wolfSSL 7:481bce714567 436 #define sk_num wolfSSL_sk_num
wolfSSL 7:481bce714567 437 #define sk_value wolfSSL_sk_value
wolfSSL 7:481bce714567 438 #define sk_X509_pop wolfSSL_sk_X509_pop
wolfSSL 7:481bce714567 439 #define sk_X509_free wolfSSL_sk_X509_free
wolfSSL 7:481bce714567 440 #define d2i_X509_bio wolfSSL_d2i_X509_bio
wolfSSL 7:481bce714567 441
wolfSSL 7:481bce714567 442 #define SSL_CTX_get_ex_data wolfSSL_CTX_get_ex_data
wolfSSL 7:481bce714567 443 #define SSL_CTX_set_ex_data wolfSSL_CTX_set_ex_data
wolfSSL 7:481bce714567 444 #define SSL_CTX_sess_set_get_cb wolfSSL_CTX_sess_set_get_cb
wolfSSL 7:481bce714567 445 #define SSL_CTX_sess_set_new_cb wolfSSL_CTX_sess_set_new_cb
wolfSSL 7:481bce714567 446 #define SSL_CTX_sess_set_remove_cb wolfSSL_CTX_sess_set_remove_cb
wolfSSL 7:481bce714567 447
wolfSSL 7:481bce714567 448 #define i2d_SSL_SESSION wolfSSL_i2d_SSL_SESSION
wolfSSL 7:481bce714567 449 #define d2i_SSL_SESSION wolfSSL_d2i_SSL_SESSION
wolfSSL 7:481bce714567 450 #define SSL_SESSION_set_timeout wolfSSL_SSL_SESSION_set_timeout
wolfSSL 7:481bce714567 451 #define SSL_SESSION_get_timeout wolfSSL_SESSION_get_timeout
wolfSSL 7:481bce714567 452 #define SSL_SESSION_get_time wolfSSL_SESSION_get_time
wolfSSL 7:481bce714567 453 #define SSL_CTX_get_ex_new_index wolfSSL_CTX_get_ex_new_index
wolfSSL 7:481bce714567 454 #define PEM_read_bio_X509 wolfSSL_PEM_read_bio_X509
wolfSSL 7:481bce714567 455 #define PEM_read_bio_X509_AUX wolfSSL_PEM_read_bio_X509_AUX
wolfSSL 7:481bce714567 456
wolfSSL 7:481bce714567 457 /*#if OPENSSL_API_COMPAT < 0x10100000L*/
wolfSSL 7:481bce714567 458 #define CONF_modules_free()
wolfSSL 7:481bce714567 459 #define ENGINE_cleanup()
wolfSSL 7:481bce714567 460 #define HMAC_CTX_cleanup wolfSSL_HMAC_cleanup
wolfSSL 7:481bce714567 461 #define SSL_CTX_need_tmp_RSA(ctx) 0
wolfSSL 7:481bce714567 462 #define SSL_CTX_set_tmp_rsa(ctx,rsa) 1
wolfSSL 7:481bce714567 463 #define SSL_need_tmp_RSA(ssl) 0
wolfSSL 7:481bce714567 464 #define SSL_set_tmp_rsa(ssl,rsa) 1
wolfSSL 7:481bce714567 465 /*#endif*/
wolfSSL 7:481bce714567 466 #define CONF_modules_unload(a)
wolfSSL 7:481bce714567 467
wolfSSL 7:481bce714567 468 #define SSL_get_hit wolfSSL_session_reused
wolfSSL 7:481bce714567 469
wolfSSL 7:481bce714567 470 /* yassl had set the default to be 500 */
wolfSSL 7:481bce714567 471 #define SSL_get_default_timeout(ctx) 500
wolfSSL 7:481bce714567 472
wolfSSL 7:481bce714567 473 /* Lighthttp compatibility */
wolfSSL 7:481bce714567 474
wolfSSL 7:481bce714567 475 #if defined(HAVE_LIGHTY) || defined(WOLFSSL_MYSQL_COMPATIBLE) || defined(HAVE_STUNNEL)
wolfSSL 7:481bce714567 476 typedef WOLFSSL_X509_NAME_ENTRY X509_NAME_ENTRY;
wolfSSL 7:481bce714567 477
wolfSSL 7:481bce714567 478 #define X509_NAME_free wolfSSL_X509_NAME_free
wolfSSL 7:481bce714567 479 #define SSL_CTX_use_certificate wolfSSL_CTX_use_certificate
wolfSSL 7:481bce714567 480 #define SSL_CTX_use_PrivateKey wolfSSL_CTX_use_PrivateKey
wolfSSL 7:481bce714567 481 #define BIO_read_filename wolfSSL_BIO_read_filename
wolfSSL 7:481bce714567 482 #define BIO_s_file wolfSSL_BIO_s_file
wolfSSL 7:481bce714567 483 #define OBJ_nid2sn wolfSSL_OBJ_nid2sn
wolfSSL 7:481bce714567 484 #define OBJ_obj2nid wolfSSL_OBJ_obj2nid
wolfSSL 7:481bce714567 485 #define OBJ_sn2nid wolfSSL_OBJ_sn2nid
wolfSSL 7:481bce714567 486 #define SSL_CTX_set_verify_depth wolfSSL_CTX_set_verify_depth
wolfSSL 7:481bce714567 487 #define SSL_get_app_data wolfSSL_get_app_data
wolfSSL 7:481bce714567 488 #define SSL_set_app_data wolfSSL_set_app_data
wolfSSL 7:481bce714567 489 #define X509_NAME_entry_count wolfSSL_X509_NAME_entry_count
wolfSSL 7:481bce714567 490 #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
wolfSSL 7:481bce714567 491 #define X509_NAME_get_entry wolfSSL_X509_NAME_get_entry
wolfSSL 7:481bce714567 492 #define ASN1_STRING_data wolfSSL_ASN1_STRING_data
wolfSSL 7:481bce714567 493 #define ASN1_STRING_length wolfSSL_ASN1_STRING_length
wolfSSL 7:481bce714567 494 #define X509_NAME_get_index_by_NID wolfSSL_X509_NAME_get_index_by_NID
wolfSSL 7:481bce714567 495 #define X509_NAME_ENTRY_get_data wolfSSL_X509_NAME_ENTRY_get_data
wolfSSL 7:481bce714567 496 #define sk_X509_NAME_pop_free wolfSSL_sk_X509_NAME_pop_free
wolfSSL 7:481bce714567 497 #define SHA1 wolfSSL_SHA1
wolfSSL 7:481bce714567 498 #define X509_check_private_key wolfSSL_X509_check_private_key
wolfSSL 7:481bce714567 499 #define SSL_dup_CA_list wolfSSL_dup_CA_list
wolfSSL 7:481bce714567 500
wolfSSL 7:481bce714567 501 #define NID_commonName 0x03 /* matchs ASN_COMMON_NAME in asn.h */
wolfSSL 7:481bce714567 502 #endif
wolfSSL 7:481bce714567 503
wolfSSL 7:481bce714567 504 #if defined(HAVE_STUNNEL) || defined(HAVE_LIGHTY) \
wolfSSL 7:481bce714567 505 || defined(WOLFSSL_MYSQL_COMPATIBLE)
wolfSSL 7:481bce714567 506
wolfSSL 7:481bce714567 507 #define OBJ_nid2ln wolfSSL_OBJ_nid2ln
wolfSSL 7:481bce714567 508 #define OBJ_txt2nid wolfSSL_OBJ_txt2nid
wolfSSL 7:481bce714567 509 #define PEM_read_bio_DHparams wolfSSL_PEM_read_bio_DHparams
wolfSSL 7:481bce714567 510 #define PEM_read_bio_DSAparams wolfSSL_PEM_read_bio_DSAparams
wolfSSL 7:481bce714567 511 #define PEM_write_bio_X509 PEM_write_bio_WOLFSSL_X509
wolfSSL 7:481bce714567 512
wolfSSL 7:481bce714567 513 #endif /* HAVE_STUNNEL || HAVE_LIGHTY || WOLFSSL_MYSQL_COMPATIBLE */
wolfSSL 7:481bce714567 514 #define SSL_CTX_set_tmp_dh wolfSSL_CTX_set_tmp_dh
wolfSSL 7:481bce714567 515
wolfSSL 7:481bce714567 516 #define BIO_new_file wolfSSL_BIO_new_file
wolfSSL 7:481bce714567 517 #define BIO_ctrl wolfSSL_BIO_ctrl
wolfSSL 7:481bce714567 518 #define BIO_ctrl_pending wolfSSL_BIO_ctrl_pending
wolfSSL 7:481bce714567 519 #define BIO_get_mem_ptr wolfSSL_BIO_get_mem_ptr
wolfSSL 7:481bce714567 520 #define BIO_int_ctrl wolfSSL_BIO_int_ctrl
wolfSSL 7:481bce714567 521 #define BIO_reset wolfSSL_BIO_reset
wolfSSL 7:481bce714567 522 #define BIO_s_file wolfSSL_BIO_s_file
wolfSSL 7:481bce714567 523 #define BIO_s_bio wolfSSL_BIO_s_bio
wolfSSL 7:481bce714567 524 #define BIO_s_socket wolfSSL_BIO_s_socket
wolfSSL 7:481bce714567 525 #define BIO_set_fd wolfSSL_BIO_set_fd
wolfSSL 7:481bce714567 526 #define BIO_ctrl_reset_read_request wolfSSL_BIO_ctrl_reset_read_request
wolfSSL 7:481bce714567 527
wolfSSL 7:481bce714567 528 #define BIO_set_write_buf_size wolfSSL_BIO_set_write_buf_size
wolfSSL 7:481bce714567 529 #define BIO_make_bio_pair wolfSSL_BIO_make_bio_pair
wolfSSL 7:481bce714567 530
wolfSSL 7:481bce714567 531 #define BIO_set_fp wolfSSL_BIO_set_fp
wolfSSL 7:481bce714567 532 #define BIO_get_fp wolfSSL_BIO_get_fp
wolfSSL 7:481bce714567 533 #define BIO_seek wolfSSL_BIO_seek
wolfSSL 7:481bce714567 534 #define BIO_write_filename wolfSSL_BIO_write_filename
wolfSSL 7:481bce714567 535 #define BIO_set_mem_eof_return wolfSSL_BIO_set_mem_eof_return
wolfSSL 7:481bce714567 536
wolfSSL 7:481bce714567 537 #define SSL_set_options wolfSSL_set_options
wolfSSL 7:481bce714567 538 #define SSL_get_options wolfSSL_get_options
wolfSSL 7:481bce714567 539 #define SSL_set_tmp_dh wolfSSL_set_tmp_dh
wolfSSL 7:481bce714567 540 #define SSL_clear_num_renegotiations wolfSSL_clear_num_renegotiations
wolfSSL 7:481bce714567 541 #define SSL_total_renegotiations wolfSSL_total_renegotiations
wolfSSL 7:481bce714567 542 #define SSL_set_tlsext_debug_arg wolfSSL_set_tlsext_debug_arg
wolfSSL 7:481bce714567 543 #define SSL_set_tlsext_status_type wolfSSL_set_tlsext_status_type
wolfSSL 7:481bce714567 544 #define SSL_set_tlsext_status_exts wolfSSL_set_tlsext_status_exts
wolfSSL 7:481bce714567 545 #define SSL_get_tlsext_status_ids wolfSSL_get_tlsext_status_ids
wolfSSL 7:481bce714567 546 #define SSL_set_tlsext_status_ids wolfSSL_set_tlsext_status_ids
wolfSSL 7:481bce714567 547 #define SSL_get_tlsext_status_ocsp_resp wolfSSL_get_tlsext_status_ocsp_resp
wolfSSL 7:481bce714567 548 #define SSL_set_tlsext_status_ocsp_resp wolfSSL_set_tlsext_status_ocsp_resp
wolfSSL 7:481bce714567 549
wolfSSL 7:481bce714567 550 #define SSL_CTX_add_extra_chain_cert wolfSSL_CTX_add_extra_chain_cert
wolfSSL 7:481bce714567 551 #define SSL_CTX_get_read_ahead wolfSSL_CTX_get_read_ahead
wolfSSL 7:481bce714567 552 #define SSL_CTX_set_read_ahead wolfSSL_CTX_set_read_ahead
wolfSSL 7:481bce714567 553 #define SSL_CTX_set_tlsext_status_arg wolfSSL_CTX_set_tlsext_status_arg
wolfSSL 7:481bce714567 554 #define SSL_CTX_set_tlsext_opaque_prf_input_callback_arg \
wolfSSL 7:481bce714567 555 wolfSSL_CTX_set_tlsext_opaque_prf_input_callback_arg
wolfSSL 7:481bce714567 556 #define SSL_get_server_random wolfSSL_get_server_random
wolfSSL 7:481bce714567 557
wolfSSL 7:481bce714567 558 #define SSL_get_tlsext_status_exts wolfSSL_get_tlsext_status_exts
wolfSSL 7:481bce714567 559
wolfSSL 7:481bce714567 560 #define BIO_C_SET_FILE_PTR 106
wolfSSL 7:481bce714567 561 #define BIO_C_GET_FILE_PTR 107
wolfSSL 7:481bce714567 562 #define BIO_C_SET_FILENAME 108
wolfSSL 7:481bce714567 563 #define BIO_C_FILE_SEEK 128
wolfSSL 7:481bce714567 564 #define BIO_C_SET_BUF_MEM_EOF_RETURN 130
wolfSSL 7:481bce714567 565 #define BIO_C_SET_WRITE_BUF_SIZE 136
wolfSSL 7:481bce714567 566 #define BIO_C_MAKE_BIO_PAIR 138
wolfSSL 7:481bce714567 567
wolfSSL 7:481bce714567 568 #define BIO_CTRL_RESET 1
wolfSSL 7:481bce714567 569 #define BIO_CTRL_INFO 3
wolfSSL 7:481bce714567 570 #define BIO_CTRL_FLUSH 11
wolfSSL 7:481bce714567 571 #define BIO_CLOSE 0x01
wolfSSL 7:481bce714567 572 #define BIO_FP_WRITE 0x04
wolfSSL 7:481bce714567 573
wolfSSL 7:481bce714567 574 #define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
wolfSSL 7:481bce714567 575 #define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
wolfSSL 7:481bce714567 576 #define SSL_CTRL_SET_TMP_DH 3
wolfSSL 7:481bce714567 577 #define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
wolfSSL 7:481bce714567 578 #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
wolfSSL 7:481bce714567 579 #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
wolfSSL 7:481bce714567 580 #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
wolfSSL 7:481bce714567 581 #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
wolfSSL 7:481bce714567 582 #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
wolfSSL 7:481bce714567 583 #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
wolfSSL 7:481bce714567 584 #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
wolfSSL 7:481bce714567 585
wolfSSL 7:481bce714567 586 #define SSL_CTRL_SET_TMP_DH 3
wolfSSL 7:481bce714567 587 #define SSL_CTRL_EXTRA_CHAIN_CERT 14
wolfSSL 7:481bce714567 588
wolfSSL 7:481bce714567 589 #define SSL_CTRL_SET_SESS_CACHE_SIZE 42
wolfSSL 7:481bce714567 590 #define SSL_CTRL_GET_READ_AHEAD 40
wolfSSL 7:481bce714567 591 #define SSL_CTRL_SET_READ_AHEAD 41
wolfSSL 7:481bce714567 592
wolfSSL 7:481bce714567 593 #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
wolfSSL 7:481bce714567 594
wolfSSL 7:481bce714567 595 #define SSL_ctrl wolfSSL_ctrl
wolfSSL 7:481bce714567 596 #define SSL_CTX_ctrl wolfSSL_CTX_ctrl
wolfSSL 7:481bce714567 597
wolfSSL 7:481bce714567 598 #define X509_V_FLAG_CRL_CHECK WOLFSSL_CRL_CHECK
wolfSSL 7:481bce714567 599 #define X509_V_FLAG_CRL_CHECK_ALL WOLFSSL_CRL_CHECKALL
wolfSSL 7:481bce714567 600
wolfSSL 7:481bce714567 601 #ifdef HAVE_STUNNEL
wolfSSL 7:481bce714567 602 #include <wolfssl/openssl/asn1.h>
wolfSSL 7:481bce714567 603
wolfSSL 7:481bce714567 604 #define SSL2_VERSION 0x0002
wolfSSL 7:481bce714567 605 #define SSL3_VERSION 0x0300
wolfSSL 7:481bce714567 606 #define TLS1_VERSION 0x0301
wolfSSL 7:481bce714567 607 #define DTLS1_VERSION 0xFEFF
wolfSSL 7:481bce714567 608 #define SSL23_ST_SR_CLNT_HELLO_A (0x210|0x2000)
wolfSSL 7:481bce714567 609 #define SSL3_ST_SR_CLNT_HELLO_A (0x110|0x2000)
wolfSSL 7:481bce714567 610 #define ASN1_STRFLGS_ESC_MSB 4
wolfSSL 7:481bce714567 611 #define X509_V_ERR_CERT_REJECTED 28
wolfSSL 7:481bce714567 612
wolfSSL 7:481bce714567 613 #define SSL_alert_desc_string_long wolfSSL_alert_desc_string_long
wolfSSL 7:481bce714567 614 #define SSL_alert_type_string_long wolfSSL_alert_type_string_long
wolfSSL 7:481bce714567 615 #define SSL_CIPHER_get_bits wolfSSL_CIPHER_get_bits
wolfSSL 7:481bce714567 616 #define sk_X509_NAME_num wolfSSL_sk_X509_NAME_num
wolfSSL 7:481bce714567 617 #define sk_X509_num wolfSSL_sk_X509_num
wolfSSL 7:481bce714567 618 #define X509_NAME_print_ex wolfSSL_X509_NAME_print_ex
wolfSSL 7:481bce714567 619 #define X509_get0_pubkey_bitstr wolfSSL_X509_get0_pubkey_bitstr
wolfSSL 7:481bce714567 620 #define SSL_CTX_get_options wolfSSL_CTX_get_options
wolfSSL 7:481bce714567 621
wolfSSL 7:481bce714567 622 #define SSL_CTX_flush_sessions wolfSSL_flush_sessions
wolfSSL 7:481bce714567 623 #define SSL_CTX_add_session wolfSSL_CTX_add_session
wolfSSL 7:481bce714567 624 #define SSL_get_SSL_CTX wolfSSL_get_SSL_CTX
wolfSSL 7:481bce714567 625 #define SSL_version wolfSSL_version
wolfSSL 7:481bce714567 626 #define SSL_get_state wolfSSL_get_state
wolfSSL 7:481bce714567 627 #define SSL_state_string_long wolfSSL_state_string_long
wolfSSL 7:481bce714567 628 #define SSL_get_peer_cert_chain wolfSSL_get_peer_cert_chain
wolfSSL 7:481bce714567 629 #define sk_X509_NAME_value wolfSSL_sk_X509_NAME_value
wolfSSL 7:481bce714567 630 #define sk_X509_value wolfSSL_sk_X509_value
wolfSSL 7:481bce714567 631 #define SSL_SESSION_get_ex_data wolfSSL_SESSION_get_ex_data
wolfSSL 7:481bce714567 632 #define SSL_SESSION_set_ex_data wolfSSL_SESSION_set_ex_data
wolfSSL 7:481bce714567 633 #define SSL_SESSION_get_ex_new_index wolfSSL_SESSION_get_ex_new_index
wolfSSL 7:481bce714567 634 #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
wolfSSL 7:481bce714567 635 #define CRYPTO_dynlock_value WOLFSSL_dynlock_value
wolfSSL 7:481bce714567 636 typedef WOLFSSL_ASN1_BIT_STRING ASN1_BIT_STRING;
wolfSSL 7:481bce714567 637 #define X509_STORE_get1_certs wolfSSL_X509_STORE_get1_certs
wolfSSL 7:481bce714567 638 #define sk_X509_pop_free wolfSSL_sk_X509_pop_free
wolfSSL 7:481bce714567 639
wolfSSL 7:481bce714567 640 #define SSL_TLSEXT_ERR_OK 0
wolfSSL 7:481bce714567 641 #define SSL_TLSEXT_ERR_ALERT_FATAL alert_fatal
wolfSSL 7:481bce714567 642 #define SSL_TLSEXT_ERR_NOACK alert_warning
wolfSSL 7:481bce714567 643 #define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME
wolfSSL 7:481bce714567 644
wolfSSL 7:481bce714567 645 #define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name
wolfSSL 7:481bce714567 646 #define SSL_get_servername wolfSSL_get_servername
wolfSSL 7:481bce714567 647 #define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX
wolfSSL 7:481bce714567 648 #define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback
wolfSSL 7:481bce714567 649 #define SSL_CTX_set_tlsext_servername_callback wolfSSL_CTX_set_servername_callback
wolfSSL 7:481bce714567 650 #define SSL_CTX_set_tlsext_servername_arg wolfSSL_CTX_set_servername_arg
wolfSSL 7:481bce714567 651
wolfSSL 7:481bce714567 652 #define PSK_MAX_PSK_LEN 256
wolfSSL 7:481bce714567 653 #define PSK_MAX_IDENTITY_LEN 128
wolfSSL 7:481bce714567 654 #define ERR_remove_thread_state WOLFSSL_ERR_remove_thread_state
wolfSSL 7:481bce714567 655 #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
wolfSSL 7:481bce714567 656
wolfSSL 7:481bce714567 657
wolfSSL 7:481bce714567 658 #endif /* HAVE_STUNNEL */
wolfSSL 7:481bce714567 659 #define SSL_CTX_get_default_passwd_cb wolfSSL_CTX_get_default_passwd_cb
wolfSSL 7:481bce714567 660 #define SSL_CTX_get_default_passwd_cb_userdata wolfSSL_CTX_get_default_passwd_cb_userdata
wolfSSL 7:481bce714567 661
wolfSSL 7:481bce714567 662 /* certificate extension NIDs */
wolfSSL 7:481bce714567 663 #define NID_basic_constraints 133
wolfSSL 7:481bce714567 664 #define NID_key_usage 129 /* 2.5.29.15 */
wolfSSL 7:481bce714567 665 #define NID_ext_key_usage 151 /* 2.5.29.37 */
wolfSSL 7:481bce714567 666 #define NID_subject_key_identifier 128
wolfSSL 7:481bce714567 667 #define NID_authority_key_identifier 149
wolfSSL 7:481bce714567 668 #define NID_private_key_usage_period 130 /* 2.5.29.16 */
wolfSSL 7:481bce714567 669 #define NID_subject_alt_name 131
wolfSSL 7:481bce714567 670 #define NID_issuer_alt_name 132
wolfSSL 7:481bce714567 671 #define NID_info_access 69
wolfSSL 7:481bce714567 672 #define NID_sinfo_access 79 /* id-pe 11 */
wolfSSL 7:481bce714567 673 #define NID_name_constraints 144 /* 2.5.29.30 */
wolfSSL 7:481bce714567 674 #define NID_certificate_policies 146
wolfSSL 7:481bce714567 675 #define NID_policy_mappings 147
wolfSSL 7:481bce714567 676 #define NID_policy_constraints 150
wolfSSL 7:481bce714567 677 #define NID_inhibit_any_policy 168 /* 2.5.29.54 */
wolfSSL 7:481bce714567 678 #define NID_tlsfeature 92 /* id-pe 24 */
wolfSSL 7:481bce714567 679
wolfSSL 7:481bce714567 680
wolfSSL 7:481bce714567 681 #define SSL_CTX_set_msg_callback wolfSSL_CTX_set_msg_callback
wolfSSL 7:481bce714567 682 #define SSL_set_msg_callback wolfSSL_set_msg_callback
wolfSSL 7:481bce714567 683 #define SSL_CTX_set_msg_callback_arg wolfSSL_CTX_set_msg_callback_arg
wolfSSL 7:481bce714567 684 #define SSL_set_msg_callback_arg wolfSSL_set_msg_callback_arg
wolfSSL 7:481bce714567 685
wolfSSL 7:481bce714567 686
wolfSSL 7:481bce714567 687 #ifdef __cplusplus
wolfSSL 7:481bce714567 688 } /* extern "C" */
wolfSSL 7:481bce714567 689 #endif
wolfSSL 7:481bce714567 690
wolfSSL 7:481bce714567 691
wolfSSL 7:481bce714567 692 #endif /* wolfSSL_openssl_h__ */
wolfSSL 7:481bce714567 693