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

Dependents:   OS

Committer:
sPymbed
Date:
Wed Nov 20 13:27:48 2019 +0000
Revision:
17:ff9d1e86ad5f
Parent:
15:117db924cf7c
removed: wolfcrypt

Who changed what in which revision?

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