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

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

Committer:
wolfSSL
Date:
Tue Aug 22 10:48:22 2017 +0000
Revision:
13:f67a6c6013ca
wolfSSL3.12.0 with TLS1.3

Who changed what in which revision?

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