[453] | 1 | /* ssl.h
|
---|
| 2 | *
|
---|
| 3 | * Copyright (C) 2006-2020 wolfSSL Inc.
|
---|
| 4 | *
|
---|
| 5 | * This file is part of wolfSSL.
|
---|
| 6 | *
|
---|
| 7 | * wolfSSL is free software; you can redistribute it and/or modify
|
---|
| 8 | * it under the terms of the GNU General Public License as published by
|
---|
| 9 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 10 | * (at your option) any later version.
|
---|
| 11 | *
|
---|
| 12 | * wolfSSL is distributed in the hope that it will be useful,
|
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 15 | * GNU General Public License for more details.
|
---|
| 16 | *
|
---|
| 17 | * You should have received a copy of the GNU General Public License
|
---|
| 18 | * along with this program; if not, write to the Free Software
|
---|
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
---|
| 20 | */
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | /* ssl.h defines wolfssl_openssl compatibility layer
|
---|
| 25 | *
|
---|
| 26 | */
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | #ifndef WOLFSSL_OPENSSL_H_
|
---|
| 30 | #define WOLFSSL_OPENSSL_H_
|
---|
| 31 |
|
---|
| 32 | /* wolfssl_openssl compatibility layer */
|
---|
| 33 | #ifndef OPENSSL_EXTRA_SSL_GUARD
|
---|
| 34 | #define OPENSSL_EXTRA_SSL_GUARD
|
---|
| 35 | #include <wolfssl/ssl.h>
|
---|
| 36 | #endif /* OPENSSL_EXTRA_SSL_GUARD */
|
---|
| 37 |
|
---|
| 38 | #include <wolfssl/openssl/tls1.h>
|
---|
| 39 | #include <wolfssl/openssl/evp.h>
|
---|
| 40 | #include <wolfssl/openssl/bio.h>
|
---|
| 41 | #ifdef OPENSSL_EXTRA
|
---|
| 42 | #include <wolfssl/openssl/crypto.h>
|
---|
| 43 | #endif
|
---|
| 44 |
|
---|
| 45 | #if defined(WOLFSSL_QT) || defined(OPENSSL_ALL)
|
---|
| 46 | #include <wolfssl/openssl/dh.h>
|
---|
| 47 | #include <wolfssl/openssl/objects.h>
|
---|
| 48 | #endif
|
---|
| 49 |
|
---|
| 50 | /* need MIN_CODE_E to determine wolfSSL error range */
|
---|
| 51 | #include <wolfssl/wolfcrypt/error-crypt.h>
|
---|
| 52 |
|
---|
| 53 | /* all NID_* values are in asn.h */
|
---|
| 54 | #include <wolfssl/wolfcrypt/asn.h>
|
---|
| 55 |
|
---|
| 56 | #ifdef __cplusplus
|
---|
| 57 | extern "C" {
|
---|
| 58 | #endif
|
---|
| 59 |
|
---|
| 60 | #ifdef _WIN32
|
---|
| 61 | /* wincrypt.h clashes */
|
---|
| 62 | #undef X509_NAME
|
---|
| 63 | #endif
|
---|
| 64 |
|
---|
| 65 | #ifdef WOLFSSL_UTASKER
|
---|
| 66 | /* tcpip.h clashes */
|
---|
| 67 | #undef ASN1_INTEGER
|
---|
| 68 | #endif
|
---|
| 69 |
|
---|
| 70 |
|
---|
| 71 | typedef WOLFSSL SSL;
|
---|
| 72 | typedef WOLFSSL_SESSION SSL_SESSION;
|
---|
| 73 | typedef WOLFSSL_METHOD SSL_METHOD;
|
---|
| 74 | typedef WOLFSSL_CTX SSL_CTX;
|
---|
| 75 |
|
---|
| 76 | typedef WOLFSSL_X509 X509;
|
---|
| 77 | typedef WOLFSSL_X509 X509_REQ;
|
---|
| 78 | typedef WOLFSSL_X509_NAME X509_NAME;
|
---|
| 79 | typedef WOLFSSL_X509_INFO X509_INFO;
|
---|
| 80 | typedef WOLFSSL_X509_CHAIN X509_CHAIN;
|
---|
| 81 |
|
---|
| 82 | typedef WOLFSSL_STACK EXTENDED_KEY_USAGE;
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 | /* redeclare guard */
|
---|
| 86 | #define WOLFSSL_TYPES_DEFINED
|
---|
| 87 |
|
---|
| 88 | typedef WOLFSSL_BIO BIO;
|
---|
| 89 | typedef WOLFSSL_BIO_METHOD BIO_METHOD;
|
---|
| 90 | typedef WOLFSSL_CIPHER SSL_CIPHER;
|
---|
| 91 | typedef WOLFSSL_X509_LOOKUP X509_LOOKUP;
|
---|
| 92 | typedef WOLFSSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
|
---|
| 93 | typedef WOLFSSL_X509_CRL X509_CRL;
|
---|
| 94 | typedef WOLFSSL_X509_EXTENSION X509_EXTENSION;
|
---|
| 95 | typedef WOLFSSL_X509_PUBKEY X509_PUBKEY;
|
---|
| 96 | typedef WOLFSSL_X509_ALGOR X509_ALGOR;
|
---|
| 97 | typedef WOLFSSL_ASN1_TIME ASN1_TIME;
|
---|
| 98 | typedef WOLFSSL_ASN1_INTEGER ASN1_INTEGER;
|
---|
| 99 | typedef WOLFSSL_ASN1_OBJECT ASN1_OBJECT;
|
---|
| 100 | typedef WOLFSSL_ASN1_STRING ASN1_STRING;
|
---|
| 101 | typedef WOLFSSL_ASN1_TYPE ASN1_TYPE;
|
---|
| 102 | typedef WOLFSSL_ASN1_BIT_STRING ASN1_BIT_STRING;
|
---|
| 103 | typedef WOLFSSL_dynlock_value CRYPTO_dynlock_value;
|
---|
| 104 | typedef WOLFSSL_BUF_MEM BUF_MEM;
|
---|
| 105 | typedef WOLFSSL_GENERAL_NAMES GENERAL_NAMES;
|
---|
| 106 | typedef WOLFSSL_GENERAL_NAME GENERAL_NAME;
|
---|
| 107 |
|
---|
| 108 | #define ASN1_UTCTIME WOLFSSL_ASN1_TIME
|
---|
| 109 | #define ASN1_GENERALIZEDTIME WOLFSSL_ASN1_TIME
|
---|
| 110 |
|
---|
| 111 | typedef WOLFSSL_COMP_METHOD COMP_METHOD;
|
---|
| 112 | typedef WOLFSSL_COMP SSL_COMP;
|
---|
| 113 | typedef WOLFSSL_X509_REVOKED X509_REVOKED;
|
---|
| 114 | typedef WOLFSSL_X509_OBJECT X509_OBJECT;
|
---|
| 115 | typedef WOLFSSL_X509_STORE X509_STORE;
|
---|
| 116 | typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
|
---|
| 117 | typedef WOLFSSL_X509_VERIFY_PARAM X509_VERIFY_PARAM;
|
---|
| 118 |
|
---|
| 119 | #define EVP_CIPHER_INFO EncryptedInfo
|
---|
| 120 |
|
---|
| 121 | #define STACK_OF(x) WOLFSSL_STACK
|
---|
| 122 | #define OPENSSL_STACK WOLFSSL_STACK
|
---|
| 123 | #define _STACK OPENSSL_STACK
|
---|
| 124 |
|
---|
| 125 | #define CONF_get1_default_config_file wolfSSL_CONF_get1_default_config_file
|
---|
| 126 | typedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;
|
---|
| 127 |
|
---|
| 128 | #ifdef WOLFSSL_QT
|
---|
| 129 | #if defined(NO_WOLFSSL_MEMORY)
|
---|
| 130 | #define CRYPTO_free(xp) XFREE(xp, NULL, NULL);
|
---|
| 131 | #else
|
---|
| 132 | #define CRYPTO_free(xp) { if((xp)) wolfSSL_Free((xp));}
|
---|
| 133 | #endif
|
---|
| 134 | #else
|
---|
| 135 | #define CRYPTO_free XFREE
|
---|
| 136 | #endif
|
---|
| 137 |
|
---|
| 138 | #define CRYPTO_malloc XMALLOC
|
---|
| 139 | #define CRYPTO_EX_new WOLFSSL_CRYPTO_EX_new
|
---|
| 140 | #define CRYPTO_EX_dup WOLFSSL_CRYPTO_EX_dup
|
---|
| 141 | #define CRYPTO_EX_free WOLFSSL_CRYPTO_EX_free
|
---|
| 142 | #define CRYPTO_EX_DATA WOLFSSL_CRYPTO_EX_DATA
|
---|
| 143 |
|
---|
| 144 | /* depreciated */
|
---|
| 145 | #define CRYPTO_thread_id wolfSSL_thread_id
|
---|
| 146 | #define CRYPTO_set_id_callback wolfSSL_set_id_callback
|
---|
| 147 |
|
---|
| 148 | #define CRYPTO_LOCK 0x01
|
---|
| 149 | #define CRYPTO_UNLOCK 0x02
|
---|
| 150 | #define CRYPTO_READ 0x04
|
---|
| 151 | #define CRYPTO_WRITE 0x08
|
---|
| 152 |
|
---|
| 153 | #define CRYPTO_set_locking_callback wolfSSL_set_locking_callback
|
---|
| 154 | #define CRYPTO_set_dynlock_create_callback wolfSSL_set_dynlock_create_callback
|
---|
| 155 | #define CRYPTO_set_dynlock_lock_callback wolfSSL_set_dynlock_lock_callback
|
---|
| 156 | #define CRYPTO_set_dynlock_destroy_callback wolfSSL_set_dynlock_destroy_callback
|
---|
| 157 | #define CRYPTO_num_locks wolfSSL_num_locks
|
---|
| 158 | #define CRYPTO_dynlock_value WOLFSSL_dynlock_value
|
---|
| 159 |
|
---|
| 160 | #define CRYPTO_cleanup_all_ex_data wolfSSL_cleanup_all_ex_data
|
---|
| 161 | #define set_ex_data wolfSSL_CRYPTO_set_ex_data
|
---|
| 162 | #define get_ex_data wolfSSL_CRYPTO_get_ex_data
|
---|
| 163 |
|
---|
| 164 | /* this function was used to set the default malloc, free, and realloc */
|
---|
| 165 | #define CRYPTO_malloc_init() 0 /* CRYPTO_malloc_init is not needed */
|
---|
| 166 | #define OPENSSL_malloc_init() 0 /* OPENSSL_malloc_init is not needed */
|
---|
| 167 |
|
---|
| 168 | #define SSL_get_client_random(ssl,out,outSz) \
|
---|
| 169 | wolfSSL_get_client_random((ssl),(out),(outSz))
|
---|
| 170 | #define SSL_get_cipher_list(ctx,i) wolfSSL_get_cipher_list_ex((ctx),(i))
|
---|
| 171 | #define SSL_get_cipher_name(ctx) wolfSSL_get_cipher((ctx))
|
---|
| 172 | #define SSL_get_shared_ciphers(ctx,buf,len) \
|
---|
| 173 | wolfSSL_get_shared_ciphers((ctx),(buf),(len))
|
---|
| 174 |
|
---|
| 175 | /* at the moment only returns ok */
|
---|
| 176 | #define SSL_get_verify_result wolfSSL_get_verify_result
|
---|
| 177 | #define SSL_get_verify_mode wolfSSL_SSL_get_mode
|
---|
| 178 | #define SSL_get_verify_depth wolfSSL_get_verify_depth
|
---|
| 179 | #define SSL_CTX_get_verify_mode wolfSSL_CTX_get_verify_mode
|
---|
| 180 | #define SSL_CTX_get_verify_depth wolfSSL_CTX_get_verify_depth
|
---|
| 181 | #define SSL_get_certificate wolfSSL_get_certificate
|
---|
| 182 | #define SSL_use_certificate wolfSSL_use_certificate
|
---|
| 183 | #define SSL_use_certificate_ASN1 wolfSSL_use_certificate_ASN1
|
---|
| 184 | #define d2i_PKCS8_PRIV_KEY_INFO_bio wolfSSL_d2i_PKCS8_PKEY_bio
|
---|
| 185 | #define d2i_PKCS8PrivateKey_bio wolfSSL_d2i_PKCS8PrivateKey_bio
|
---|
| 186 | #define PKCS8_PRIV_KEY_INFO_free wolfSSL_EVP_PKEY_free
|
---|
| 187 | #define d2i_PKCS12_fp wolfSSL_d2i_PKCS12_fp
|
---|
| 188 |
|
---|
| 189 | #define d2i_PUBKEY wolfSSL_d2i_PUBKEY
|
---|
| 190 | #define d2i_PUBKEY_bio wolfSSL_d2i_PUBKEY_bio
|
---|
| 191 | #define d2i_PrivateKey wolfSSL_d2i_PrivateKey
|
---|
| 192 | #define d2i_AutoPrivateKey wolfSSL_d2i_AutoPrivateKey
|
---|
| 193 | #define i2d_PrivateKey wolfSSL_i2d_PrivateKey
|
---|
| 194 | #define SSL_use_PrivateKey wolfSSL_use_PrivateKey
|
---|
| 195 | #define SSL_use_PrivateKey_ASN1 wolfSSL_use_PrivateKey_ASN1
|
---|
| 196 | #define SSL_use_RSAPrivateKey_ASN1 wolfSSL_use_RSAPrivateKey_ASN1
|
---|
| 197 | #define SSL_get_privatekey wolfSSL_get_privatekey
|
---|
| 198 | #define SSL_CTX_use_PrivateKey_ASN1 wolfSSL_CTX_use_PrivateKey_ASN1
|
---|
| 199 |
|
---|
| 200 | #define SSLv23_method wolfSSLv23_method
|
---|
| 201 | #define SSLv23_client_method wolfSSLv23_client_method
|
---|
| 202 | #define SSLv2_client_method wolfSSLv2_client_method
|
---|
| 203 | #define SSLv2_server_method wolfSSLv2_server_method
|
---|
| 204 | #define SSLv3_server_method wolfSSLv3_server_method
|
---|
| 205 | #define SSLv3_client_method wolfSSLv3_client_method
|
---|
| 206 | #define TLS_client_method wolfTLS_client_method
|
---|
| 207 | #define TLS_server_method wolfTLS_server_method
|
---|
| 208 | #define TLSv1_method wolfTLSv1_method
|
---|
| 209 | #define TLSv1_server_method wolfTLSv1_server_method
|
---|
| 210 | #define TLSv1_client_method wolfTLSv1_client_method
|
---|
| 211 | #define TLSv1_1_method wolfTLSv1_1_method
|
---|
| 212 | #define TLSv1_1_server_method wolfTLSv1_1_server_method
|
---|
| 213 | #define TLSv1_1_client_method wolfTLSv1_1_client_method
|
---|
| 214 | #define TLSv1_2_method wolfTLSv1_2_method
|
---|
| 215 | #define TLSv1_2_server_method wolfTLSv1_2_server_method
|
---|
| 216 | #define TLSv1_2_client_method wolfTLSv1_2_client_method
|
---|
| 217 | #define TLSv1_3_method wolfTLSv1_3_method
|
---|
| 218 | #define TLSv1_3_server_method wolfTLSv1_3_server_method
|
---|
| 219 | #define TLSv1_3_client_method wolfTLSv1_3_client_method
|
---|
| 220 | #define TLS_method wolfSSLv23_method
|
---|
| 221 |
|
---|
| 222 | #define X509_FILETYPE_ASN1 SSL_FILETYPE_ASN1
|
---|
| 223 |
|
---|
| 224 | #define X509_F_X509_CHECK_PRIVATE_KEY 128
|
---|
| 225 |
|
---|
| 226 | #ifdef WOLFSSL_DTLS
|
---|
| 227 | #define DTLSv1_client_method wolfDTLSv1_client_method
|
---|
| 228 | #define DTLSv1_server_method wolfDTLSv1_server_method
|
---|
| 229 | #define DTLSv1_2_client_method wolfDTLSv1_2_client_method
|
---|
| 230 | #define DTLSv1_2_server_method wolfDTLSv1_2_server_method
|
---|
| 231 | #define DTLS_method wolfDTLS_method
|
---|
| 232 | #endif
|
---|
| 233 |
|
---|
| 234 |
|
---|
| 235 | #ifndef NO_FILESYSTEM
|
---|
| 236 | #define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
---|
| 237 | #define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
---|
| 238 | #ifdef WOLFSSL_APACHE_HTTPD
|
---|
| 239 | #define SSL_CTX_load_verify_locations(ctx,file,path) \
|
---|
| 240 | wolfSSL_CTX_load_verify_locations_ex(ctx,file,path,\
|
---|
| 241 | WOLFSSL_LOAD_FLAG_IGNORE_ERR)
|
---|
| 242 | #else
|
---|
| 243 | #define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
|
---|
| 244 | #endif
|
---|
| 245 | #define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
---|
| 246 | #define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
---|
| 247 |
|
---|
| 248 | #define SSL_use_certificate_file wolfSSL_use_certificate_file
|
---|
| 249 | #define SSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
|
---|
| 250 | #define SSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
|
---|
| 251 | #define SSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
|
---|
| 252 | #endif
|
---|
| 253 |
|
---|
| 254 | #define SSL_CTX_new(method) wolfSSL_CTX_new((WOLFSSL_METHOD*)(method))
|
---|
| 255 | #ifdef OPENSSL_EXTRA
|
---|
| 256 | #define SSL_CTX_up_ref wolfSSL_CTX_up_ref
|
---|
| 257 | #endif
|
---|
| 258 | #define SSL_new wolfSSL_new
|
---|
| 259 | #define SSL_set_fd wolfSSL_set_fd
|
---|
| 260 | #define SSL_get_fd wolfSSL_get_fd
|
---|
| 261 | #define SSL_connect wolfSSL_connect
|
---|
| 262 | #define SSL_clear wolfSSL_clear
|
---|
| 263 | #define SSL_state wolfSSL_state
|
---|
| 264 |
|
---|
| 265 | #define SSL_write wolfSSL_write
|
---|
| 266 | #define SSL_read wolfSSL_read
|
---|
| 267 | #define SSL_peek wolfSSL_peek
|
---|
| 268 | #define SSL_accept wolfSSL_accept
|
---|
| 269 | #define SSL_CTX_free wolfSSL_CTX_free
|
---|
| 270 | #define SSL_free wolfSSL_free
|
---|
| 271 | #define SSL_shutdown wolfSSL_shutdown
|
---|
| 272 | #define SSL_set_timeout wolfSSL_set_timeout
|
---|
| 273 |
|
---|
| 274 | #define SSL_CTX_set_quiet_shutdown wolfSSL_CTX_set_quiet_shutdown
|
---|
| 275 | #define SSL_set_quiet_shutdown wolfSSL_set_quiet_shutdown
|
---|
| 276 | #define SSL_get_error wolfSSL_get_error
|
---|
| 277 | #define SSL_set_session wolfSSL_set_session
|
---|
| 278 | #define SSL_get_session(x) wolfSSL_get_session((WOLFSSL*) (x))
|
---|
| 279 | #define SSL_SESSION_get0_peer wolfSSL_SESSION_get0_peer
|
---|
| 280 | #define SSL_flush_sessions wolfSSL_flush_sessions
|
---|
| 281 | /* assume unlimited temporarily */
|
---|
| 282 | #define SSL_CTX_get_session_cache_mode(ctx) 0
|
---|
| 283 |
|
---|
| 284 | #define SSL_CTX_set_verify wolfSSL_CTX_set_verify
|
---|
| 285 | #define SSL_CTX_set_cert_verify_callback wolfSSL_CTX_set_cert_verify_callback
|
---|
| 286 | #define SSL_set_verify wolfSSL_set_verify
|
---|
| 287 | #define SSL_set_verify_result wolfSSL_set_verify_result
|
---|
| 288 | #define SSL_pending wolfSSL_pending
|
---|
| 289 | #define SSL_load_error_strings wolfSSL_load_error_strings
|
---|
| 290 | #define SSL_library_init wolfSSL_library_init
|
---|
| 291 | #define OpenSSL_add_ssl_algorithms wolfSSL_library_init
|
---|
| 292 | #define SSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
---|
| 293 | #define SSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
|
---|
| 294 | #define SSL_CTX_set_ciphersuites wolfSSL_CTX_set_cipher_list
|
---|
| 295 | #define SSL_set_cipher_list wolfSSL_set_cipher_list
|
---|
| 296 | /* wolfSSL does not support security levels */
|
---|
| 297 | #define SSL_CTX_set_security_level(...)
|
---|
| 298 | /* wolfSSL does not support exporting keying material */
|
---|
| 299 | #define SSL_export_keying_material(...) 0
|
---|
| 300 |
|
---|
| 301 | #define SSL_CTX_set1_groups_list wolfSSL_CTX_set1_groups_list
|
---|
| 302 | #define SSL_set1_groups_list wolfSSL_set1_groups_list
|
---|
| 303 |
|
---|
| 304 | #define SSL_set_ex_data wolfSSL_set_ex_data
|
---|
| 305 | #define SSL_get_shutdown wolfSSL_get_shutdown
|
---|
| 306 | #define SSL_set_rfd wolfSSL_set_rfd
|
---|
| 307 | #define SSL_set_wfd wolfSSL_set_wfd
|
---|
| 308 | #define SSL_set_shutdown wolfSSL_set_shutdown
|
---|
| 309 | #define SSL_set_session_id_context wolfSSL_set_session_id_context
|
---|
| 310 | #define SSL_set_connect_state wolfSSL_set_connect_state
|
---|
| 311 | #define SSL_set_accept_state wolfSSL_set_accept_state
|
---|
| 312 | #define SSL_session_reused wolfSSL_session_reused
|
---|
| 313 | #define SSL_SESSION_dup wolfSSL_SESSION_dup
|
---|
| 314 | #define SSL_SESSION_free wolfSSL_SESSION_free
|
---|
| 315 | #define SSL_is_init_finished wolfSSL_is_init_finished
|
---|
| 316 |
|
---|
| 317 | #define SSL_get_version wolfSSL_get_version
|
---|
| 318 | #define SSL_get_current_cipher wolfSSL_get_current_cipher
|
---|
| 319 |
|
---|
| 320 | /* use wolfSSL_get_cipher_name for its return format */
|
---|
| 321 | #define SSL_get_cipher wolfSSL_get_cipher_name
|
---|
| 322 | #define SSL_CIPHER_description wolfSSL_CIPHER_description
|
---|
| 323 | #define SSL_CIPHER_get_name wolfSSL_CIPHER_get_name
|
---|
| 324 | #define SSL_CIPHER_get_version wolfSSL_CIPHER_get_version
|
---|
| 325 | #define SSL_CIPHER_get_id wolfSSL_CIPHER_get_id
|
---|
| 326 | #define SSL_CIPHER_get_rfc_name wolfSSL_CIPHER_get_name
|
---|
| 327 | #define SSL_CIPHER_standard_name wolfSSL_CIPHER_get_name
|
---|
| 328 | #define SSL_get_cipher_by_value wolfSSL_get_cipher_by_value
|
---|
| 329 |
|
---|
| 330 | #define SSL_get1_session wolfSSL_get1_session
|
---|
| 331 |
|
---|
| 332 | #define SSL_get_keyblock_size wolfSSL_get_keyblock_size
|
---|
| 333 | #define SSL_get_keys wolfSSL_get_keys
|
---|
| 334 | #define SSL_SESSION_get_master_key wolfSSL_SESSION_get_master_key
|
---|
| 335 | #define SSL_SESSION_get_master_key_length wolfSSL_SESSION_get_master_key_length
|
---|
| 336 |
|
---|
| 337 | #if defined(WOLFSSL_QT) || defined(OPENSSL_ALL)
|
---|
| 338 | #define SSL_MODE_RELEASE_BUFFERS 0x00000010U
|
---|
| 339 | #define ASN1_BOOLEAN WOLFSSL_ASN1_BOOLEAN
|
---|
| 340 | #define X509_get_ext wolfSSL_X509_get_ext
|
---|
| 341 | #define X509_cmp wolfSSL_X509_cmp
|
---|
| 342 | #define X509_EXTENSION_get_object wolfSSL_X509_EXTENSION_get_object
|
---|
| 343 | #define X509_EXTENSION_get_critical wolfSSL_X509_EXTENSION_get_critical
|
---|
| 344 | #define X509_EXTENSION_get_data wolfSSL_X509_EXTENSION_get_data
|
---|
| 345 | #define X509_EXTENSION_new wolfSSL_X509_EXTENSION_new
|
---|
| 346 | #define X509_EXTENSION_free wolfSSL_X509_EXTENSION_free
|
---|
| 347 | #define X509_gmtime_adj wolfSSL_X509_gmtime_adj
|
---|
| 348 | #endif
|
---|
| 349 |
|
---|
| 350 | #define DSA_dup_DH wolfSSL_DSA_dup_DH
|
---|
| 351 | /* wolfSSL does not support DSA as the cert public key */
|
---|
| 352 | #define EVP_PKEY_get0_DSA(...) NULL
|
---|
| 353 | #define DSA_bits(...) 0
|
---|
| 354 |
|
---|
| 355 | #define i2d_X509_bio wolfSSL_i2d_X509_bio
|
---|
| 356 | #define d2i_X509_bio wolfSSL_d2i_X509_bio
|
---|
| 357 | #define d2i_X509_fp wolfSSL_d2i_X509_fp
|
---|
| 358 | #define i2d_X509 wolfSSL_i2d_X509
|
---|
| 359 | #define d2i_X509 wolfSSL_d2i_X509
|
---|
| 360 | #define PEM_read_bio_X509 wolfSSL_PEM_read_bio_X509
|
---|
| 361 | #define PEM_read_bio_X509_CRL wolfSSL_PEM_read_bio_X509_CRL
|
---|
| 362 | #define PEM_read_bio_X509_AUX wolfSSL_PEM_read_bio_X509_AUX
|
---|
| 363 | #define PEM_read_X509 wolfSSL_PEM_read_X509
|
---|
| 364 | #define PEM_X509_INFO_read_bio wolfSSL_PEM_X509_INFO_read_bio
|
---|
| 365 | #define PEM_write_bio_X509 wolfSSL_PEM_write_bio_X509
|
---|
| 366 | #define PEM_write_bio_X509_AUX wolfSSL_PEM_write_bio_X509_AUX
|
---|
| 367 | #define PEM_X509_INFO_read_bio wolfSSL_PEM_X509_INFO_read_bio
|
---|
| 368 | #define i2d_PrivateKey wolfSSL_i2d_PrivateKey
|
---|
| 369 |
|
---|
| 370 | #define i2d_X509_REQ wolfSSL_i2d_X509_REQ
|
---|
| 371 | #define X509_REQ_new wolfSSL_X509_REQ_new
|
---|
| 372 | #define X509_REQ_free wolfSSL_X509_REQ_free
|
---|
| 373 | #define X509_REQ_sign wolfSSL_X509_REQ_sign
|
---|
| 374 | #define X509_REQ_add_extensions wolfSSL_X509_REQ_add_extensions
|
---|
| 375 | #define X509_REQ_set_subject_name wolfSSL_X509_REQ_set_subject_name
|
---|
| 376 | #define X509_REQ_set_pubkey wolfSSL_X509_REQ_set_pubkey
|
---|
| 377 | #define PEM_write_bio_X509_REQ wolfSSL_PEM_write_bio_X509_REQ
|
---|
| 378 |
|
---|
| 379 | #define X509_new wolfSSL_X509_new
|
---|
| 380 | #define X509_up_ref wolfSSL_X509_up_ref
|
---|
| 381 | #define X509_free wolfSSL_X509_free
|
---|
| 382 | #define X509_load_certificate_file wolfSSL_X509_load_certificate_file
|
---|
| 383 | #define X509_digest wolfSSL_X509_digest
|
---|
| 384 | #define X509_get_ext_count wolfSSL_X509_get_ext_count
|
---|
| 385 | #define X509_get_ext_d2i wolfSSL_X509_get_ext_d2i
|
---|
| 386 | #define X509_get_ext wolfSSL_X509_get_ext
|
---|
| 387 | #define X509_get_ext_by_NID wolfSSL_X509_get_ext_by_NID
|
---|
| 388 | #define X509_get_issuer_name wolfSSL_X509_get_issuer_name
|
---|
| 389 | #define X509_get_subject_name wolfSSL_X509_get_subject_name
|
---|
| 390 | #define X509_get_pubkey wolfSSL_X509_get_pubkey
|
---|
| 391 | #define X509_get0_pubkey wolfSSL_X509_get_pubkey
|
---|
| 392 | #define X509_get_notBefore wolfSSL_X509_get_notBefore
|
---|
| 393 | #define X509_get_notAfter wolfSSL_X509_get_notAfter
|
---|
| 394 | #define X509_get_serialNumber wolfSSL_X509_get_serialNumber
|
---|
| 395 | #define X509_get0_pubkey_bitstr wolfSSL_X509_get0_pubkey_bitstr
|
---|
| 396 | #define X509_get_ex_new_index wolfSSL_X509_get_ex_new_index
|
---|
| 397 | #define X509_get_ex_data wolfSSL_X509_get_ex_data
|
---|
| 398 | #define X509_set_ex_data wolfSSL_X509_set_ex_data
|
---|
| 399 | #define X509_get1_ocsp wolfSSL_X509_get1_ocsp
|
---|
| 400 | #ifndef WOLFSSL_HAPROXY
|
---|
| 401 | #define X509_get_version wolfSSL_X509_get_version
|
---|
| 402 | #endif
|
---|
| 403 | #define X509_get_signature_nid wolfSSL_X509_get_signature_nid
|
---|
| 404 | #define X509_set_subject_name wolfSSL_X509_set_subject_name
|
---|
| 405 | #define X509_set_issuer_name wolfSSL_X509_set_issuer_name
|
---|
| 406 | #define X509_set_pubkey wolfSSL_X509_set_pubkey
|
---|
| 407 | #define X509_set_notAfter wolfSSL_X509_set_notAfter
|
---|
| 408 | #define X509_set_notBefore wolfSSL_X509_set_notBefore
|
---|
| 409 | #define X509_set_serialNumber wolfSSL_X509_set_serialNumber
|
---|
| 410 | #define X509_set_version wolfSSL_X509_set_version
|
---|
| 411 | #define X509_sign wolfSSL_X509_sign
|
---|
| 412 | #define X509_print wolfSSL_X509_print
|
---|
| 413 | #define X509_print_ex wolfSSL_X509_print_ex
|
---|
| 414 | #define X509_verify_cert_error_string wolfSSL_X509_verify_cert_error_string
|
---|
| 415 | #define X509_verify_cert wolfSSL_X509_verify_cert
|
---|
| 416 | #define X509_check_private_key wolfSSL_X509_check_private_key
|
---|
| 417 | #define X509_check_ca wolfSSL_X509_check_ca
|
---|
| 418 | #define X509_check_host wolfSSL_X509_check_host
|
---|
| 419 | #define X509_email_free wolfSSL_X509_email_free
|
---|
| 420 | #define X509_check_issued wolfSSL_X509_check_issued
|
---|
| 421 | #define X509_dup wolfSSL_X509_dup
|
---|
| 422 |
|
---|
| 423 | #define X509_EXTENSION_get_object wolfSSL_X509_EXTENSION_get_object
|
---|
| 424 | #define X509_EXTENSION_get_data wolfSSL_X509_EXTENSION_get_data
|
---|
| 425 |
|
---|
| 426 | #define sk_X509_new wolfSSL_sk_X509_new
|
---|
| 427 | #define sk_X509_new_null wolfSSL_sk_X509_new
|
---|
| 428 | #define sk_X509_num wolfSSL_sk_X509_num
|
---|
| 429 | #define sk_X509_value wolfSSL_sk_X509_value
|
---|
| 430 | #define sk_X509_shift wolfSSL_sk_X509_shift
|
---|
| 431 | #define sk_X509_push wolfSSL_sk_X509_push
|
---|
| 432 | #define sk_X509_pop wolfSSL_sk_X509_pop
|
---|
| 433 | #define sk_X509_pop_free wolfSSL_sk_X509_pop_free
|
---|
| 434 | #define sk_X509_dup wolfSSL_sk_X509_dup
|
---|
| 435 | #define sk_X509_free wolfSSL_sk_X509_free
|
---|
| 436 |
|
---|
| 437 | #define sk_X509_EXTENSION_num wolfSSL_sk_X509_EXTENSION_num
|
---|
| 438 | #define sk_X509_EXTENSION_value wolfSSL_sk_X509_EXTENSION_value
|
---|
| 439 | #define sk_X509_EXTENSION_new_null wolfSSL_sk_X509_EXTENSION_new_null
|
---|
| 440 | #define sk_X509_EXTENSION_pop_free wolfSSL_sk_X509_EXTENSION_pop_free
|
---|
| 441 | #define sk_X509_EXTENSION_push wolfSSL_sk_X509_EXTENSION_push
|
---|
| 442 | #define X509_EXTENSION_free wolfSSL_X509_EXTENSION_free
|
---|
| 443 |
|
---|
| 444 | #define X509_INFO_new wolfSSL_X509_INFO_new
|
---|
| 445 | #define X509_INFO_free wolfSSL_X509_INFO_free
|
---|
| 446 |
|
---|
| 447 | #define sk_X509_INFO_new_null wolfSSL_sk_X509_INFO_new_null
|
---|
| 448 | #define sk_X509_INFO_num wolfSSL_sk_X509_INFO_num
|
---|
| 449 | #define sk_X509_INFO_value wolfSSL_sk_X509_INFO_value
|
---|
| 450 | #define sk_X509_INFO_push wolfSSL_sk_X509_INFO_push
|
---|
| 451 | #define sk_X509_INFO_pop wolfSSL_sk_X509_INFO_pop
|
---|
| 452 | #define sk_X509_INFO_pop_free wolfSSL_sk_X509_INFO_pop_free
|
---|
| 453 | #define sk_X509_INFO_free wolfSSL_sk_X509_INFO_free
|
---|
| 454 |
|
---|
| 455 | #define i2d_X509_NAME wolfSSL_i2d_X509_NAME
|
---|
| 456 | #define X509_NAME_new wolfSSL_X509_NAME_new
|
---|
| 457 | #define X509_NAME_free wolfSSL_X509_NAME_free
|
---|
| 458 | #define X509_NAME_dup wolfSSL_X509_NAME_dup
|
---|
| 459 | #define X509_NAME_get_text_by_NID wolfSSL_X509_NAME_get_text_by_NID
|
---|
| 460 | #define X509_NAME_get_index_by_OBJ wolfSSL_X509_NAME_get_index_by_OBJ
|
---|
| 461 | #define X509_NAME_cmp wolfSSL_X509_NAME_cmp
|
---|
| 462 | #define X509_NAME_ENTRY_new wolfSSL_X509_NAME_ENTRY_new
|
---|
| 463 | #define X509_NAME_ENTRY_free wolfSSL_X509_NAME_ENTRY_free
|
---|
| 464 | #define X509_NAME_ENTRY_create_by_NID wolfSSL_X509_NAME_ENTRY_create_by_NID
|
---|
| 465 | #define X509_NAME_ENTRY_create_by_txt wolfSSL_X509_NAME_ENTRY_create_by_txt
|
---|
| 466 | #define X509_NAME_add_entry wolfSSL_X509_NAME_add_entry
|
---|
| 467 | #define X509_NAME_add_entry_by_txt wolfSSL_X509_NAME_add_entry_by_txt
|
---|
| 468 | #define X509_NAME_add_entry_by_NID wolfSSL_X509_NAME_add_entry_by_NID
|
---|
| 469 | #define X509_NAME_oneline wolfSSL_X509_NAME_oneline
|
---|
| 470 | #define X509_NAME_get_index_by_NID wolfSSL_X509_NAME_get_index_by_NID
|
---|
| 471 | #define X509_NAME_print_ex wolfSSL_X509_NAME_print_ex
|
---|
| 472 | #define X509_NAME_digest wolfSSL_X509_NAME_digest
|
---|
| 473 | #define X509_cmp_current_time wolfSSL_X509_cmp_current_time
|
---|
| 474 | #define X509_cmp_time wolfSSL_X509_cmp_time
|
---|
| 475 | #define X509_time_adj wolfSSL_X509_time_adj
|
---|
| 476 | #define X509_time_adj_ex wolfSSL_X509_time_adj_ex
|
---|
| 477 |
|
---|
| 478 | #define sk_ACCESS_DESCRIPTION_num wolfSSL_sk_ACCESS_DESCRIPTION_num
|
---|
| 479 | #define sk_ACCESS_DESCRIPTION_value wolfSSL_sk_ACCESS_DESCRIPTION_value
|
---|
| 480 |
|
---|
| 481 | #define sk_X509_NAME_new wolfSSL_sk_X509_NAME_new
|
---|
| 482 | #define sk_X509_NAME_push wolfSSL_sk_X509_NAME_push
|
---|
| 483 | #define sk_X509_NAME_find wolfSSL_sk_X509_NAME_find
|
---|
| 484 | #define sk_X509_NAME_set_cmp_func wolfSSL_sk_X509_NAME_set_cmp_func
|
---|
| 485 | #define sk_X509_NAME_num wolfSSL_sk_X509_NAME_num
|
---|
| 486 | #define sk_X509_NAME_value wolfSSL_sk_X509_NAME_value
|
---|
| 487 | #define sk_X509_NAME_pop wolfSSL_sk_X509_NAME_pop
|
---|
| 488 | #define sk_X509_NAME_pop_free wolfSSL_sk_X509_NAME_pop_free
|
---|
| 489 | #define sk_X509_NAME_free wolfSSL_sk_X509_NAME_free
|
---|
| 490 |
|
---|
| 491 | typedef WOLFSSL_X509_NAME_ENTRY X509_NAME_ENTRY;
|
---|
| 492 |
|
---|
| 493 | #define X509_NAME_entry_count wolfSSL_X509_NAME_entry_count
|
---|
| 494 | #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
|
---|
| 495 | #define X509_NAME_get_entry wolfSSL_X509_NAME_get_entry
|
---|
| 496 | #define X509_NAME_ENTRY_get_data wolfSSL_X509_NAME_ENTRY_get_data
|
---|
| 497 | #define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
|
---|
| 498 |
|
---|
| 499 | #define X509_V_FLAG_CRL_CHECK WOLFSSL_CRL_CHECK
|
---|
| 500 | #define X509_V_FLAG_CRL_CHECK_ALL WOLFSSL_CRL_CHECKALL
|
---|
| 501 |
|
---|
| 502 | #define X509_V_FLAG_USE_CHECK_TIME WOLFSSL_USE_CHECK_TIME
|
---|
| 503 | #define X509_V_FLAG_NO_CHECK_TIME WOLFSSL_NO_CHECK_TIME
|
---|
| 504 | #define X509_CHECK_FLAG_NO_WILDCARDS WOLFSSL_NO_WILDCARDS
|
---|
| 505 |
|
---|
| 506 | #define X509_STORE_CTX_get_current_cert wolfSSL_X509_STORE_CTX_get_current_cert
|
---|
| 507 | #define X509_STORE_CTX_set_verify_cb wolfSSL_X509_STORE_CTX_set_verify_cb
|
---|
| 508 | #define X509_STORE_CTX_new wolfSSL_X509_STORE_CTX_new
|
---|
| 509 | #define X509_STORE_CTX_free wolfSSL_X509_STORE_CTX_free
|
---|
| 510 | #define X509_STORE_CTX_get_chain wolfSSL_X509_STORE_CTX_get_chain
|
---|
| 511 | #define X509_STORE_CTX_get1_chain wolfSSL_X509_STORE_CTX_get1_chain
|
---|
| 512 | #define X509_STORE_CTX_get_error wolfSSL_X509_STORE_CTX_get_error
|
---|
| 513 | #define X509_STORE_CTX_get_error_depth wolfSSL_X509_STORE_CTX_get_error_depth
|
---|
| 514 | #define X509_STORE_CTX_init wolfSSL_X509_STORE_CTX_init
|
---|
| 515 | #define X509_STORE_CTX_cleanup wolfSSL_X509_STORE_CTX_cleanup
|
---|
| 516 | #define X509_STORE_CTX_set_error wolfSSL_X509_STORE_CTX_set_error
|
---|
| 517 | #define X509_STORE_CTX_set_error_depth wolfSSL_X509_STORE_CTX_set_error_depth
|
---|
| 518 | #define X509_STORE_CTX_get_ex_data wolfSSL_X509_STORE_CTX_get_ex_data
|
---|
| 519 | #define X509_STORE_CTX_set_ex_data wolfSSL_X509_STORE_CTX_set_ex_data
|
---|
| 520 | #define X509_STORE_CTX_set_depth wolfSSL_X509_STORE_CTX_set_depth
|
---|
| 521 | #define X509_STORE_CTX_verify_cb WOLFSSL_X509_STORE_CTX_verify_cb
|
---|
| 522 | #define X509_STORE_CTX_get0_current_issuer \
|
---|
| 523 | wolfSSL_X509_STORE_CTX_get0_current_issuer
|
---|
| 524 | #define X509_STORE_CTX_get0_store wolfSSL_X509_STORE_CTX_get0_store
|
---|
| 525 | #define X509_STORE_CTX_get0_cert wolfSSL_X509_STORE_CTX_get0_cert
|
---|
| 526 |
|
---|
| 527 | #define X509_STORE_set_verify_cb(s, c) \
|
---|
| 528 | wolfSSL_X509_STORE_set_verify_cb((WOLFSSL_X509_STORE *)(s), (WOLFSSL_X509_STORE_CTX_verify_cb)(c))
|
---|
| 529 | #define X509_STORE_set_verify_cb_func(s, c) \
|
---|
| 530 | wolfSSL_X509_STORE_set_verify_cb((WOLFSSL_X509_STORE *)(s), (WOLFSSL_X509_STORE_CTX_verify_cb)(c))
|
---|
| 531 |
|
---|
| 532 |
|
---|
| 533 | #define X509_STORE_new wolfSSL_X509_STORE_new
|
---|
| 534 | #define X509_STORE_free wolfSSL_X509_STORE_free
|
---|
| 535 | #define X509_STORE_add_lookup wolfSSL_X509_STORE_add_lookup
|
---|
| 536 | #define X509_STORE_add_cert wolfSSL_X509_STORE_add_cert
|
---|
| 537 | #define X509_STORE_add_crl wolfSSL_X509_STORE_add_crl
|
---|
| 538 | #define X509_STORE_set_flags wolfSSL_X509_STORE_set_flags
|
---|
| 539 | #define X509_STORE_get1_certs wolfSSL_X509_STORE_get1_certs
|
---|
| 540 | #define X509_STORE_get_by_subject wolfSSL_X509_STORE_get_by_subject
|
---|
| 541 | #define X509_STORE_CTX_get1_issuer wolfSSL_X509_STORE_CTX_get1_issuer
|
---|
| 542 | #define X509_STORE_CTX_set_time wolfSSL_X509_STORE_CTX_set_time
|
---|
| 543 | #define X509_VERIFY_PARAM_set_hostflags wolfSSL_X509_VERIFY_PARAM_set_hostflags
|
---|
| 544 | #define X509_VERIFY_PARAM_set1_host wolfSSL_X509_VERIFY_PARAM_set1_host
|
---|
| 545 | #define X509_VERIFY_PARAM_set1_ip_asc wolfSSL_X509_VERIFY_PARAM_set1_ip_asc
|
---|
| 546 | #define X509_STORE_load_locations wolfSSL_X509_STORE_load_locations
|
---|
| 547 |
|
---|
| 548 | #define X509_LOOKUP_add_dir wolfSSL_X509_LOOKUP_add_dir
|
---|
| 549 | #define X509_LOOKUP_load_file wolfSSL_X509_LOOKUP_load_file
|
---|
| 550 | #define X509_LOOKUP_hash_dir wolfSSL_X509_LOOKUP_hash_dir
|
---|
| 551 | #define X509_LOOKUP_file wolfSSL_X509_LOOKUP_file
|
---|
| 552 |
|
---|
| 553 | #define d2i_X509_CRL wolfSSL_d2i_X509_CRL
|
---|
| 554 | #define d2i_X509_CRL_fp wolfSSL_d2i_X509_CRL_fp
|
---|
| 555 | #define PEM_read_X509_CRL wolfSSL_PEM_read_X509_CRL
|
---|
| 556 |
|
---|
| 557 | #define X509_CRL_free wolfSSL_X509_CRL_free
|
---|
| 558 | #define X509_CRL_get_lastUpdate wolfSSL_X509_CRL_get_lastUpdate
|
---|
| 559 | #define X509_CRL_get_nextUpdate wolfSSL_X509_CRL_get_nextUpdate
|
---|
| 560 | #define X509_CRL_verify wolfSSL_X509_CRL_verify
|
---|
| 561 | #define X509_CRL_get_REVOKED wolfSSL_X509_CRL_get_REVOKED
|
---|
| 562 |
|
---|
| 563 | #define X509_get_X509_PUBKEY wolfSSL_X509_get_X509_PUBKEY
|
---|
| 564 | #define X509_get0_tbs_sigalg wolfSSL_X509_get0_tbs_sigalg
|
---|
| 565 | #define X509_PUBKEY_get0_param wolfSSL_X509_PUBKEY_get0_param
|
---|
| 566 | #define X509_PUBKEY_get wolfSSL_X509_PUBKEY_get
|
---|
| 567 | #define X509_PUBKEY_set wolfSSL_X509_PUBKEY_set
|
---|
| 568 | #define X509_ALGOR_get0 wolfSSL_X509_ALGOR_get0
|
---|
| 569 | #define X509_ALGOR_set0 wolfSSL_X509_ALGOR_set0
|
---|
| 570 |
|
---|
| 571 | #define X509_ALGOR_new wolfSSL_X509_ALGOR_new
|
---|
| 572 | #define X509_ALGOR_free wolfSSL_X509_ALGOR_free
|
---|
| 573 | #define X509_PUBKEY_new wolfSSL_X509_PUBKEY_new
|
---|
| 574 | #define X509_PUBKEY_free wolfSSL_X509_PUBKEY_free
|
---|
| 575 |
|
---|
| 576 | #define sk_X509_REVOKED_num wolfSSL_sk_X509_REVOKED_num
|
---|
| 577 | #define sk_X509_REVOKED_value wolfSSL_sk_X509_REVOKED_value
|
---|
| 578 |
|
---|
| 579 | #define X509_OBJECT_free_contents wolfSSL_X509_OBJECT_free_contents
|
---|
| 580 | #define X509_subject_name_hash wolfSSL_X509_subject_name_hash
|
---|
| 581 |
|
---|
| 582 | #define X509_check_purpose(...) 0
|
---|
| 583 |
|
---|
| 584 | #define OCSP_parse_url wolfSSL_OCSP_parse_url
|
---|
| 585 |
|
---|
| 586 | #define MD4_Init wolfSSL_MD4_Init
|
---|
| 587 | #define MD4_Update wolfSSL_MD4_Update
|
---|
| 588 | #define MD4_Final wolfSSL_MD4_Final
|
---|
| 589 |
|
---|
| 590 | #define BIO_new wolfSSL_BIO_new
|
---|
| 591 | #define BIO_free wolfSSL_BIO_free
|
---|
| 592 | #define BIO_vfree wolfSSL_BIO_vfree
|
---|
| 593 | #define BIO_free_all wolfSSL_BIO_free_all
|
---|
| 594 | #define BIO_nread0 wolfSSL_BIO_nread0
|
---|
| 595 | #define BIO_nread wolfSSL_BIO_nread
|
---|
| 596 | #define BIO_read wolfSSL_BIO_read
|
---|
| 597 | #define BIO_nwrite0 wolfSSL_BIO_nwrite0
|
---|
| 598 | #define BIO_nwrite wolfSSL_BIO_nwrite
|
---|
| 599 | #define BIO_write wolfSSL_BIO_write
|
---|
| 600 | #define BIO_push wolfSSL_BIO_push
|
---|
| 601 | #define BIO_pop wolfSSL_BIO_pop
|
---|
| 602 | #define BIO_flush wolfSSL_BIO_flush
|
---|
| 603 | #define BIO_pending wolfSSL_BIO_pending
|
---|
| 604 |
|
---|
| 605 | #define BIO_get_mem_data wolfSSL_BIO_get_mem_data
|
---|
| 606 | #define BIO_new_mem_buf wolfSSL_BIO_new_mem_buf
|
---|
| 607 |
|
---|
| 608 | #define BIO_f_buffer wolfSSL_BIO_f_buffer
|
---|
| 609 | #define BIO_set_write_buffer_size wolfSSL_BIO_set_write_buffer_size
|
---|
| 610 | #define BIO_f_ssl wolfSSL_BIO_f_ssl
|
---|
| 611 | #define BIO_new_socket wolfSSL_BIO_new_socket
|
---|
| 612 | #define SSL_set_bio wolfSSL_set_bio
|
---|
| 613 | #define BIO_set_ssl wolfSSL_BIO_set_ssl
|
---|
| 614 | #define BIO_eof wolfSSL_BIO_eof
|
---|
| 615 | #define BIO_set_ss wolfSSL_BIO_set_ss
|
---|
| 616 |
|
---|
| 617 | #define BIO_f_md wolfSSL_BIO_f_md
|
---|
| 618 | #define BIO_get_md_ctx wolfSSL_BIO_get_md_ctx
|
---|
| 619 | #define BIO_s_mem wolfSSL_BIO_s_mem
|
---|
| 620 | #define BIO_f_base64 wolfSSL_BIO_f_base64
|
---|
| 621 | #define BIO_set_flags wolfSSL_BIO_set_flags
|
---|
| 622 | #define BIO_set_nbio wolfSSL_BIO_set_nbio
|
---|
| 623 |
|
---|
| 624 | #define SSLeay_add_ssl_algorithms wolfSSL_add_all_algorithms
|
---|
| 625 | #define SSLeay_add_all_algorithms wolfSSL_add_all_algorithms
|
---|
| 626 |
|
---|
| 627 | #define RAND_screen wolfSSL_RAND_screen
|
---|
| 628 | #define RAND_file_name wolfSSL_RAND_file_name
|
---|
| 629 | #define RAND_write_file wolfSSL_RAND_write_file
|
---|
| 630 | #define RAND_load_file wolfSSL_RAND_load_file
|
---|
| 631 | #define RAND_egd wolfSSL_RAND_egd
|
---|
| 632 | #define RAND_seed wolfSSL_RAND_seed
|
---|
| 633 | #define RAND_cleanup wolfSSL_RAND_Cleanup
|
---|
| 634 | #define RAND_add wolfSSL_RAND_add
|
---|
| 635 | #define RAND_poll wolfSSL_RAND_poll
|
---|
| 636 | #define RAND_status wolfSSL_RAND_status
|
---|
| 637 | #define RAND_bytes wolfSSL_RAND_bytes
|
---|
| 638 | #define RAND_pseudo_bytes wolfSSL_RAND_pseudo_bytes
|
---|
| 639 |
|
---|
| 640 | #define COMP_zlib wolfSSL_COMP_zlib
|
---|
| 641 | #define COMP_rle wolfSSL_COMP_rle
|
---|
| 642 | #define SSL_COMP_add_compression_method wolfSSL_COMP_add_compression_method
|
---|
| 643 |
|
---|
| 644 | #define SSL_get_ex_new_index wolfSSL_get_ex_new_index
|
---|
| 645 | #define RSA_get_ex_new_index wolfSSL_get_ex_new_index
|
---|
| 646 |
|
---|
| 647 | #define ASN1_BIT_STRING_new wolfSSL_ASN1_BIT_STRING_new
|
---|
| 648 | #define ASN1_BIT_STRING_free wolfSSL_ASN1_BIT_STRING_free
|
---|
| 649 | #define ASN1_BIT_STRING_get_bit wolfSSL_ASN1_BIT_STRING_get_bit
|
---|
| 650 | #define ASN1_BIT_STRING_set_bit wolfSSL_ASN1_BIT_STRING_set_bit
|
---|
| 651 |
|
---|
| 652 | #define sk_ASN1_OBJECT_free wolfSSL_sk_ASN1_OBJECT_free
|
---|
| 653 |
|
---|
| 654 | #define ASN1_TIME_free wolfSSL_ASN1_TIME_free
|
---|
| 655 | #define ASN1_TIME_adj wolfSSL_ASN1_TIME_adj
|
---|
| 656 | #define ASN1_TIME_print wolfSSL_ASN1_TIME_print
|
---|
| 657 | #define ASN1_TIME_to_generalizedtime wolfSSL_ASN1_TIME_to_generalizedtime
|
---|
| 658 | #define ASN1_GENERALIZEDTIME_print wolfSSL_ASN1_GENERALIZEDTIME_print
|
---|
| 659 | #define ASN1_GENERALIZEDTIME_free wolfSSL_ASN1_GENERALIZEDTIME_free
|
---|
| 660 |
|
---|
| 661 | #define ASN1_tag2str wolfSSL_ASN1_tag2str
|
---|
| 662 |
|
---|
| 663 | #define i2a_ASN1_INTEGER wolfSSL_i2a_ASN1_INTEGER
|
---|
| 664 | #define i2c_ASN1_INTEGER wolfSSL_i2c_ASN1_INTEGER
|
---|
| 665 | #define ASN1_INTEGER_new wolfSSL_ASN1_INTEGER_new
|
---|
| 666 | #define ASN1_INTEGER_free wolfSSL_ASN1_INTEGER_free
|
---|
| 667 | #define ASN1_INTEGER_cmp wolfSSL_ASN1_INTEGER_cmp
|
---|
| 668 | #define ASN1_INTEGER_get wolfSSL_ASN1_INTEGER_get
|
---|
| 669 | #define ASN1_INTEGER_set wolfSSL_ASN1_INTEGER_set
|
---|
| 670 | #define ASN1_INTEGER_to_BN wolfSSL_ASN1_INTEGER_to_BN
|
---|
| 671 |
|
---|
| 672 | #define i2a_ASN1_OBJECT wolfSSL_i2a_ASN1_OBJECT
|
---|
| 673 |
|
---|
| 674 | #define ASN1_STRING_data wolfSSL_ASN1_STRING_data
|
---|
| 675 | #define ASN1_STRING_get0_data wolfSSL_ASN1_STRING_data
|
---|
| 676 | #define ASN1_STRING_length wolfSSL_ASN1_STRING_length
|
---|
| 677 | #define ASN1_STRING_to_UTF8 wolfSSL_ASN1_STRING_to_UTF8
|
---|
| 678 | #define ASN1_STRING_print_ex wolfSSL_ASN1_STRING_print_ex
|
---|
| 679 | #define ASN1_STRING_print(x, y) wolfSSL_ASN1_STRING_print ((WOLFSSL_BIO*)(x), (WOLFSSL_ASN1_STRING*)(y))
|
---|
| 680 | #define d2i_DISPLAYTEXT wolfSSL_d2i_DISPLAYTEXT
|
---|
| 681 |
|
---|
| 682 | #define ASN1_UTCTIME_pr wolfSSL_ASN1_UTCTIME_pr
|
---|
| 683 |
|
---|
| 684 | #define ASN1_IA5STRING WOLFSSL_ASN1_STRING
|
---|
| 685 |
|
---|
| 686 | #define ASN1_OCTET_STRING WOLFSSL_ASN1_STRING
|
---|
| 687 | #define ASN1_BOOLEAN WOLFSSL_ASN1_BOOLEAN
|
---|
| 688 |
|
---|
| 689 | #define SSL_load_client_CA_file wolfSSL_load_client_CA_file
|
---|
| 690 |
|
---|
| 691 | #define SSL_CTX_get_client_CA_list wolfSSL_CTX_get_client_CA_list
|
---|
| 692 | #define SSL_CTX_set_client_CA_list wolfSSL_CTX_set_client_CA_list
|
---|
| 693 | #define SSL_CTX_set_client_cert_cb wolfSSL_CTX_set_client_cert_cb
|
---|
| 694 | #define SSL_CTX_set_cert_store wolfSSL_CTX_set_cert_store
|
---|
| 695 | #define SSL_CTX_get_cert_store(x) wolfSSL_CTX_get_cert_store ((WOLFSSL_CTX*) (x))
|
---|
| 696 | #define SSL_get_client_CA_list wolfSSL_get_client_CA_list
|
---|
| 697 | #define SSL_get_ex_data_X509_STORE_CTX_idx wolfSSL_get_ex_data_X509_STORE_CTX_idx
|
---|
| 698 | #define SSL_get_ex_data wolfSSL_get_ex_data
|
---|
| 699 |
|
---|
| 700 | #define SSL_CTX_set_default_passwd_cb_userdata wolfSSL_CTX_set_default_passwd_cb_userdata
|
---|
| 701 | #define SSL_CTX_set_default_passwd_cb wolfSSL_CTX_set_default_passwd_cb
|
---|
| 702 |
|
---|
| 703 | #define SSL_CTX_set_timeout(ctx, to) \
|
---|
| 704 | wolfSSL_CTX_set_timeout(ctx, (unsigned int) to)
|
---|
| 705 | #define SSL_CTX_set_info_callback wolfSSL_CTX_set_info_callback
|
---|
| 706 | #define SSL_CTX_set_alpn_protos wolfSSL_CTX_set_alpn_protos
|
---|
| 707 |
|
---|
| 708 | #define SSL_alert_type_string wolfSSL_alert_type_string
|
---|
| 709 | #define SSL_alert_desc_string wolfSSL_alert_desc_string
|
---|
| 710 | #define SSL_state_string wolfSSL_state_string
|
---|
| 711 |
|
---|
| 712 | #define RSA_free wolfSSL_RSA_free
|
---|
| 713 | #define RSA_generate_key wolfSSL_RSA_generate_key
|
---|
| 714 | #define SSL_CTX_set_tmp_rsa_callback wolfSSL_CTX_set_tmp_rsa_callback
|
---|
| 715 | #define RSA_print wolfSSL_RSA_print
|
---|
| 716 | #define RSA_bits wolfSSL_RSA_size
|
---|
| 717 | #define RSA_up_ref wolfSSL_RSA_up_ref
|
---|
| 718 | #define RSA_padding_add_PKCS1_PSS wolfSSL_RSA_padding_add_PKCS1_PSS
|
---|
| 719 | #define RSA_verify_PKCS1_PSS wolfSSL_RSA_verify_PKCS1_PSS
|
---|
| 720 |
|
---|
| 721 | #define PEM_def_callback wolfSSL_PEM_def_callback
|
---|
| 722 |
|
---|
| 723 | #define SSL_CTX_sess_accept wolfSSL_CTX_sess_accept
|
---|
| 724 | #define SSL_CTX_sess_connect wolfSSL_CTX_sess_connect
|
---|
| 725 | #define SSL_CTX_sess_accept_good wolfSSL_CTX_sess_accept_good
|
---|
| 726 | #define SSL_CTX_sess_connect_good wolfSSL_CTX_sess_connect_good
|
---|
| 727 | #define SSL_CTX_sess_accept_renegotiate wolfSSL_CTX_sess_accept_renegotiate
|
---|
| 728 | #define SSL_CTX_sess_connect_renegotiate wolfSSL_CTX_sess_connect_renegotiate
|
---|
| 729 | #define SSL_CTX_sess_hits wolfSSL_CTX_sess_hits
|
---|
| 730 | #define SSL_CTX_sess_cb_hits wolfSSL_CTX_sess_cb_hits
|
---|
| 731 | #define SSL_CTX_sess_cache_full wolfSSL_CTX_sess_cache_full
|
---|
| 732 | #define SSL_CTX_sess_misses wolfSSL_CTX_sess_misses
|
---|
| 733 | #define SSL_CTX_sess_timeouts wolfSSL_CTX_sess_timeouts
|
---|
| 734 | #define SSL_CTX_sess_number wolfSSL_CTX_sess_number
|
---|
| 735 | #define SSL_CTX_sess_get_cache_size wolfSSL_CTX_sess_get_cache_size
|
---|
| 736 |
|
---|
| 737 |
|
---|
| 738 | #define SSL_DEFAULT_CIPHER_LIST WOLFSSL_DEFAULT_CIPHER_LIST
|
---|
| 739 |
|
---|
| 740 | #define SSL_CTX_set_psk_client_callback wolfSSL_CTX_set_psk_client_callback
|
---|
| 741 | #define SSL_set_psk_client_callback wolfSSL_set_psk_client_callback
|
---|
| 742 |
|
---|
| 743 | #define SSL_get_psk_identity_hint wolfSSL_get_psk_identity_hint
|
---|
| 744 | #define SSL_get_psk_identity wolfSSL_get_psk_identity
|
---|
| 745 |
|
---|
| 746 | #define SSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint
|
---|
| 747 | #define SSL_use_psk_identity_hint wolfSSL_use_psk_identity_hint
|
---|
| 748 |
|
---|
| 749 | #define SSL_CTX_set_psk_server_callback wolfSSL_CTX_set_psk_server_callback
|
---|
| 750 | #define SSL_set_psk_server_callback wolfSSL_set_psk_server_callback
|
---|
| 751 |
|
---|
| 752 | /* system file ints for ERR_put_error */
|
---|
| 753 | #define SYS_F_ACCEPT WOLFSSL_SYS_ACCEPT
|
---|
| 754 | #define SYS_F_BIND WOLFSSL_SYS_BIND
|
---|
| 755 | #define SYS_F_CONNECT WOLFSSL_SYS_CONNECT
|
---|
| 756 | #define SYS_F_FOPEN WOLFSSL_SYS_FOPEN
|
---|
| 757 | #define SYS_F_FREAD WOLFSSL_SYS_FREAD
|
---|
| 758 | #define SYS_F_GETADDRINFO WOLFSSL_SYS_GETADDRINFO
|
---|
| 759 | #define SYS_F_GETSOCKOPT WOLFSSL_SYS_GETSOCKOPT
|
---|
| 760 | #define SYS_F_GETSOCKNAME WOLFSSL_SYS_GETSOCKNAME
|
---|
| 761 | #define SYS_F_OPENDIR WOLFSSL_SYS_OPENDIR
|
---|
| 762 | #define SYS_F_SETSOCKOPT WOLFSSL_SYS_SETSOCKOPT
|
---|
| 763 | #define SYS_F_SOCKET WOLFSSL_SYS_SOCKET
|
---|
| 764 | #define SYS_F_GETHOSTBYNAME WOLFSSL_SYS_GETHOSTBYNAME
|
---|
| 765 | #define SYS_F_GETNAMEINFO WOLFSSL_SYS_GETNAMEINFO
|
---|
| 766 | #define SYS_F_GETSERVBYNAME WOLFSSL_SYS_GETSERVBYNAME
|
---|
| 767 | #define SYS_F_IOCTLSOCKET WOLFSSL_SYS_IOCTLSOCKET
|
---|
| 768 | #define SYS_F_LISTEN WOLFSSL_SYS_LISTEN
|
---|
| 769 |
|
---|
| 770 | #define ERR_GET_LIB wolfSSL_ERR_GET_LIB
|
---|
| 771 | #define ERR_GET_REASON wolfSSL_ERR_GET_REASON
|
---|
| 772 |
|
---|
| 773 | #define ERR_put_error wolfSSL_ERR_put_error
|
---|
| 774 | #define ERR_peek_error wolfSSL_ERR_peek_error
|
---|
| 775 | #define ERR_peek_errors_fp wolfSSL_ERR_peek_errors_fp
|
---|
| 776 | #define ERR_peek_error_line_data wolfSSL_ERR_peek_error_line_data
|
---|
| 777 | #define ERR_peek_last_error wolfSSL_ERR_peek_last_error
|
---|
| 778 | #define ERR_peek_last_error_line wolfSSL_ERR_peek_last_error_line
|
---|
| 779 | #define ERR_get_error_line wolfSSL_ERR_get_error_line
|
---|
| 780 | #define ERR_get_error_line_data wolfSSL_ERR_get_error_line_data
|
---|
| 781 | #define ERR_get_error wolfSSL_ERR_get_error
|
---|
| 782 | #define ERR_print_errors_fp(file) wolfSSL_ERR_dump_errors_fp((file))
|
---|
| 783 | #define ERR_print_errors_cb wolfSSL_ERR_print_errors_cb
|
---|
| 784 | #define ERR_print_errors wolfSSL_ERR_print_errors
|
---|
| 785 | #define ERR_clear_error wolfSSL_ERR_clear_error
|
---|
| 786 | #define ERR_free_strings wolfSSL_ERR_free_strings
|
---|
| 787 | #define ERR_remove_state wolfSSL_ERR_remove_state
|
---|
| 788 | #define ERR_remove_thread_state wolfSSL_ERR_remove_thread_state
|
---|
| 789 | #define ERR_error_string wolfSSL_ERR_error_string
|
---|
| 790 | #define ERR_error_string_n wolfSSL_ERR_error_string_n
|
---|
| 791 | #define ERR_reason_error_string wolfSSL_ERR_reason_error_string
|
---|
| 792 | #define ERR_load_BIO_strings wolfSSL_ERR_load_BIO_strings
|
---|
| 793 |
|
---|
| 794 | #ifndef WOLFCRYPT_ONLY
|
---|
| 795 | #define PEMerr(func, reason) wolfSSL_ERR_put_error(ERR_LIB_PEM, \
|
---|
| 796 | (func), (reason), __FILE__, __LINE__)
|
---|
| 797 | #else
|
---|
| 798 | #define PEMerr(func, reason) WOLFSSL_ERROR_LINE((reason), \
|
---|
| 799 | NULL, __LINE__, __FILE__, NULL)
|
---|
| 800 | #endif
|
---|
| 801 |
|
---|
| 802 | #define SSLv23_server_method wolfSSLv23_server_method
|
---|
| 803 | #define SSL_CTX_set_options wolfSSL_CTX_set_options
|
---|
| 804 | #define SSL_CTX_get_options wolfSSL_CTX_get_options
|
---|
| 805 | #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
|
---|
| 806 |
|
---|
| 807 | #define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
|
---|
| 808 | #define SSL_check_private_key wolfSSL_check_private_key
|
---|
| 809 |
|
---|
| 810 | #define SSL_CTX_set_mode wolfSSL_CTX_set_mode
|
---|
| 811 | #define SSL_CTX_get_mode wolfSSL_CTX_get_mode
|
---|
| 812 | #define SSL_CTX_set_default_read_ahead wolfSSL_CTX_set_default_read_ahead
|
---|
| 813 |
|
---|
| 814 | #define SSL_CTX_sess_set_cache_size wolfSSL_CTX_sess_set_cache_size
|
---|
| 815 | #define SSL_CTX_set_default_verify_paths wolfSSL_CTX_set_default_verify_paths
|
---|
| 816 |
|
---|
| 817 | #define SSL_CTX_set_session_id_context wolfSSL_CTX_set_session_id_context
|
---|
| 818 | #define SSL_get_peer_certificate wolfSSL_get_peer_certificate
|
---|
| 819 | #define SSL_get_peer_cert_chain wolfSSL_get_peer_cert_chain
|
---|
| 820 |
|
---|
| 821 | #define SSL_want wolfSSL_want
|
---|
| 822 | #define SSL_want_read wolfSSL_want_read
|
---|
| 823 | #define SSL_want_write wolfSSL_want_write
|
---|
| 824 |
|
---|
| 825 | #define BIO_prf wolfSSL_BIO_prf
|
---|
| 826 |
|
---|
| 827 | #define sk_num wolfSSL_sk_num
|
---|
| 828 | #define sk_ASN1_OBJECT_num wolfSSL_sk_num
|
---|
| 829 | #define sk_value wolfSSL_sk_value
|
---|
| 830 | #define sk_ASN1_OBJECT_value wolfSSL_sk_value
|
---|
| 831 |
|
---|
| 832 | #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio
|
---|
| 833 | #define d2i_PKCS12_fp wolfSSL_d2i_PKCS12_fp
|
---|
| 834 | #define i2d_PKCS12_bio wolfSSL_i2d_PKCS12_bio
|
---|
| 835 |
|
---|
| 836 | #define d2i_RSAPublicKey wolfSSL_d2i_RSAPublicKey
|
---|
| 837 | #define d2i_RSAPrivateKey wolfSSL_d2i_RSAPrivateKey
|
---|
| 838 | #define i2d_RSAPrivateKey wolfSSL_i2d_RSAPrivateKey
|
---|
| 839 | #define i2d_RSAPublicKey wolfSSL_i2d_RSAPublicKey
|
---|
| 840 |
|
---|
| 841 | #define SSL_CTX_get_ex_data wolfSSL_CTX_get_ex_data
|
---|
| 842 | #define SSL_CTX_set_ex_data wolfSSL_CTX_set_ex_data
|
---|
| 843 | #define SSL_CTX_sess_set_get_cb wolfSSL_CTX_sess_set_get_cb
|
---|
| 844 | #define SSL_CTX_sess_set_new_cb wolfSSL_CTX_sess_set_new_cb
|
---|
| 845 | #define SSL_CTX_sess_set_remove_cb wolfSSL_CTX_sess_set_remove_cb
|
---|
| 846 |
|
---|
| 847 | #define i2d_SSL_SESSION wolfSSL_i2d_SSL_SESSION
|
---|
| 848 | #define d2i_SSL_SESSION wolfSSL_d2i_SSL_SESSION
|
---|
| 849 | #define SSL_SESSION_set_timeout wolfSSL_SSL_SESSION_set_timeout
|
---|
| 850 | #define SSL_SESSION_get_timeout wolfSSL_SESSION_get_timeout
|
---|
| 851 | #define SSL_SESSION_get_time wolfSSL_SESSION_get_time
|
---|
| 852 |
|
---|
| 853 | #define SSL_CTX_get_ex_new_index wolfSSL_CTX_get_ex_new_index
|
---|
| 854 | #define PEM_read wolfSSL_PEM_read
|
---|
| 855 | #define PEM_write wolfSSL_PEM_write
|
---|
| 856 | #define PEM_get_EVP_CIPHER_INFO wolfSSL_PEM_get_EVP_CIPHER_INFO
|
---|
| 857 | #define PEM_do_header wolfSSL_PEM_do_header
|
---|
| 858 |
|
---|
| 859 | /*#if OPENSSL_API_COMPAT < 0x10100000L*/
|
---|
| 860 | #define CONF_modules_free()
|
---|
| 861 | #define ENGINE_cleanup()
|
---|
| 862 | #define HMAC_CTX_cleanup wolfSSL_HMAC_cleanup
|
---|
| 863 | #define SSL_CTX_need_tmp_RSA(ctx) 0
|
---|
| 864 | #define SSL_CTX_set_tmp_rsa(ctx,rsa) 1
|
---|
| 865 | #define SSL_need_tmp_RSA(ssl) 0
|
---|
| 866 | #define SSL_set_tmp_rsa(ssl,rsa) 1
|
---|
| 867 | /*#endif*/
|
---|
| 868 |
|
---|
| 869 | #define CONF_modules_unload(a)
|
---|
| 870 | #define CONF_get1_default_config_file wolfSSL_CONF_get1_default_config_file
|
---|
| 871 |
|
---|
| 872 | #define SSL_get_hit wolfSSL_session_reused
|
---|
| 873 |
|
---|
| 874 | /* yassl had set the default to be 500 */
|
---|
| 875 | #define SSL_get_default_timeout(ctx) 500
|
---|
| 876 |
|
---|
| 877 | #define DTLSv1_get_timeout(ssl, timeleft) wolfSSL_DTLSv1_get_timeout((ssl), (WOLFSSL_TIMEVAL*)(timeleft))
|
---|
| 878 | #define DTLSv1_handle_timeout wolfSSL_DTLSv1_handle_timeout
|
---|
| 879 | #define DTLSv1_set_initial_timeout_duration wolfSSL_DTLSv1_set_initial_timeout_duration
|
---|
| 880 |
|
---|
| 881 | #ifndef NO_WOLFSSL_STUB
|
---|
| 882 | #define SSL_CTX_set_current_time_cb(ssl, cb) ({ (void)ssl; (void)cb; })
|
---|
| 883 | #endif
|
---|
| 884 |
|
---|
| 885 | #define SSL_CTX_use_certificate wolfSSL_CTX_use_certificate
|
---|
| 886 | #define SSL_CTX_add1_chain_cert wolfSSL_CTX_add1_chain_cert
|
---|
| 887 | #define SSL_CTX_use_PrivateKey wolfSSL_CTX_use_PrivateKey
|
---|
| 888 | #define BIO_read_filename wolfSSL_BIO_read_filename
|
---|
| 889 | #define SSL_CTX_set_verify_depth wolfSSL_CTX_set_verify_depth
|
---|
| 890 | #define SSL_set_verify_depth wolfSSL_set_verify_depth
|
---|
| 891 | #define SSL_get_app_data wolfSSL_get_app_data
|
---|
| 892 | #define SSL_set_app_data wolfSSL_set_app_data
|
---|
| 893 | #define SHA1 wolfSSL_SHA1
|
---|
| 894 |
|
---|
| 895 | #define SSL_dup_CA_list wolfSSL_dup_CA_list
|
---|
| 896 |
|
---|
| 897 | #define sk_X509_NAME_find wolfSSL_sk_X509_NAME_find
|
---|
| 898 |
|
---|
| 899 | enum {
|
---|
| 900 | GEN_DNS = 0x02, /* ASN_DNS_TYPE */
|
---|
| 901 | GEN_EMAIL = 0x01, /* ASN_RFC822_TYPE */
|
---|
| 902 | GEN_URI = 0x06, /* ASN_URI_TYPE */
|
---|
| 903 | GEN_IPADD = 0x07,
|
---|
| 904 | GEN_RID = 0x08, /* Registered ID, not supported */
|
---|
| 905 | };
|
---|
| 906 |
|
---|
| 907 | #define PEM_read_bio_DHparams wolfSSL_PEM_read_bio_DHparams
|
---|
| 908 | #define PEM_read_bio_DSAparams wolfSSL_PEM_read_bio_DSAparams
|
---|
| 909 |
|
---|
| 910 | #if defined(OPENSSL_ALL) || defined(WOLFSSL_HAPROXY)
|
---|
| 911 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
| 912 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
| 913 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
| 914 | #define SSL_get_ciphers(x) wolfSSL_get_ciphers_compat(x)
|
---|
| 915 | #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
|
---|
| 916 | #define SSL_get_cipher_bits(s,np) \
|
---|
| 917 | wolfSSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)
|
---|
| 918 | #define sk_SSL_CIPHER_num wolfSSL_sk_SSL_CIPHER_num
|
---|
| 919 | #define sk_SSL_COMP_zero wolfSSL_sk_SSL_COMP_zero
|
---|
| 920 | #define sk_SSL_CIPHER_value wolfSSL_sk_SSL_CIPHER_value
|
---|
| 921 | #endif /* OPENSSL_ALL || WOLFSSL_HAPROXY */
|
---|
| 922 | #define sk_SSL_CIPHER_dup wolfSSL_sk_SSL_CIPHER_dup
|
---|
| 923 | #define sk_SSL_CIPHER_free wolfSSL_sk_SSL_CIPHER_free
|
---|
| 924 | #define sk_SSL_CIPHER_find wolfSSL_sk_SSL_CIPHER_find
|
---|
| 925 |
|
---|
| 926 | #if defined(OPENSSL_ALL) || defined(WOLFSSL_ASIO) || defined(WOLFSSL_HAPROXY) \
|
---|
| 927 | || defined(WOLFSSL_NGINX)
|
---|
| 928 | #include <wolfssl/openssl/pem.h>
|
---|
| 929 |
|
---|
| 930 | #define SSL_CTRL_CHAIN 88
|
---|
| 931 | #define GEN_IPADD 7
|
---|
| 932 | #define ERR_LIB_SSL 20
|
---|
| 933 | #define SSL_R_SHORT_READ 10
|
---|
| 934 | #define ERR_R_PEM_LIB 9
|
---|
| 935 | #define V_ASN1_IA5STRING 22
|
---|
| 936 | #define V_ASN1_UTF8STRING 12
|
---|
| 937 | #define SSL_CTRL_MODE 33
|
---|
| 938 |
|
---|
| 939 | #define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS 83
|
---|
| 940 |
|
---|
| 941 | #define SSL_CTX_clear_chain_certs(ctx) SSL_CTX_set0_chain(ctx,NULL)
|
---|
| 942 | #define d2i_RSAPrivateKey_bio wolfSSL_d2i_RSAPrivateKey_bio
|
---|
| 943 | #define SSL_CTX_use_RSAPrivateKey wolfSSL_CTX_use_RSAPrivateKey
|
---|
| 944 | #define d2i_PrivateKey_bio wolfSSL_d2i_PrivateKey_bio
|
---|
| 945 | #define BIO_new_bio_pair wolfSSL_BIO_new_bio_pair
|
---|
| 946 | #define SSL_get_verify_callback wolfSSL_get_verify_callback
|
---|
| 947 |
|
---|
| 948 | #define SSL_set_mode(ssl,op) wolfSSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
|
---|
| 949 |
|
---|
| 950 | #define SSL_CTX_use_certificate_ASN1 wolfSSL_CTX_use_certificate_ASN1
|
---|
| 951 | #define SSL_CTX_set0_chain(ctx,sk) \
|
---|
| 952 | wolfSSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))
|
---|
| 953 | #define SSL_CTX_get_app_data(ctx) wolfSSL_CTX_get_ex_data(ctx,0)
|
---|
| 954 | #define SSL_CTX_set_app_data(ctx,arg) wolfSSL_CTX_set_ex_data(ctx,0, \
|
---|
| 955 | (char *)(arg))
|
---|
| 956 | #endif /* OPENSSL_ALL || WOLFSSL_ASIO || WOLFSSL_HAPROXY */
|
---|
| 957 |
|
---|
| 958 | #define SSL_CTX_set_tmp_dh wolfSSL_CTX_set_tmp_dh
|
---|
| 959 |
|
---|
| 960 | #define TLSEXT_STATUSTYPE_ocsp 1
|
---|
| 961 |
|
---|
| 962 | #define SSL_set_options wolfSSL_set_options
|
---|
| 963 | #define SSL_get_options wolfSSL_get_options
|
---|
| 964 | #define SSL_clear_options wolfSSL_clear_options
|
---|
| 965 | #define SSL_set_tmp_dh wolfSSL_set_tmp_dh
|
---|
| 966 | #define SSL_clear_num_renegotiations wolfSSL_clear_num_renegotiations
|
---|
| 967 | #define SSL_total_renegotiations wolfSSL_total_renegotiations
|
---|
| 968 | #define SSL_num_renegotiations wolfSSL_num_renegotiations
|
---|
| 969 | #define SSL_renegotiate wolfSSL_Rehandshake
|
---|
| 970 | #define SSL_get_secure_renegotiation_support wolfSSL_SSL_get_secure_renegotiation_support
|
---|
| 971 | #define SSL_set_tlsext_debug_arg wolfSSL_set_tlsext_debug_arg
|
---|
| 972 | #define SSL_set_tlsext_status_type wolfSSL_set_tlsext_status_type
|
---|
| 973 | #define SSL_set_tlsext_status_exts wolfSSL_set_tlsext_status_exts
|
---|
| 974 | #define SSL_get_tlsext_status_ids wolfSSL_get_tlsext_status_ids
|
---|
| 975 | #define SSL_set_tlsext_status_ids wolfSSL_set_tlsext_status_ids
|
---|
| 976 | #define SSL_get_tlsext_status_ocsp_res wolfSSL_get_tlsext_status_ocsp_resp
|
---|
| 977 | #define SSL_set_tlsext_status_ocsp_res wolfSSL_set_tlsext_status_ocsp_resp
|
---|
| 978 | #define SSL_set_tlsext_status_ocsp_resp wolfSSL_set_tlsext_status_ocsp_resp
|
---|
| 979 | #define SSL_get_tlsext_status_ocsp_resp wolfSSL_get_tlsext_status_ocsp_resp
|
---|
| 980 |
|
---|
| 981 | #define SSL_CTX_add_extra_chain_cert wolfSSL_CTX_add_extra_chain_cert
|
---|
| 982 | #define SSL_CTX_get_read_ahead wolfSSL_CTX_get_read_ahead
|
---|
| 983 | #define SSL_CTX_set_read_ahead wolfSSL_CTX_set_read_ahead
|
---|
| 984 | #define SSL_CTX_set_tlsext_status_arg wolfSSL_CTX_set_tlsext_status_arg
|
---|
| 985 | #define SSL_CTX_set_tlsext_opaque_prf_input_callback_arg \
|
---|
| 986 | wolfSSL_CTX_set_tlsext_opaque_prf_input_callback_arg
|
---|
| 987 | #define SSL_get_server_random wolfSSL_get_server_random
|
---|
| 988 | #define SSL_get_server_tmp_key wolfSSL_get_server_tmp_key
|
---|
| 989 |
|
---|
| 990 | #define SSL_CTX_set_min_proto_version wolfSSL_CTX_set_min_proto_version
|
---|
| 991 | #define SSL_CTX_set_max_proto_version wolfSSL_CTX_set_max_proto_version
|
---|
| 992 |
|
---|
| 993 | #define SSL_get_tlsext_status_exts wolfSSL_get_tlsext_status_exts
|
---|
| 994 |
|
---|
| 995 | #define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS 11
|
---|
| 996 | #define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS 12
|
---|
| 997 | #define SSL_CTRL_SET_TMP_DH 3
|
---|
| 998 | #define SSL_CTRL_SET_TMP_ECDH 4
|
---|
| 999 | #define SSL_CTRL_SET_TLSEXT_DEBUG_ARG 57
|
---|
| 1000 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE 65
|
---|
| 1001 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS 66
|
---|
| 1002 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS 67
|
---|
| 1003 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS 68
|
---|
| 1004 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS 69
|
---|
| 1005 | #define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP 70
|
---|
| 1006 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP 71
|
---|
| 1007 |
|
---|
| 1008 | #define SSL_CTRL_EXTRA_CHAIN_CERT 14
|
---|
| 1009 | #define SSL_CTRL_OPTIONS 32
|
---|
| 1010 |
|
---|
| 1011 | #define SSL_CTRL_SET_SESS_CACHE_SIZE 42
|
---|
| 1012 | #define SSL_CTRL_GET_READ_AHEAD 40
|
---|
| 1013 | #define SSL_CTRL_SET_READ_AHEAD 41
|
---|
| 1014 |
|
---|
| 1015 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB 63
|
---|
| 1016 | #define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG 64
|
---|
| 1017 |
|
---|
| 1018 | #define SSL_CTRL_GET_EXTRA_CHAIN_CERTS 82
|
---|
| 1019 | #define SSL_CTRL_GET_SESSION_REUSED 0
|
---|
| 1020 |
|
---|
| 1021 | #define SSL_ctrl wolfSSL_ctrl
|
---|
| 1022 | #define SSL_CTX_ctrl wolfSSL_CTX_ctrl
|
---|
| 1023 | #define SSL_CTX_callback_ctrl wolfSSL_CTX_callback_ctrl
|
---|
| 1024 |
|
---|
| 1025 | #define SSL3_RANDOM_SIZE 32 /* same as RAN_LEN in internal.h */
|
---|
| 1026 |
|
---|
| 1027 | #define SSL2_VERSION 0x0002
|
---|
| 1028 | #define SSL3_VERSION 0x0300
|
---|
| 1029 | #define TLS1_VERSION 0x0301
|
---|
| 1030 | #define TLS1_1_VERSION 0x0302
|
---|
| 1031 | #define TLS1_2_VERSION 0x0303
|
---|
| 1032 | #define TLS1_3_VERSION 0x0304
|
---|
| 1033 | #define DTLS1_VERSION 0xFEFF
|
---|
| 1034 | #define DTLS1_2_VERSION 0xFEFD
|
---|
| 1035 |
|
---|
| 1036 | #if defined(HAVE_STUNNEL) || defined(WOLFSSL_NGINX) || defined(OPENSSL_EXTRA) \
|
---|
| 1037 | || defined(OPENSSL_ALL)
|
---|
| 1038 | #include <wolfssl/openssl/asn1.h>
|
---|
| 1039 |
|
---|
| 1040 | #define SSL23_ST_SR_CLNT_HELLO_A (0x210|0x2000)
|
---|
| 1041 | #define SSL3_ST_SR_CLNT_HELLO_A (0x110|0x2000)
|
---|
| 1042 |
|
---|
| 1043 | #define SSL3_AD_BAD_CERTIFICATE bad_certificate
|
---|
| 1044 | #define SSL_AD_BAD_CERTIFICATE SSL3_AD_BAD_CERTIFICATE
|
---|
| 1045 |
|
---|
| 1046 | #define ASN1_STRFLGS_ESC_MSB 4
|
---|
| 1047 |
|
---|
| 1048 | #define SSL_MAX_MASTER_KEY_LENGTH WOLFSSL_MAX_MASTER_KEY_LENGTH
|
---|
| 1049 |
|
---|
| 1050 | #define SSL_alert_desc_string_long wolfSSL_alert_desc_string_long
|
---|
| 1051 | #define SSL_alert_type_string_long wolfSSL_alert_type_string_long
|
---|
| 1052 | #define SSL_CIPHER_get_bits wolfSSL_CIPHER_get_bits
|
---|
| 1053 | #define sk_GENERAL_NAME_num wolfSSL_sk_GENERAL_NAME_num
|
---|
| 1054 | #define SSL_CTX_get_options wolfSSL_CTX_get_options
|
---|
| 1055 |
|
---|
| 1056 | #define SSL_CTX_flush_sessions wolfSSL_flush_sessions
|
---|
| 1057 | #define SSL_CTX_add_session wolfSSL_CTX_add_session
|
---|
| 1058 | #define SSL_version(x) wolfSSL_version ((WOLFSSL*) (x))
|
---|
| 1059 | #define SSL_get_state wolfSSL_get_state
|
---|
| 1060 | #define SSL_state_string_long wolfSSL_state_string_long
|
---|
| 1061 |
|
---|
| 1062 | #define GENERAL_NAME_new wolfSSL_GENERAL_NAME_new
|
---|
| 1063 | #define GENERAL_NAME_free wolfSSL_GENERAL_NAME_free
|
---|
| 1064 | #define sk_GENERAL_NAME_push wolfSSL_sk_GENERAL_NAME_push
|
---|
| 1065 | #define sk_GENERAL_NAME_value wolfSSL_sk_GENERAL_NAME_value
|
---|
| 1066 | #define SSL_SESSION_get_ex_data wolfSSL_SESSION_get_ex_data
|
---|
| 1067 | #define SSL_SESSION_set_ex_data wolfSSL_SESSION_set_ex_data
|
---|
| 1068 | #define SSL_SESSION_get_ex_new_index wolfSSL_SESSION_get_ex_new_index
|
---|
| 1069 | #define SSL_SESSION_get_id wolfSSL_SESSION_get_id
|
---|
| 1070 | #define SSL_SESSION_print wolfSSL_SESSION_print
|
---|
| 1071 | #define sk_GENERAL_NAME_pop_free wolfSSL_sk_GENERAL_NAME_pop_free
|
---|
| 1072 | #define sk_GENERAL_NAME_free wolfSSL_sk_GENERAL_NAME_free
|
---|
| 1073 | #define sk_ASN1_OBJECT_pop_free wolfSSL_sk_ASN1_OBJECT_pop_free
|
---|
| 1074 | #define GENERAL_NAME_free wolfSSL_GENERAL_NAME_free
|
---|
| 1075 | #define GENERAL_NAMES_free wolfSSL_GENERAL_NAMES_free
|
---|
| 1076 |
|
---|
| 1077 | #define AUTHORITY_INFO_ACCESS_free wolfSSL_AUTHORITY_INFO_ACCESS_free
|
---|
| 1078 | #define sk_ACCESS_DESCRIPTION_pop_free wolfSSL_sk_ACCESS_DESCRIPTION_pop_free
|
---|
| 1079 | #define sk_ACCESS_DESCRIPTION_free wolfSSL_sk_ACCESS_DESCRIPTION_free
|
---|
| 1080 | #define ACCESS_DESCRIPTION_free wolfSSL_ACCESS_DESCRIPTION_free
|
---|
| 1081 |
|
---|
| 1082 | #define SSL3_AL_FATAL 2
|
---|
| 1083 | #define SSL_TLSEXT_ERR_OK 0
|
---|
| 1084 | #define SSL_TLSEXT_ERR_ALERT_FATAL alert_fatal
|
---|
| 1085 | #define SSL_TLSEXT_ERR_NOACK alert_warning
|
---|
| 1086 | #define TLSEXT_NAMETYPE_host_name WOLFSSL_SNI_HOST_NAME
|
---|
| 1087 |
|
---|
| 1088 | #define SSL_set_tlsext_host_name wolfSSL_set_tlsext_host_name
|
---|
| 1089 | #define SSL_get_servername wolfSSL_get_servername
|
---|
| 1090 | #define SSL_set_SSL_CTX wolfSSL_set_SSL_CTX
|
---|
| 1091 | #define SSL_CTX_get_verify_callback wolfSSL_CTX_get_verify_callback
|
---|
| 1092 | #define SSL_CTX_set_tlsext_servername_callback wolfSSL_CTX_set_tlsext_servername_callback
|
---|
| 1093 | #define SSL_CTX_set_tlsext_servername_arg wolfSSL_CTX_set_servername_arg
|
---|
| 1094 |
|
---|
| 1095 | #define PSK_MAX_PSK_LEN 256
|
---|
| 1096 | #define PSK_MAX_IDENTITY_LEN 128
|
---|
| 1097 | #define SSL_CTX_clear_options wolfSSL_CTX_clear_options
|
---|
| 1098 |
|
---|
| 1099 |
|
---|
| 1100 | #endif /* HAVE_STUNNEL || WOLFSSL_NGINX */
|
---|
| 1101 | #define SSL_CTX_get_default_passwd_cb wolfSSL_CTX_get_default_passwd_cb
|
---|
| 1102 | #define SSL_CTX_get_default_passwd_cb_userdata wolfSSL_CTX_get_default_passwd_cb_userdata
|
---|
| 1103 |
|
---|
| 1104 | #define SSL_CTX_set_msg_callback wolfSSL_CTX_set_msg_callback
|
---|
| 1105 | #define SSL_set_msg_callback wolfSSL_set_msg_callback
|
---|
| 1106 | #define SSL_CTX_set_msg_callback_arg wolfSSL_CTX_set_msg_callback_arg
|
---|
| 1107 | #define SSL_set_msg_callback_arg wolfSSL_set_msg_callback_arg
|
---|
| 1108 |
|
---|
| 1109 | #define SSL_CTX_clear_extra_chain_certs wolfSSL_CTX_clear_extra_chain_certs
|
---|
| 1110 |
|
---|
| 1111 |
|
---|
| 1112 | /* Nginx uses this to determine if reached end of certs in file.
|
---|
| 1113 | * PEM_read_bio_X509 is called and the return error is lost.
|
---|
| 1114 | * The error that needs to be detected is: SSL_NO_PEM_HEADER.
|
---|
| 1115 | */
|
---|
| 1116 | #define ERR_GET_FUNC(l) (int)((((unsigned long)l) >> 12L) & 0xfffL)
|
---|
| 1117 |
|
---|
| 1118 | #define PEM_F_PEM_DEF_CALLBACK 100
|
---|
| 1119 |
|
---|
| 1120 | /* Avoid wolfSSL error code range */
|
---|
| 1121 | #define PEM_R_NO_START_LINE (-MIN_CODE_E + 1)
|
---|
| 1122 | #define PEM_R_PROBLEMS_GETTING_PASSWORD (-MIN_CODE_E + 2)
|
---|
| 1123 | #define PEM_R_BAD_PASSWORD_READ (-MIN_CODE_E + 3)
|
---|
| 1124 | #define PEM_R_BAD_DECRYPT (-MIN_CODE_E + 4)
|
---|
| 1125 |
|
---|
| 1126 | #define ERR_LIB_PEM 9
|
---|
| 1127 | #define ERR_LIB_X509 10
|
---|
| 1128 | #define ERR_LIB_EVP 11
|
---|
| 1129 | #define ERR_LIB_ASN1 12
|
---|
| 1130 |
|
---|
| 1131 | #if defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY) || \
|
---|
| 1132 | defined(WOLFSSL_MYSQL_COMPATIBLE) || defined(OPENSSL_ALL) || \
|
---|
| 1133 | defined(HAVE_LIGHTY)
|
---|
| 1134 |
|
---|
| 1135 | #include <wolfssl/error-ssl.h>
|
---|
| 1136 |
|
---|
| 1137 | #define OPENSSL_STRING WOLFSSL_STRING
|
---|
| 1138 |
|
---|
| 1139 | #define TLSEXT_TYPE_application_layer_protocol_negotiation 16
|
---|
| 1140 |
|
---|
| 1141 | #define OPENSSL_NPN_UNSUPPORTED 0
|
---|
| 1142 | #define OPENSSL_NPN_NEGOTIATED 1
|
---|
| 1143 | #define OPENSSL_NPN_NO_OVERLAP 2
|
---|
| 1144 |
|
---|
| 1145 | /* Nginx checks these to see if the error was a handshake error. */
|
---|
| 1146 | #define SSL_R_BAD_CHANGE_CIPHER_SPEC LENGTH_ERROR
|
---|
| 1147 | #define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG BUFFER_E
|
---|
| 1148 | #define SSL_R_DIGEST_CHECK_FAILED VERIFY_MAC_ERROR
|
---|
| 1149 | #define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST SUITES_ERROR
|
---|
| 1150 | #define SSL_R_EXCESSIVE_MESSAGE_SIZE BUFFER_ERROR
|
---|
| 1151 | #define SSL_R_LENGTH_MISMATCH LENGTH_ERROR
|
---|
| 1152 | #define SSL_R_NO_CIPHERS_SPECIFIED SUITES_ERROR
|
---|
| 1153 | #define SSL_R_NO_COMPRESSION_SPECIFIED COMPRESSION_ERROR
|
---|
| 1154 | #define SSL_R_NO_SHARED_CIPHER MATCH_SUITE_ERROR
|
---|
| 1155 | #define SSL_R_RECORD_LENGTH_MISMATCH HANDSHAKE_SIZE_ERROR
|
---|
| 1156 | #define SSL_R_UNEXPECTED_MESSAGE OUT_OF_ORDER_E
|
---|
| 1157 | #define SSL_R_UNEXPECTED_RECORD SANITY_MSG_E
|
---|
| 1158 | #define SSL_R_UNKNOWN_ALERT_TYPE BUFFER_ERROR
|
---|
| 1159 | #define SSL_R_UNKNOWN_PROTOCOL VERSION_ERROR
|
---|
| 1160 | #define SSL_R_WRONG_VERSION_NUMBER VERSION_ERROR
|
---|
| 1161 | #define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC ENCRYPT_ERROR
|
---|
| 1162 | #define SSL_R_HTTPS_PROXY_REQUEST PARSE_ERROR
|
---|
| 1163 | #define SSL_R_HTTP_REQUEST PARSE_ERROR
|
---|
| 1164 | #define SSL_R_UNSUPPORTED_PROTOCOL VERSION_ERROR
|
---|
| 1165 |
|
---|
| 1166 |
|
---|
| 1167 | #ifdef HAVE_SESSION_TICKET
|
---|
| 1168 | #define SSL_OP_NO_TICKET SSL_OP_NO_TICKET
|
---|
| 1169 | #define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB 72
|
---|
| 1170 | #endif
|
---|
| 1171 |
|
---|
| 1172 | #define OPENSSL_config wolfSSL_OPENSSL_config
|
---|
| 1173 | #define OPENSSL_memdup wolfSSL_OPENSSL_memdup
|
---|
| 1174 | #define SSL_CTX_get_timeout wolfSSL_SSL_CTX_get_timeout
|
---|
| 1175 | #define SSL_CTX_set_tmp_ecdh wolfSSL_SSL_CTX_set_tmp_ecdh
|
---|
| 1176 | #define SSL_CTX_remove_session wolfSSL_SSL_CTX_remove_session
|
---|
| 1177 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
| 1178 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
| 1179 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
| 1180 | #define SSL_in_init wolfSSL_SSL_in_init
|
---|
| 1181 | #define SSL_in_connect_init wolfSSL_SSL_in_connect_init
|
---|
| 1182 | #define SSL_get0_session wolfSSL_SSL_get0_session
|
---|
| 1183 | #define SSL_CTX_set_tlsext_ticket_key_cb wolfSSL_CTX_set_tlsext_ticket_key_cb
|
---|
| 1184 | #define SSL_CTX_set_tlsext_status_cb wolfSSL_CTX_set_tlsext_status_cb
|
---|
| 1185 | #define SSL_CTX_get_extra_chain_certs wolfSSL_CTX_get_extra_chain_certs
|
---|
| 1186 | #define sk_OPENSSL_STRING_value wolfSSL_sk_WOLFSSL_STRING_value
|
---|
| 1187 | #define SSL_get0_alpn_selected wolfSSL_get0_alpn_selected
|
---|
| 1188 | #define SSL_select_next_proto wolfSSL_select_next_proto
|
---|
| 1189 | #define SSL_CTX_set_alpn_select_cb wolfSSL_CTX_set_alpn_select_cb
|
---|
| 1190 | #define SSL_CTX_set_next_protos_advertised_cb wolfSSL_CTX_set_next_protos_advertised_cb
|
---|
| 1191 | #define SSL_CTX_set_next_proto_select_cb wolfSSL_CTX_set_next_proto_select_cb
|
---|
| 1192 | #define SSL_set_alpn_protos wolfSSL_set_alpn_protos
|
---|
| 1193 | #define SSL_get0_next_proto_negotiated wolfSSL_get0_next_proto_negotiated
|
---|
| 1194 | #define SSL_is_server wolfSSL_is_server
|
---|
| 1195 |
|
---|
| 1196 | #endif /* WOLFSSL_NGINX || WOLFSSL_HAPROXY || WOLFSSL_MYSQL_COMPATIBLE ||
|
---|
| 1197 | OPENSSL_ALL || HAVE_LIGHTY */
|
---|
| 1198 |
|
---|
| 1199 | #if defined(OPENSSL_EXTRA) && defined(HAVE_ECC)
|
---|
| 1200 | #define SSL_CTX_set1_curves_list wolfSSL_CTX_set1_curves_list
|
---|
| 1201 | #define SSL_set1_curves_list wolfSSL_set1_curves_list
|
---|
| 1202 | #endif
|
---|
| 1203 |
|
---|
| 1204 | #ifdef OPENSSL_EXTRA
|
---|
| 1205 | #define SSL_CTX_add_client_CA wolfSSL_CTX_add_client_CA
|
---|
| 1206 | #define SSL_CTX_set_srp_password wolfSSL_CTX_set_srp_password
|
---|
| 1207 | #define SSL_CTX_set_srp_username wolfSSL_CTX_set_srp_username
|
---|
| 1208 | #define SSL_get_SSL_CTX wolfSSL_get_SSL_CTX
|
---|
| 1209 | #define SSL_get0_param wolfSSL_get0_param
|
---|
| 1210 |
|
---|
| 1211 | #define ERR_NUM_ERRORS 16
|
---|
| 1212 | #define SN_pkcs9_emailAddress "Email"
|
---|
| 1213 | #define LN_pkcs9_emailAddress "emailAddress"
|
---|
| 1214 | #define NID_pkcs9_emailAddress 48
|
---|
| 1215 | #define OBJ_pkcs9_emailAddress 1L,2L,840L,113539L,1L,9L,1L
|
---|
| 1216 |
|
---|
| 1217 | #define SSL_get_rbio wolfSSL_SSL_get_rbio
|
---|
| 1218 | #define SSL_get_wbio wolfSSL_SSL_get_wbio
|
---|
| 1219 | #define SSL_do_handshake wolfSSL_SSL_do_handshake
|
---|
| 1220 | #endif /* OPENSSL_EXTRA */
|
---|
| 1221 |
|
---|
| 1222 | /* cipher suites for compatibility */
|
---|
| 1223 | #define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA (0xc013)
|
---|
| 1224 | #define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA (0xc014)
|
---|
| 1225 | #define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (0xc02f)
|
---|
| 1226 | #define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (0xcca8)
|
---|
| 1227 | #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (0xc009)
|
---|
| 1228 | #define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0xc00a)
|
---|
| 1229 | #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0xc02b)
|
---|
| 1230 | #define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 (0xcca9)
|
---|
| 1231 |
|
---|
| 1232 | #define X509_STORE_get0_objects wolfSSL_X509_STORE_get0_objects
|
---|
| 1233 | #define sk_X509_OBJECT_num wolfSSL_sk_X509_OBJECT_num
|
---|
| 1234 | #define sk_X509_OBJECT_value wolfSSL_sk_X509_OBJECT_value
|
---|
| 1235 | #define sk_X509_OBJECT_delete wolfSSL_sk_X509_OBJECT_delete
|
---|
| 1236 | #define X509_OBJECT_free wolfSSL_X509_OBJECT_free
|
---|
| 1237 | #define X509_OBJECT_get_type(x) 0
|
---|
| 1238 |
|
---|
| 1239 | #define OpenSSL_version(x) wolfSSL_lib_version()
|
---|
| 1240 |
|
---|
| 1241 | #ifdef __cplusplus
|
---|
| 1242 | } /* extern "C" */
|
---|
| 1243 | #endif
|
---|
| 1244 |
|
---|
| 1245 | #endif /* wolfSSL_openssl_h__ */
|
---|