latest
This commit is contained in:
parent
d3acb121ff
commit
0957d275b3
@ -60,6 +60,7 @@ EXTRA_DIST+= README.md
|
||||
EXTRA_DIST+= LICENSING
|
||||
|
||||
include cyassl/include.am
|
||||
include wolfssl/include.am
|
||||
include certs/include.am
|
||||
include certs/1024/include.am
|
||||
include certs/crl/include.am
|
||||
|
@ -21,6 +21,11 @@
|
||||
|
||||
/* CTaoCrypt benchmark */
|
||||
|
||||
|
||||
/* wolfssl_cyassl compatibility layer */
|
||||
#include <cyassl/ssl.h>
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
@ -19,6 +19,9 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
/* wolfssl_cyassl compatibility layer */
|
||||
#include <cyassl/ssl.h>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
@ -26,6 +26,718 @@
|
||||
#ifndef CTAO_CRYPT_SETTINGS_H
|
||||
#define CTAO_CRYPT_SETTINGS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Uncomment next line if using IPHONE */
|
||||
/* #define IPHONE */
|
||||
|
||||
/* Uncomment next line if using ThreadX */
|
||||
/* #define THREADX */
|
||||
|
||||
/* Uncomment next line if using Micrium ucOS */
|
||||
/* #define MICRIUM */
|
||||
|
||||
/* Uncomment next line if using Mbed */
|
||||
/* #define MBED */
|
||||
|
||||
/* Uncomment next line if using Microchip PIC32 ethernet starter kit */
|
||||
/* #define MICROCHIP_PIC32 */
|
||||
|
||||
/* Uncomment next line if using Microchip TCP/IP stack, version 5 */
|
||||
/* #define MICROCHIP_TCPIP_V5 */
|
||||
|
||||
/* Uncomment next line if using Microchip TCP/IP stack, version 6 or later */
|
||||
/* #define MICROCHIP_TCPIP */
|
||||
|
||||
/* Uncomment next line if using PIC32MZ Crypto Engine */
|
||||
/* #define CYASSL_MICROCHIP_PIC32MZ */
|
||||
|
||||
/* Uncomment next line if using FreeRTOS */
|
||||
/* #define FREERTOS */
|
||||
|
||||
/* Uncomment next line if using FreeRTOS Windows Simulator */
|
||||
/* #define FREERTOS_WINSIM */
|
||||
|
||||
/* Uncomment next line if using RTIP */
|
||||
/* #define EBSNET */
|
||||
|
||||
/* Uncomment next line if using lwip */
|
||||
/* #define CYASSL_LWIP */
|
||||
|
||||
/* Uncomment next line if building CyaSSL for a game console */
|
||||
/* #define CYASSL_GAME_BUILD */
|
||||
|
||||
/* Uncomment next line if building CyaSSL for LSR */
|
||||
/* #define CYASSL_LSR */
|
||||
|
||||
/* Uncomment next line if building CyaSSL for Freescale MQX/RTCS/MFS */
|
||||
/* #define FREESCALE_MQX */
|
||||
|
||||
/* Uncomment next line if using STM32F2 */
|
||||
/* #define CYASSL_STM32F2 */
|
||||
|
||||
/* Uncomment next line if using Comverge settings */
|
||||
/* #define COMVERGE */
|
||||
|
||||
/* Uncomment next line if using QL SEP settings */
|
||||
/* #define CYASSL_QL */
|
||||
|
||||
/* Uncomment next line if building for EROAD */
|
||||
/* #define CYASSL_EROAD */
|
||||
|
||||
/* Uncomment next line if building for IAR EWARM */
|
||||
/* #define CYASSL_IAR_ARM */
|
||||
|
||||
/* Uncomment next line if using TI-RTOS settings */
|
||||
/* #define CYASSL_TIRTOS */
|
||||
|
||||
/* Uncomment next line if building with PicoTCP */
|
||||
/* #define CYASSL_PICOTCP */
|
||||
|
||||
/* Uncomment next line if building for PicoTCP demo bundle */
|
||||
/* #define CYASSL_PICOTCP_DEMO */
|
||||
|
||||
#include <cyassl/ctaocrypt/visibility.h>
|
||||
#include <wolfssl/wolfcrypt/settings.h>
|
||||
|
||||
#ifdef IPHONE
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CYASSL_USER_SETTINGS
|
||||
#include <user_settings.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef COMVERGE
|
||||
#define THREADX
|
||||
#define HAVE_NETX
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_WRITEV
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#define NO_SHA512
|
||||
#define NO_DH
|
||||
#define NO_DSA
|
||||
#define NO_HC128
|
||||
#define NO_RSA
|
||||
#define NO_SESSION_CACHE
|
||||
#define HAVE_ECC
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef THREADX
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_NETX
|
||||
#include "nx_api.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_LWIP_NATIVE) /* using LwIP native TCP socket */
|
||||
#define CYASSL_LWIP
|
||||
#define NO_WRITEV
|
||||
#define SINGLE_THREADED
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_FILESYSTEM
|
||||
#endif
|
||||
|
||||
#if defined(CYASSL_IAR_ARM)
|
||||
#define NO_MAIN_DRIVER
|
||||
#define SINGLE_THREADED
|
||||
#define USE_CERT_BUFFERS_1024
|
||||
#define BENCH_EMBEDDED
|
||||
#define NO_FILESYSTEM
|
||||
#define NO_WRITEV
|
||||
#define CYASSL_USER_IO
|
||||
#define BENCH_EMBEDDED
|
||||
#endif
|
||||
|
||||
#ifdef MICROCHIP_PIC32
|
||||
/* #define CYASSL_MICROCHIP_PIC32MZ */
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define SINGLE_THREADED
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_WRITEV
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_MICROCHIP_PIC32MZ
|
||||
#define CYASSL_PIC32MZ_CE
|
||||
#define CYASSL_PIC32MZ_CRYPT
|
||||
#define HAVE_AES_ENGINE
|
||||
#define CYASSL_PIC32MZ_RNG
|
||||
/* #define CYASSL_PIC32MZ_HASH */
|
||||
#define CYASSL_AES_COUNTER
|
||||
#define HAVE_AESGCM
|
||||
#define NO_BIG_INT
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef MICROCHIP_TCPIP_V5
|
||||
/* include timer functions */
|
||||
#include "TCPIP Stack/TCPIP.h"
|
||||
#endif
|
||||
|
||||
#ifdef MICROCHIP_TCPIP
|
||||
/* include timer, NTP functions */
|
||||
#ifdef MICROCHIP_MPLAB_HARMONY
|
||||
#include "tcpip/tcpip.h"
|
||||
#else
|
||||
#include "system/system_services.h"
|
||||
#include "tcpip/sntp.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef MBED
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_FILESYSTEM
|
||||
#define NO_CERT
|
||||
#define USE_CERT_BUFFERS_1024
|
||||
#define NO_WRITEV
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_SHA512
|
||||
#define NO_DH
|
||||
#define NO_DSA
|
||||
#define NO_HC128
|
||||
#define HAVE_ECC
|
||||
#define NO_SESSION_CACHE
|
||||
#define CYASSL_CMSIS_RTOS
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef CYASSL_EROAD
|
||||
#define FREESCALE_MQX
|
||||
#define FREESCALE_MMCAU
|
||||
#define SINGLE_THREADED
|
||||
#define NO_STDIO_FILESYSTEM
|
||||
#define CYASSL_LEANPSK
|
||||
#define HAVE_NULL_CIPHER
|
||||
#define NO_OLD_TLS
|
||||
#define NO_ASN
|
||||
#define NO_BIG_INT
|
||||
#define NO_RSA
|
||||
#define NO_DSA
|
||||
#define NO_DH
|
||||
#define NO_CERTS
|
||||
#define NO_PWDBASED
|
||||
#define NO_DES3
|
||||
#define NO_MD4
|
||||
#define NO_RC4
|
||||
#define NO_MD5
|
||||
#define NO_SESSION_CACHE
|
||||
#define NO_MAIN_DRIVER
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_PICOTCP
|
||||
#define errno pico_err
|
||||
#include "pico_defines.h"
|
||||
#include "pico_stack.h"
|
||||
#include "pico_constants.h"
|
||||
#define CUSTOM_RAND_GENERATE pico_rand
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_PICOTCP_DEMO
|
||||
#define CYASSL_STM32
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define XMALLOC(s, h, type) PICO_ZALLOC((s))
|
||||
#define XFREE(p, h, type) PICO_FREE((p))
|
||||
#define SINGLE_THREADED
|
||||
#define NO_WRITEV
|
||||
#define CYASSL_USER_IO
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#endif
|
||||
|
||||
#ifdef FREERTOS_WINSIM
|
||||
#define FREERTOS
|
||||
#define USE_WINDOWS_API
|
||||
#endif
|
||||
|
||||
|
||||
/* Micrium will use Visual Studio for compilation but not the Win32 API */
|
||||
#if defined(_WIN32) && !defined(MICRIUM) && !defined(FREERTOS) \
|
||||
&& !defined(EBSNET) && !defined(CYASSL_EROAD)
|
||||
#define USE_WINDOWS_API
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(CYASSL_LEANPSK) && !defined(XMALLOC_USER)
|
||||
#include <stdlib.h>
|
||||
#define XMALLOC(s, h, type) malloc((s))
|
||||
#define XFREE(p, h, type) free((p))
|
||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
||||
#endif
|
||||
|
||||
#if defined(XMALLOC_USER) && defined(SSN_BUILDING_LIBYASSL)
|
||||
#undef XMALLOC
|
||||
#define XMALLOC yaXMALLOC
|
||||
#undef XFREE
|
||||
#define XFREE yaXFREE
|
||||
#undef XREALLOC
|
||||
#define XREALLOC yaXREALLOC
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef FREERTOS
|
||||
#ifndef NO_WRITEV
|
||||
#define NO_WRITEV
|
||||
#endif
|
||||
#ifndef NO_SHA512
|
||||
#define NO_SHA512
|
||||
#endif
|
||||
#ifndef NO_DH
|
||||
#define NO_DH
|
||||
#endif
|
||||
#ifndef NO_DSA
|
||||
#define NO_DSA
|
||||
#endif
|
||||
#ifndef NO_HC128
|
||||
#define NO_HC128
|
||||
#endif
|
||||
|
||||
#ifndef SINGLE_THREADED
|
||||
#include "FreeRTOS.h"
|
||||
#include "semphr.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_TIRTOS
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define NO_WRITEV
|
||||
#define NO_CYASSL_DIR
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_FILESYSTEM
|
||||
#define USE_CERT_BUFFERS_2048
|
||||
#define NO_ERROR_STRINGS
|
||||
#define USER_TIME
|
||||
|
||||
#ifdef __IAR_SYSTEMS_ICC__
|
||||
#pragma diag_suppress=Pa089
|
||||
#elif !defined(__GNUC__)
|
||||
/* Suppress the sslpro warning */
|
||||
#pragma diag_suppress=11
|
||||
#endif
|
||||
|
||||
#include <ti/ndk/nettools/mytime/mytime.h>
|
||||
#endif
|
||||
|
||||
#ifdef EBSNET
|
||||
#include "rtip.h"
|
||||
|
||||
/* #define DEBUG_CYASSL */
|
||||
#define NO_CYASSL_DIR /* tbd */
|
||||
|
||||
#if (POLLOS)
|
||||
#define SINGLE_THREADED
|
||||
#endif
|
||||
|
||||
#if (RTPLATFORM)
|
||||
#if (!RTP_LITTLE_ENDIAN)
|
||||
#define BIG_ENDIAN_ORDER
|
||||
#endif
|
||||
#else
|
||||
#if (!KS_LITTLE_ENDIAN)
|
||||
#define BIG_ENDIAN_ORDER
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (WINMSP3)
|
||||
#undef SIZEOF_LONG
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#else
|
||||
#sslpro: settings.h - please implement SIZEOF_LONG and SIZEOF_LONG_LONG
|
||||
#endif
|
||||
|
||||
#define XMALLOC(s, h, type) ((void *)rtp_malloc((s), SSL_PRO_MALLOC))
|
||||
#define XFREE(p, h, type) (rtp_free(p))
|
||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
||||
|
||||
#endif /* EBSNET */
|
||||
|
||||
#ifdef CYASSL_GAME_BUILD
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#if defined(__PPU) || defined(__XENON)
|
||||
#define BIG_ENDIAN_ORDER
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_LSR
|
||||
#define HAVE_WEBSERVER
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define CYASSL_LOW_MEMORY
|
||||
#define NO_WRITEV
|
||||
#define NO_SHA512
|
||||
#define NO_DH
|
||||
#define NO_DSA
|
||||
#define NO_HC128
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_CYASSL_DIR
|
||||
#define NO_RABBIT
|
||||
#ifndef NO_FILESYSTEM
|
||||
#define LSR_FS
|
||||
#include "inc/hw_types.h"
|
||||
#include "fs.h"
|
||||
#endif
|
||||
#define CYASSL_LWIP
|
||||
#include <errno.h> /* for tcp errno */
|
||||
#define CYASSL_SAFERTOS
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
/* enum uses enum */
|
||||
#pragma diag_suppress=Pa089
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_SAFERTOS
|
||||
#ifndef SINGLE_THREADED
|
||||
#include "SafeRTOS/semphr.h"
|
||||
#endif
|
||||
|
||||
#include "SafeRTOS/heap.h"
|
||||
#define XMALLOC(s, h, type) pvPortMalloc((s))
|
||||
#define XFREE(p, h, type) vPortFree((p))
|
||||
#define XREALLOC(p, n, h, t) pvPortRealloc((p), (n))
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_LOW_MEMORY
|
||||
#undef RSA_LOW_MEM
|
||||
#define RSA_LOW_MEM
|
||||
#undef CYASSL_SMALL_STACK
|
||||
#define CYASSL_SMALL_STACK
|
||||
#undef TFM_TIMING_RESISTANT
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#endif
|
||||
|
||||
#ifdef FREESCALE_MQX
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define NO_WRITEV
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_RABBIT
|
||||
#define NO_CYASSL_DIR
|
||||
#define USE_FAST_MATH
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#define FREESCALE_K70_RNGA
|
||||
/* #define FREESCALE_K53_RNGB */
|
||||
#include "mqx.h"
|
||||
#ifndef NO_FILESYSTEM
|
||||
#include "mfs.h"
|
||||
#include "fio.h"
|
||||
#endif
|
||||
#ifndef SINGLE_THREADED
|
||||
#include "mutex.h"
|
||||
#endif
|
||||
|
||||
#define XMALLOC(s, h, t) (void *)_mem_alloc_system((s))
|
||||
#define XFREE(p, h, t) {void* xp = (p); if ((xp)) _mem_free((xp));}
|
||||
/* Note: MQX has no realloc, using fastmath above */
|
||||
#endif
|
||||
|
||||
#ifdef CYASSL_STM32F2
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define NO_DEV_RANDOM
|
||||
#define NO_CYASSL_DIR
|
||||
#define NO_RABBIT
|
||||
#define STM32F2_RNG
|
||||
#define STM32F2_CRYPTO
|
||||
#define KEIL_INTRINSICS
|
||||
#endif
|
||||
|
||||
#ifdef MICRIUM
|
||||
|
||||
#include "stdlib.h"
|
||||
#include "net_cfg.h"
|
||||
#include "ssl_cfg.h"
|
||||
#include "net_secure_os.h"
|
||||
|
||||
#define CYASSL_TYPES
|
||||
|
||||
typedef CPU_INT08U byte;
|
||||
typedef CPU_INT16U word16;
|
||||
typedef CPU_INT32U word32;
|
||||
|
||||
#if (NET_SECURE_MGR_CFG_WORD_SIZE == CPU_WORD_SIZE_32)
|
||||
#define SIZEOF_LONG 4
|
||||
#undef SIZEOF_LONG_LONG
|
||||
#else
|
||||
#undef SIZEOF_LONG
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#endif
|
||||
|
||||
#define STRING_USER
|
||||
|
||||
#define XSTRLEN(pstr) ((CPU_SIZE_T)Str_Len((CPU_CHAR *)(pstr)))
|
||||
#define XSTRNCPY(pstr_dest, pstr_src, len_max) \
|
||||
((CPU_CHAR *)Str_Copy_N((CPU_CHAR *)(pstr_dest), \
|
||||
(CPU_CHAR *)(pstr_src), (CPU_SIZE_T)(len_max)))
|
||||
#define XSTRNCMP(pstr_1, pstr_2, len_max) \
|
||||
((CPU_INT16S)Str_Cmp_N((CPU_CHAR *)(pstr_1), \
|
||||
(CPU_CHAR *)(pstr_2), (CPU_SIZE_T)(len_max)))
|
||||
#define XSTRSTR(pstr, pstr_srch) \
|
||||
((CPU_CHAR *)Str_Str((CPU_CHAR *)(pstr), \
|
||||
(CPU_CHAR *)(pstr_srch)))
|
||||
#define XMEMSET(pmem, data_val, size) \
|
||||
((void)Mem_Set((void *)(pmem), (CPU_INT08U) (data_val), \
|
||||
(CPU_SIZE_T)(size)))
|
||||
#define XMEMCPY(pdest, psrc, size) ((void)Mem_Copy((void *)(pdest), \
|
||||
(void *)(psrc), (CPU_SIZE_T)(size)))
|
||||
#define XMEMCMP(pmem_1, pmem_2, size) \
|
||||
(((CPU_BOOLEAN)Mem_Cmp((void *)(pmem_1), (void *)(pmem_2), \
|
||||
(CPU_SIZE_T)(size))) ? DEF_NO : DEF_YES)
|
||||
#define XMEMMOVE XMEMCPY
|
||||
|
||||
#if (NET_SECURE_MGR_CFG_EN == DEF_ENABLED)
|
||||
#define MICRIUM_MALLOC
|
||||
#define XMALLOC(s, h, type) ((void *)NetSecure_BlkGet((CPU_INT08U)(type), \
|
||||
(CPU_SIZE_T)(s), (void *)0))
|
||||
#define XFREE(p, h, type) (NetSecure_BlkFree((CPU_INT08U)(type), \
|
||||
(p), (void *)0))
|
||||
#define XREALLOC(p, n, h, t) realloc((p), (n))
|
||||
#endif
|
||||
|
||||
#if (NET_SECURE_MGR_CFG_FS_EN == DEF_ENABLED)
|
||||
#undef NO_FILESYSTEM
|
||||
#else
|
||||
#define NO_FILESYSTEM
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_TRACE_LEVEL == CYASSL_TRACE_LEVEL_DBG)
|
||||
#define DEBUG_CYASSL
|
||||
#else
|
||||
#undef DEBUG_CYASSL
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_OPENSSL_EN == DEF_ENABLED)
|
||||
#define OPENSSL_EXTRA
|
||||
#else
|
||||
#undef OPENSSL_EXTRA
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_MULTI_THREAD_EN == DEF_ENABLED)
|
||||
#undef SINGLE_THREADED
|
||||
#else
|
||||
#define SINGLE_THREADED
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_DH_EN == DEF_ENABLED)
|
||||
#undef NO_DH
|
||||
#else
|
||||
#define NO_DH
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_DSA_EN == DEF_ENABLED)
|
||||
#undef NO_DSA
|
||||
#else
|
||||
#define NO_DSA
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_PSK_EN == DEF_ENABLED)
|
||||
#undef NO_PSK
|
||||
#else
|
||||
#define NO_PSK
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_3DES_EN == DEF_ENABLED)
|
||||
#undef NO_DES
|
||||
#else
|
||||
#define NO_DES
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_AES_EN == DEF_ENABLED)
|
||||
#undef NO_AES
|
||||
#else
|
||||
#define NO_AES
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_RC4_EN == DEF_ENABLED)
|
||||
#undef NO_RC4
|
||||
#else
|
||||
#define NO_RC4
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_RABBIT_EN == DEF_ENABLED)
|
||||
#undef NO_RABBIT
|
||||
#else
|
||||
#define NO_RABBIT
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_HC128_EN == DEF_ENABLED)
|
||||
#undef NO_HC128
|
||||
#else
|
||||
#define NO_HC128
|
||||
#endif
|
||||
|
||||
#if (CPU_CFG_ENDIAN_TYPE == CPU_ENDIAN_TYPE_BIG)
|
||||
#define BIG_ENDIAN_ORDER
|
||||
#else
|
||||
#undef BIG_ENDIAN_ORDER
|
||||
#define LITTLE_ENDIAN_ORDER
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_MD4_EN == DEF_ENABLED)
|
||||
#undef NO_MD4
|
||||
#else
|
||||
#define NO_MD4
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_WRITEV_EN == DEF_ENABLED)
|
||||
#undef NO_WRITEV
|
||||
#else
|
||||
#define NO_WRITEV
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_USER_RNG_SEED_EN == DEF_ENABLED)
|
||||
#define NO_DEV_RANDOM
|
||||
#else
|
||||
#undef NO_DEV_RANDOM
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_USER_IO_EN == DEF_ENABLED)
|
||||
#define CYASSL_USER_IO
|
||||
#else
|
||||
#undef CYASSL_USER_IO
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_DYNAMIC_BUFFERS_EN == DEF_ENABLED)
|
||||
#undef LARGE_STATIC_BUFFERS
|
||||
#undef STATIC_CHUNKS_ONLY
|
||||
#else
|
||||
#define LARGE_STATIC_BUFFERS
|
||||
#define STATIC_CHUNKS_ONLY
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_DER_LOAD_EN == DEF_ENABLED)
|
||||
#define CYASSL_DER_LOAD
|
||||
#else
|
||||
#undef CYASSL_DER_LOAD
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_DTLS_EN == DEF_ENABLED)
|
||||
#define CYASSL_DTLS
|
||||
#else
|
||||
#undef CYASSL_DTLS
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_CALLBACKS_EN == DEF_ENABLED)
|
||||
#define CYASSL_CALLBACKS
|
||||
#else
|
||||
#undef CYASSL_CALLBACKS
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_FAST_MATH_EN == DEF_ENABLED)
|
||||
#define USE_FAST_MATH
|
||||
#else
|
||||
#undef USE_FAST_MATH
|
||||
#endif
|
||||
|
||||
#if (SSL_CFG_TFM_TIMING_RESISTANT_EN == DEF_ENABLED)
|
||||
#define TFM_TIMING_RESISTANT
|
||||
#else
|
||||
#undef TFM_TIMING_RESISTANT
|
||||
#endif
|
||||
|
||||
#endif /* MICRIUM */
|
||||
|
||||
|
||||
#ifdef CYASSL_QL
|
||||
#ifndef CYASSL_SEP
|
||||
#define CYASSL_SEP
|
||||
#endif
|
||||
#ifndef OPENSSL_EXTRA
|
||||
#define OPENSSL_EXTRA
|
||||
#endif
|
||||
#ifndef SESSION_CERTS
|
||||
#define SESSION_CERTS
|
||||
#endif
|
||||
#ifndef HAVE_AESCCM
|
||||
#define HAVE_AESCCM
|
||||
#endif
|
||||
#ifndef ATOMIC_USER
|
||||
#define ATOMIC_USER
|
||||
#endif
|
||||
#ifndef CYASSL_DER_LOAD
|
||||
#define CYASSL_DER_LOAD
|
||||
#endif
|
||||
#ifndef KEEP_PEER_CERT
|
||||
#define KEEP_PEER_CERT
|
||||
#endif
|
||||
#ifndef HAVE_ECC
|
||||
#define HAVE_ECC
|
||||
#endif
|
||||
#ifndef SESSION_INDEX
|
||||
#define SESSION_INDEX
|
||||
#endif
|
||||
#endif /* CYASSL_QL */
|
||||
|
||||
|
||||
#if !defined(XMALLOC_USER) && !defined(MICRIUM_MALLOC) && \
|
||||
!defined(CYASSL_LEANPSK) && !defined(NO_CYASSL_MEMORY)
|
||||
#define USE_CYASSL_MEMORY
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(OPENSSL_EXTRA) && !defined(NO_CERTS)
|
||||
#undef KEEP_PEER_CERT
|
||||
#define KEEP_PEER_CERT
|
||||
#endif
|
||||
|
||||
|
||||
/* stream ciphers except arc4 need 32bit alignment, intel ok without */
|
||||
#ifndef XSTREAM_ALIGNMENT
|
||||
#if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
|
||||
#define NO_XSTREAM_ALIGNMENT
|
||||
#else
|
||||
#define XSTREAM_ALIGNMENT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* FreeScale MMCAU hardware crypto has 4 byte alignment */
|
||||
#ifdef FREESCALE_MMCAU
|
||||
#define CYASSL_MMCAU_ALIGNMENT 4
|
||||
#endif
|
||||
|
||||
/* if using hardware crypto and have alignment requirements, specify the
|
||||
requirement here. The record header of SSL/TLS will prvent easy alignment.
|
||||
This hint tries to help as much as possible. */
|
||||
#ifndef CYASSL_GENERAL_ALIGNMENT
|
||||
#ifdef CYASSL_AESNI
|
||||
#define CYASSL_GENERAL_ALIGNMENT 16
|
||||
#elif defined(XSTREAM_ALIGNMENT)
|
||||
#define CYASSL_GENERAL_ALIGNMENT 4
|
||||
#elif defined(FREESCALE_MMCAU)
|
||||
#define CYASSL_GENERAL_ALIGNMENT CYASSL_MMCAU_ALIGNMENT
|
||||
#else
|
||||
#define CYASSL_GENERAL_ALIGNMENT 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CRL
|
||||
/* not widely supported yet */
|
||||
#undef NO_SKID
|
||||
#define NO_SKID
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __INTEL_COMPILER
|
||||
#pragma warning(disable:2259) /* explicit casts to smaller sizes, disable */
|
||||
#endif
|
||||
|
||||
|
||||
/* Place any other flags or defines here */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CTAO_CRYPT_SETTINGS_H */
|
||||
|
@ -21,9 +21,9 @@
|
||||
|
||||
/* Visibility control macros */
|
||||
|
||||
|
||||
#ifndef CTAO_CRYPT_VISIBILITY_H
|
||||
#define CTAO_CRYPT_VISIBILITY_H
|
||||
#include <wolfssl/wolfcrypt/visibility.h>
|
||||
// #ifndef CTAO_CRYPT_VISIBILITY_H
|
||||
// #define CTAO_CRYPT_VISIBILITY_H
|
||||
|
||||
|
||||
/* CYASSL_API is used for the public API symbols.
|
||||
@ -32,40 +32,39 @@
|
||||
CYASSL_LOCAL is used for non-API symbols (private).
|
||||
*/
|
||||
|
||||
#if defined(BUILDING_CYASSL)
|
||||
#if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
|
||||
#define CYASSL_API __attribute__ ((visibility("default")))
|
||||
#define CYASSL_LOCAL __attribute__ ((visibility("hidden")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
#define CYASSL_API __global
|
||||
#define CYASSL_LOCAL __hidden
|
||||
#elif defined(_MSC_VER)
|
||||
#ifdef CYASSL_DLL
|
||||
#define CYASSL_API extern __declspec(dllexport)
|
||||
#else
|
||||
//#define CYASSL_API
|
||||
#define WOLFSSL_API
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#endif
|
||||
#define CYASSL_LOCAL
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#define CYASSL_LOCAL
|
||||
#endif /* HAVE_VISIBILITY */
|
||||
#else /* BUILDING_CYASSL */
|
||||
#if defined(_MSC_VER)
|
||||
#ifdef CYASSL_DLL
|
||||
#define CYASSL_API extern __declspec(dllimport)
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#endif
|
||||
#define CYASSL_LOCAL
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#define CYASSL_LOCAL
|
||||
#endif
|
||||
#endif /* BUILDING_CYASSL */
|
||||
// #if defined(BUILDING_CYASSL)
|
||||
// #if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
|
||||
// #define CYASSL_API __attribute__ ((visibility("default")))
|
||||
// #define CYASSL_LOCAL __attribute__ ((visibility("hidden")))
|
||||
// #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
// #define CYASSL_API __global
|
||||
// #define CYASSL_LOCAL __hidden
|
||||
// #elif defined(_MSC_VER)
|
||||
// #ifdef CYASSL_DLL
|
||||
// #define CYASSL_API extern __declspec(dllexport)
|
||||
// #else
|
||||
// //#define CYASSL_API
|
||||
// #define CYASSL_API:
|
||||
// #endif
|
||||
// #define CYASSL_LOCAL
|
||||
// #else
|
||||
// #define CYASSL_API
|
||||
// #define CYASSL_LOCAL
|
||||
// #endif /* HAVE_VISIBILITY */
|
||||
// #else /* BUILDING_CYASSL */
|
||||
// #if defined(_MSC_VER)
|
||||
// #ifdef CYASSL_DLL
|
||||
// #define CYASSL_API extern __declspec(dllimport)
|
||||
// #else
|
||||
// #define CYASSL_API
|
||||
// #endif
|
||||
// #define CYASSL_LOCAL
|
||||
// #else
|
||||
// #define CYASSL_API
|
||||
// #define CYASSL_LOCAL
|
||||
// #endif
|
||||
// #endif /* BUILDING_CYASSL */
|
||||
|
||||
|
||||
#endif /* CTAO_CRYPT_VISIBILITY_H */
|
||||
// #endif /* CTAO_CRYPT_VISIBILITY_H */
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* asn1.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/asn1.h>
|
||||
|
@ -1,23 +1,4 @@
|
||||
/* bio.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_BIO_H_
|
||||
#define CYASSL_BIO_H_
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_BIO_H_ */
|
||||
#include <wolfssl/openssl/bio.h>
|
||||
|
||||
|
@ -1,115 +1,3 @@
|
||||
/* bn.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_BN_H_
|
||||
#define CYASSL_BN_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct CYASSL_BIGNUM {
|
||||
int neg; /* openssh deference */
|
||||
void* internal; /* our big num */
|
||||
} CYASSL_BIGNUM;
|
||||
|
||||
|
||||
typedef struct CYASSL_BN_CTX CYASSL_BN_CTX;
|
||||
|
||||
|
||||
CYASSL_API CYASSL_BN_CTX* CyaSSL_BN_CTX_new(void);
|
||||
CYASSL_API void CyaSSL_BN_CTX_init(CYASSL_BN_CTX*);
|
||||
CYASSL_API void CyaSSL_BN_CTX_free(CYASSL_BN_CTX*);
|
||||
|
||||
CYASSL_API CYASSL_BIGNUM* CyaSSL_BN_new(void);
|
||||
CYASSL_API void CyaSSL_BN_free(CYASSL_BIGNUM*);
|
||||
CYASSL_API void CyaSSL_BN_clear_free(CYASSL_BIGNUM*);
|
||||
|
||||
|
||||
CYASSL_API int CyaSSL_BN_sub(CYASSL_BIGNUM*, const CYASSL_BIGNUM*,
|
||||
const CYASSL_BIGNUM*);
|
||||
CYASSL_API int CyaSSL_BN_mod(CYASSL_BIGNUM*, const CYASSL_BIGNUM*,
|
||||
const CYASSL_BIGNUM*, const CYASSL_BN_CTX*);
|
||||
|
||||
CYASSL_API const CYASSL_BIGNUM* CyaSSL_BN_value_one(void);
|
||||
|
||||
|
||||
CYASSL_API int CyaSSL_BN_num_bytes(const CYASSL_BIGNUM*);
|
||||
CYASSL_API int CyaSSL_BN_num_bits(const CYASSL_BIGNUM*);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_is_zero(const CYASSL_BIGNUM*);
|
||||
CYASSL_API int CyaSSL_BN_is_one(const CYASSL_BIGNUM*);
|
||||
CYASSL_API int CyaSSL_BN_is_odd(const CYASSL_BIGNUM*);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_cmp(const CYASSL_BIGNUM*, const CYASSL_BIGNUM*);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_bn2bin(const CYASSL_BIGNUM*, unsigned char*);
|
||||
CYASSL_API CYASSL_BIGNUM* CyaSSL_BN_bin2bn(const unsigned char*, int len,
|
||||
CYASSL_BIGNUM* ret);
|
||||
|
||||
CYASSL_API int CyaSSL_mask_bits(CYASSL_BIGNUM*, int n);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_rand(CYASSL_BIGNUM*, int bits, int top, int bottom);
|
||||
CYASSL_API int CyaSSL_BN_is_bit_set(const CYASSL_BIGNUM*, int n);
|
||||
CYASSL_API int CyaSSL_BN_hex2bn(CYASSL_BIGNUM**, const char* str);
|
||||
|
||||
CYASSL_API CYASSL_BIGNUM* CyaSSL_BN_dup(const CYASSL_BIGNUM*);
|
||||
CYASSL_API CYASSL_BIGNUM* CyaSSL_BN_copy(CYASSL_BIGNUM*, const CYASSL_BIGNUM*);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_set_word(CYASSL_BIGNUM*, unsigned long w);
|
||||
|
||||
CYASSL_API int CyaSSL_BN_dec2bn(CYASSL_BIGNUM**, const char* str);
|
||||
CYASSL_API char* CyaSSL_BN_bn2dec(const CYASSL_BIGNUM*);
|
||||
|
||||
|
||||
typedef CYASSL_BIGNUM BIGNUM;
|
||||
typedef CYASSL_BN_CTX BN_CTX;
|
||||
|
||||
#define BN_CTX_new CyaSSL_BN_CTX_new
|
||||
#define BN_CTX_init CyaSSL_BN_CTX_init
|
||||
#define BN_CTX_free CyaSSL_BN_CTX_free
|
||||
|
||||
#define BN_new CyaSSL_BN_new
|
||||
#define BN_free CyaSSL_BN_free
|
||||
#define BN_clear_free CyaSSL_BN_clear_free
|
||||
|
||||
#define BN_num_bytes CyaSSL_BN_num_bytes
|
||||
#define BN_num_bits CyaSSL_BN_num_bits
|
||||
|
||||
#define BN_is_zero CyaSSL_BN_is_zero
|
||||
#define BN_is_one CyaSSL_BN_is_one
|
||||
#define BN_is_odd CyaSSL_BN_is_odd
|
||||
|
||||
#define BN_cmp CyaSSL_BN_cmp
|
||||
|
||||
#define BN_bn2bin CyaSSL_BN_bn2bin
|
||||
#define BN_bin2bn CyaSSL_BN_bin2bn
|
||||
|
||||
#define BN_mod CyaSSL_BN_mod
|
||||
#define BN_sub CyaSSL_BN_sub
|
||||
#define BN_value_one CyaSSL_BN_value_one
|
||||
|
||||
#define BN_mask_bits CyaSSL_mask_bits
|
||||
|
||||
#define BN_rand CyaSSL_BN_rand
|
||||
#define BN_is_bit_set CyaSSL_BN_is_bit_set
|
||||
#define BN_hex2bn CyaSSL_BN_hex2bn
|
||||
|
||||
#define BN_dup CyaSSL_BN_dup
|
||||
#define BN_copy CyaSSL_BN_copy
|
||||
|
||||
#define BN_set_word CyaSSL_BN_set_word
|
||||
|
||||
#define BN_dec2bn CyaSSL_BN_dec2bn
|
||||
#define BN_bn2dec CyaSSL_BN_bn2dec
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL__H_ */
|
||||
|
||||
#include <wolfssl/openssl/bn.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* conf.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/conf.h>
|
||||
|
@ -1,26 +1,4 @@
|
||||
/* crypto.h for openSSL */
|
||||
|
||||
#ifndef CYASSL_CRYPTO_H_
|
||||
#define CYASSL_CRYPTO_H_
|
||||
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_crypto.h"
|
||||
#endif
|
||||
|
||||
|
||||
CYASSL_API const char* CyaSSLeay_version(int type);
|
||||
CYASSL_API unsigned long CyaSSLeay(void);
|
||||
|
||||
#define SSLeay_version CyaSSLeay_version
|
||||
#define SSLeay CyaSSLeay
|
||||
|
||||
|
||||
#define SSLEAY_VERSION 0x0090600fL
|
||||
#define SSLEAY_VERSION_NUMBER SSLEAY_VERSION
|
||||
|
||||
|
||||
#endif /* header */
|
||||
#include <wolfssl/openssl/crypto.h>
|
||||
|
||||
|
@ -24,64 +24,4 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CYASSL_DES_H_
|
||||
#define CYASSL_DES_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_des.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef unsigned char CYASSL_DES_cblock[8];
|
||||
typedef /* const */ CYASSL_DES_cblock CYASSL_const_DES_cblock;
|
||||
typedef CYASSL_DES_cblock CYASSL_DES_key_schedule;
|
||||
|
||||
|
||||
enum {
|
||||
DES_ENCRYPT = 1,
|
||||
DES_DECRYPT = 0
|
||||
};
|
||||
|
||||
|
||||
CYASSL_API void CyaSSL_DES_set_key_unchecked(CYASSL_const_DES_cblock*,
|
||||
CYASSL_DES_key_schedule*);
|
||||
CYASSL_API int CyaSSL_DES_key_sched(CYASSL_const_DES_cblock* key,
|
||||
CYASSL_DES_key_schedule* schedule);
|
||||
CYASSL_API void CyaSSL_DES_cbc_encrypt(const unsigned char* input,
|
||||
unsigned char* output, long length,
|
||||
CYASSL_DES_key_schedule* schedule, CYASSL_DES_cblock* ivec,
|
||||
int enc);
|
||||
CYASSL_API void CyaSSL_DES_ncbc_encrypt(const unsigned char* input,
|
||||
unsigned char* output, long length,
|
||||
CYASSL_DES_key_schedule* schedule,
|
||||
CYASSL_DES_cblock* ivec, int enc);
|
||||
|
||||
CYASSL_API void CyaSSL_DES_set_odd_parity(CYASSL_DES_cblock*);
|
||||
CYASSL_API void CyaSSL_DES_ecb_encrypt(CYASSL_DES_cblock*, CYASSL_DES_cblock*,
|
||||
CYASSL_DES_key_schedule*, int);
|
||||
|
||||
|
||||
typedef CYASSL_DES_cblock DES_cblock;
|
||||
typedef CYASSL_const_DES_cblock const_DES_cblock;
|
||||
typedef CYASSL_DES_key_schedule DES_key_schedule;
|
||||
|
||||
#define DES_set_key_unchecked CyaSSL_DES_set_key_unchecked
|
||||
#define DES_key_sched CyaSSL_DES_key_sched
|
||||
#define DES_cbc_encrypt CyaSSL_DES_cbc_encrypt
|
||||
#define DES_ncbc_encrypt CyaSSL_DES_ncbc_encrypt
|
||||
#define DES_set_odd_parity CyaSSL_DES_set_odd_parity
|
||||
#define DES_ecb_encrypt CyaSSL_DES_ecb_encrypt
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_DES_H_ */
|
||||
#include <wolfssl/openssl/des.h>
|
||||
|
@ -1,52 +1,4 @@
|
||||
/* dh.h for openSSL */
|
||||
|
||||
|
||||
#ifndef CYASSL_DH_H_
|
||||
#define CYASSL_DH_H_
|
||||
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
#include <cyassl/openssl/bn.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
typedef struct CYASSL_DH {
|
||||
CYASSL_BIGNUM* p;
|
||||
CYASSL_BIGNUM* g;
|
||||
CYASSL_BIGNUM* pub_key; /* openssh deference g^x */
|
||||
CYASSL_BIGNUM* priv_key; /* openssh deference x */
|
||||
void* internal; /* our DH */
|
||||
char inSet; /* internal set from external ? */
|
||||
char exSet; /* external set from internal ? */
|
||||
} CYASSL_DH;
|
||||
|
||||
|
||||
CYASSL_API CYASSL_DH* CyaSSL_DH_new(void);
|
||||
CYASSL_API void CyaSSL_DH_free(CYASSL_DH*);
|
||||
|
||||
CYASSL_API int CyaSSL_DH_size(CYASSL_DH*);
|
||||
CYASSL_API int CyaSSL_DH_generate_key(CYASSL_DH*);
|
||||
CYASSL_API int CyaSSL_DH_compute_key(unsigned char* key, CYASSL_BIGNUM* pub,
|
||||
CYASSL_DH*);
|
||||
|
||||
typedef CYASSL_DH DH;
|
||||
|
||||
#define DH_new CyaSSL_DH_new
|
||||
#define DH_free CyaSSL_DH_free
|
||||
|
||||
#define DH_size CyaSSL_DH_size
|
||||
#define DH_generate_key CyaSSL_DH_generate_key
|
||||
#define DH_compute_key CyaSSL_DH_compute_key
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* header */
|
||||
#include <wolfssl/openssl/dh.h>
|
||||
|
@ -1,53 +1,3 @@
|
||||
/* dsa.h for openSSL */
|
||||
|
||||
|
||||
#ifndef CYASSL_DSA_H_
|
||||
#define CYASSL_DSA_H_
|
||||
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
#include <cyassl/openssl/bn.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
struct CYASSL_DSA {
|
||||
CYASSL_BIGNUM* p;
|
||||
CYASSL_BIGNUM* q;
|
||||
CYASSL_BIGNUM* g;
|
||||
CYASSL_BIGNUM* pub_key; /* our y */
|
||||
CYASSL_BIGNUM* priv_key; /* our x */
|
||||
void* internal; /* our Dsa Key */
|
||||
char inSet; /* internal set from external ? */
|
||||
char exSet; /* external set from internal ? */
|
||||
};
|
||||
|
||||
|
||||
CYASSL_API CYASSL_DSA* CyaSSL_DSA_new(void);
|
||||
CYASSL_API void CyaSSL_DSA_free(CYASSL_DSA*);
|
||||
|
||||
CYASSL_API int CyaSSL_DSA_generate_key(CYASSL_DSA*);
|
||||
CYASSL_API int CyaSSL_DSA_generate_parameters_ex(CYASSL_DSA*, int bits,
|
||||
unsigned char* seed, int seedLen, int* counterRet,
|
||||
unsigned long* hRet, void* cb);
|
||||
|
||||
CYASSL_API int CyaSSL_DSA_LoadDer(CYASSL_DSA*, const unsigned char*, int sz);
|
||||
CYASSL_API int CyaSSL_DSA_do_sign(const unsigned char* d, unsigned char* sigRet,
|
||||
CYASSL_DSA* dsa);
|
||||
|
||||
#define DSA_new CyaSSL_DSA_new
|
||||
#define DSA_free CyaSSL_DSA_free
|
||||
|
||||
#define DSA_generate_key CyaSSL_DSA_generate_key
|
||||
#define DSA_generate_parameters_ex CyaSSL_DSA_generate_parameters_ex
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* header */
|
||||
#include <wolfssl/openssl/dsa.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* ec.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/ec.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* ecdsa.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/ecdsa.h>
|
@ -1,5 +1,5 @@
|
||||
/* engine.h for libcurl */
|
||||
|
||||
#undef HAVE_OPENSSL_ENGINE_H
|
||||
#include <wolfssl/openssl/engine.h>
|
||||
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* err.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/err.h>
|
||||
|
@ -24,218 +24,4 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CYASSL_EVP_H_
|
||||
#define CYASSL_EVP_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_evp.h"
|
||||
#endif
|
||||
|
||||
#include <cyassl/openssl/md5.h>
|
||||
#include <cyassl/openssl/sha.h>
|
||||
#include <cyassl/openssl/ripemd.h>
|
||||
#include <cyassl/openssl/rsa.h>
|
||||
#include <cyassl/openssl/dsa.h>
|
||||
|
||||
#include <cyassl/ctaocrypt/aes.h>
|
||||
#include <cyassl/ctaocrypt/des3.h>
|
||||
#include <cyassl/ctaocrypt/arc4.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef char CYASSL_EVP_MD;
|
||||
typedef char CYASSL_EVP_CIPHER;
|
||||
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_md5(void);
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_sha1(void);
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_sha256(void);
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_sha384(void);
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_sha512(void);
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_ripemd160(void);
|
||||
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_128_cbc(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_192_cbc(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_256_cbc(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_128_ctr(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_192_ctr(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_aes_256_ctr(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_des_cbc(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_des_ede3_cbc(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_rc4(void);
|
||||
CYASSL_API const CYASSL_EVP_CIPHER* CyaSSL_EVP_enc_null(void);
|
||||
|
||||
|
||||
typedef union {
|
||||
CYASSL_MD5_CTX md5;
|
||||
CYASSL_SHA_CTX sha;
|
||||
CYASSL_SHA256_CTX sha256;
|
||||
#ifdef CYASSL_SHA384
|
||||
CYASSL_SHA384_CTX sha384;
|
||||
#endif
|
||||
#ifdef CYASSL_SHA512
|
||||
CYASSL_SHA512_CTX sha512;
|
||||
#endif
|
||||
#ifdef CYASSL_RIPEMD
|
||||
CYASSL_RIPEMD_CTX ripemd;
|
||||
#endif
|
||||
} CYASSL_Hasher;
|
||||
|
||||
|
||||
typedef struct CYASSL_EVP_MD_CTX {
|
||||
unsigned char macType;
|
||||
CYASSL_Hasher hash;
|
||||
} CYASSL_EVP_MD_CTX;
|
||||
|
||||
|
||||
typedef union {
|
||||
Aes aes;
|
||||
#ifndef NO_DES3
|
||||
Des des;
|
||||
Des3 des3;
|
||||
#endif
|
||||
Arc4 arc4;
|
||||
} CYASSL_Cipher;
|
||||
|
||||
|
||||
enum {
|
||||
AES_128_CBC_TYPE = 1,
|
||||
AES_192_CBC_TYPE = 2,
|
||||
AES_256_CBC_TYPE = 3,
|
||||
AES_128_CTR_TYPE = 4,
|
||||
AES_192_CTR_TYPE = 5,
|
||||
AES_256_CTR_TYPE = 6,
|
||||
DES_CBC_TYPE = 7,
|
||||
DES_EDE3_CBC_TYPE = 8,
|
||||
ARC4_TYPE = 9,
|
||||
NULL_CIPHER_TYPE = 10,
|
||||
EVP_PKEY_RSA = 11,
|
||||
EVP_PKEY_DSA = 12,
|
||||
NID_sha1 = 64,
|
||||
NID_md5 = 4
|
||||
};
|
||||
|
||||
|
||||
typedef struct CYASSL_EVP_CIPHER_CTX {
|
||||
int keyLen; /* user may set for variable */
|
||||
unsigned char enc; /* if encrypt side, then true */
|
||||
unsigned char cipherType;
|
||||
unsigned char iv[AES_BLOCK_SIZE]; /* working iv pointer into cipher */
|
||||
CYASSL_Cipher cipher;
|
||||
} CYASSL_EVP_CIPHER_CTX;
|
||||
|
||||
|
||||
CYASSL_API int CyaSSL_EVP_MD_size(const CYASSL_EVP_MD* md);
|
||||
CYASSL_API void CyaSSL_EVP_MD_CTX_init(CYASSL_EVP_MD_CTX* ctx);
|
||||
CYASSL_API int CyaSSL_EVP_MD_CTX_cleanup(CYASSL_EVP_MD_CTX* ctx);
|
||||
|
||||
CYASSL_API int CyaSSL_EVP_DigestInit(CYASSL_EVP_MD_CTX* ctx,
|
||||
const CYASSL_EVP_MD* type);
|
||||
CYASSL_API int CyaSSL_EVP_DigestUpdate(CYASSL_EVP_MD_CTX* ctx, const void* data,
|
||||
unsigned long sz);
|
||||
CYASSL_API int CyaSSL_EVP_DigestFinal(CYASSL_EVP_MD_CTX* ctx, unsigned char* md,
|
||||
unsigned int* s);
|
||||
CYASSL_API int CyaSSL_EVP_DigestFinal_ex(CYASSL_EVP_MD_CTX* ctx,
|
||||
unsigned char* md, unsigned int* s);
|
||||
CYASSL_API int CyaSSL_EVP_BytesToKey(const CYASSL_EVP_CIPHER*,
|
||||
const CYASSL_EVP_MD*, const unsigned char*,
|
||||
const unsigned char*, int, int, unsigned char*,
|
||||
unsigned char*);
|
||||
|
||||
CYASSL_API void CyaSSL_EVP_CIPHER_CTX_init(CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
CYASSL_API int CyaSSL_EVP_CIPHER_CTX_cleanup(CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
|
||||
CYASSL_API int CyaSSL_EVP_CIPHER_CTX_iv_length(const CYASSL_EVP_CIPHER_CTX*);
|
||||
|
||||
|
||||
CYASSL_API int CyaSSL_EVP_CipherInit(CYASSL_EVP_CIPHER_CTX* ctx,
|
||||
const CYASSL_EVP_CIPHER* type,
|
||||
unsigned char* key, unsigned char* iv,
|
||||
int enc);
|
||||
CYASSL_API int CyaSSL_EVP_CIPHER_CTX_key_length(CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
CYASSL_API int CyaSSL_EVP_CIPHER_CTX_set_key_length(CYASSL_EVP_CIPHER_CTX* ctx,
|
||||
int keylen);
|
||||
CYASSL_API int CyaSSL_EVP_Cipher(CYASSL_EVP_CIPHER_CTX* ctx,
|
||||
unsigned char* dst, unsigned char* src,
|
||||
unsigned int len);
|
||||
|
||||
CYASSL_API const CYASSL_EVP_MD* CyaSSL_EVP_get_digestbynid(int);
|
||||
|
||||
CYASSL_API CYASSL_RSA* CyaSSL_EVP_PKEY_get1_RSA(CYASSL_EVP_PKEY*);
|
||||
CYASSL_API CYASSL_DSA* CyaSSL_EVP_PKEY_get1_DSA(CYASSL_EVP_PKEY*);
|
||||
|
||||
/* these next ones don't need real OpenSSL type, for OpenSSH compat only */
|
||||
CYASSL_API void* CyaSSL_EVP_X_STATE(const CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
CYASSL_API int CyaSSL_EVP_X_STATE_LEN(const CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
|
||||
CYASSL_API void CyaSSL_3des_iv(CYASSL_EVP_CIPHER_CTX* ctx, int doset,
|
||||
unsigned char* iv, int len);
|
||||
CYASSL_API void CyaSSL_aes_ctr_iv(CYASSL_EVP_CIPHER_CTX* ctx, int doset,
|
||||
unsigned char* iv, int len);
|
||||
|
||||
CYASSL_API int CyaSSL_StoreExternalIV(CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
CYASSL_API int CyaSSL_SetInternalIV(CYASSL_EVP_CIPHER_CTX* ctx);
|
||||
|
||||
|
||||
/* end OpenSSH compat */
|
||||
|
||||
typedef CYASSL_EVP_MD EVP_MD;
|
||||
typedef CYASSL_EVP_CIPHER EVP_CIPHER;
|
||||
typedef CYASSL_EVP_MD_CTX EVP_MD_CTX;
|
||||
typedef CYASSL_EVP_CIPHER_CTX EVP_CIPHER_CTX;
|
||||
|
||||
#define EVP_md5 CyaSSL_EVP_md5
|
||||
#define EVP_sha1 CyaSSL_EVP_sha1
|
||||
#define EVP_sha256 CyaSSL_EVP_sha256
|
||||
#define EVP_sha384 CyaSSL_EVP_sha384
|
||||
#define EVP_sha512 CyaSSL_EVP_sha512
|
||||
#define EVP_ripemd160 CyaSSL_EVP_ripemd160
|
||||
|
||||
#define EVP_aes_128_cbc CyaSSL_EVP_aes_128_cbc
|
||||
#define EVP_aes_192_cbc CyaSSL_EVP_aes_192_cbc
|
||||
#define EVP_aes_256_cbc CyaSSL_EVP_aes_256_cbc
|
||||
#define EVP_aes_128_ctr CyaSSL_EVP_aes_128_ctr
|
||||
#define EVP_aes_192_ctr CyaSSL_EVP_aes_192_ctr
|
||||
#define EVP_aes_256_ctr CyaSSL_EVP_aes_256_ctr
|
||||
#define EVP_des_cbc CyaSSL_EVP_des_cbc
|
||||
#define EVP_des_ede3_cbc CyaSSL_EVP_des_ede3_cbc
|
||||
#define EVP_rc4 CyaSSL_EVP_rc4
|
||||
#define EVP_enc_null CyaSSL_EVP_enc_null
|
||||
|
||||
#define EVP_MD_size CyaSSL_EVP_MD_size
|
||||
#define EVP_MD_CTX_init CyaSSL_EVP_MD_CTX_init
|
||||
#define EVP_MD_CTX_cleanup CyaSSL_EVP_MD_CTX_cleanup
|
||||
#define EVP_DigestInit CyaSSL_EVP_DigestInit
|
||||
#define EVP_DigestUpdate CyaSSL_EVP_DigestUpdate
|
||||
#define EVP_DigestFinal CyaSSL_EVP_DigestFinal
|
||||
#define EVP_DigestFinal_ex CyaSSL_EVP_DigestFinal_ex
|
||||
#define EVP_BytesToKey CyaSSL_EVP_BytesToKey
|
||||
|
||||
#define EVP_CIPHER_CTX_init CyaSSL_EVP_CIPHER_CTX_init
|
||||
#define EVP_CIPHER_CTX_cleanup CyaSSL_EVP_CIPHER_CTX_cleanup
|
||||
#define EVP_CIPHER_CTX_iv_length CyaSSL_EVP_CIPHER_CTX_iv_length
|
||||
#define EVP_CIPHER_CTX_key_length CyaSSL_EVP_CIPHER_CTX_key_length
|
||||
#define EVP_CIPHER_CTX_set_key_length CyaSSL_EVP_CIPHER_CTX_set_key_length
|
||||
#define EVP_CipherInit CyaSSL_EVP_CipherInit
|
||||
#define EVP_Cipher CyaSSL_EVP_Cipher
|
||||
|
||||
#define EVP_get_digestbynid CyaSSL_EVP_get_digestbynid
|
||||
|
||||
#define EVP_PKEY_get1_RSA CyaSSL_EVP_PKEY_get1_RSA
|
||||
#define EVP_PKEY_get1_DSA CyaSSL_EVP_PKEY_get1_DSA
|
||||
|
||||
#ifndef EVP_MAX_MD_SIZE
|
||||
#define EVP_MAX_MD_SIZE 64 /* sha512 */
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_EVP_H_ */
|
||||
#include <wolfssl/openssl/evp.h>
|
||||
|
@ -24,58 +24,4 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CYASSL_HMAC_H_
|
||||
#define CYASSL_HMAC_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_hmac.h"
|
||||
#endif
|
||||
|
||||
#include <cyassl/openssl/evp.h>
|
||||
#include <cyassl/ctaocrypt/hmac.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
CYASSL_API unsigned char* CyaSSL_HMAC(const CYASSL_EVP_MD* evp_md,
|
||||
const void* key, int key_len,
|
||||
const unsigned char* d, int n, unsigned char* md,
|
||||
unsigned int* md_len);
|
||||
|
||||
|
||||
typedef struct CYASSL_HMAC_CTX {
|
||||
Hmac hmac;
|
||||
int type;
|
||||
} CYASSL_HMAC_CTX;
|
||||
|
||||
|
||||
CYASSL_API void CyaSSL_HMAC_Init(CYASSL_HMAC_CTX* ctx, const void* key,
|
||||
int keylen, const EVP_MD* type);
|
||||
CYASSL_API void CyaSSL_HMAC_Update(CYASSL_HMAC_CTX* ctx,
|
||||
const unsigned char* data, int len);
|
||||
CYASSL_API void CyaSSL_HMAC_Final(CYASSL_HMAC_CTX* ctx, unsigned char* hash,
|
||||
unsigned int* len);
|
||||
CYASSL_API void CyaSSL_HMAC_cleanup(CYASSL_HMAC_CTX* ctx);
|
||||
|
||||
|
||||
typedef struct CYASSL_HMAC_CTX HMAC_CTX;
|
||||
|
||||
#define HMAC(a,b,c,d,e,f,g) CyaSSL_HMAC((a),(b),(c),(d),(e),(f),(g))
|
||||
|
||||
#define HMAC_Init CyaSSL_HMAC_Init
|
||||
#define HMAC_Update CyaSSL_HMAC_Update
|
||||
#define HMAC_Final CyaSSL_HMAC_Final
|
||||
#define HMAC_cleanup CyaSSL_HMAC_cleanup
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_HMAC_H_ */
|
||||
#include <wolfssl/openssl/hmac.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* lhash.h for openSSL */
|
||||
|
||||
#include <wolfssl/openssl/lhash.h>
|
@ -1 +1,3 @@
|
||||
/* md4.h for libcurl */
|
||||
|
||||
#include <wolfssl/openssl/md4.h>
|
||||
|
@ -1,39 +1,5 @@
|
||||
/* md5.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_MD5_H_
|
||||
#define CYASSL_MD5_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_md5.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct CYASSL_MD5_CTX {
|
||||
int holder[24]; /* big enough to hold ctaocrypt md5, but check on init */
|
||||
} CYASSL_MD5_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_MD5_Init(CYASSL_MD5_CTX*);
|
||||
CYASSL_API void CyaSSL_MD5_Update(CYASSL_MD5_CTX*, const void*, unsigned long);
|
||||
CYASSL_API void CyaSSL_MD5_Final(unsigned char*, CYASSL_MD5_CTX*);
|
||||
|
||||
|
||||
typedef CYASSL_MD5_CTX MD5_CTX;
|
||||
|
||||
#define MD5_Init CyaSSL_MD5_Init
|
||||
#define MD5_Update CyaSSL_MD5_Update
|
||||
#define MD5_Final CyaSSL_MD5_Final
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_MD5_H_ */
|
||||
#include <wolfssl/openssl/md5.h>
|
||||
|
||||
|
@ -1 +1,3 @@
|
||||
/* ocsp.h for libcurl */
|
||||
|
||||
#include <wolfssl/openssl/ocsp.h>
|
||||
|
@ -1,8 +1,3 @@
|
||||
/* opensslconf.h for openSSL */
|
||||
|
||||
|
||||
#ifndef OPENSSL_THREADS
|
||||
#define OPENSSL_THREADS
|
||||
#endif
|
||||
|
||||
|
||||
#include <wolfssl/openssl/opensslconf.h>
|
||||
|
@ -1,12 +1,3 @@
|
||||
/* opensslv.h compatibility */
|
||||
|
||||
#ifndef CYASSL_OPENSSLV_H_
|
||||
#define CYASSL_OPENSSLV_H_
|
||||
|
||||
|
||||
/* api version compatibility */
|
||||
#define OPENSSL_VERSION_NUMBER 0x0090410fL
|
||||
|
||||
|
||||
#endif /* header */
|
||||
|
||||
#include <wolfssl/openssl/opensslv.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* ossl_typ.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/ossl_typ.h>
|
||||
|
@ -1,41 +1,3 @@
|
||||
/* pem.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_PEM_H_
|
||||
#define CYASSL_PEM_H_
|
||||
|
||||
#include <cyassl/openssl/evp.h>
|
||||
#include <cyassl/openssl/bio.h>
|
||||
#include <cyassl/openssl/rsa.h>
|
||||
#include <cyassl/openssl/dsa.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
CYASSL_API int CyaSSL_PEM_write_bio_RSAPrivateKey(CYASSL_BIO* bio, RSA* rsa,
|
||||
const EVP_CIPHER* cipher,
|
||||
unsigned char* passwd, int len,
|
||||
pem_password_cb cb, void* arg);
|
||||
|
||||
CYASSL_API int CyaSSL_PEM_write_bio_DSAPrivateKey(CYASSL_BIO* bio, DSA* rsa,
|
||||
const EVP_CIPHER* cipher,
|
||||
unsigned char* passwd, int len,
|
||||
pem_password_cb cb, void* arg);
|
||||
|
||||
CYASSL_API CYASSL_EVP_PKEY* CyaSSL_PEM_read_bio_PrivateKey(CYASSL_BIO* bio,
|
||||
CYASSL_EVP_PKEY**, pem_password_cb cb, void* arg);
|
||||
|
||||
#define PEM_write_bio_RSAPrivateKey CyaSSL_PEM_write_bio_RSAPrivateKey
|
||||
#define PEM_write_bio_DSAPrivateKey CyaSSL_PEM_write_bio_DSAPrivateKey
|
||||
#define PEM_read_bio_PrivateKey CyaSSL_PEM_read_bio_PrivateKey
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_PEM_H_ */
|
||||
|
||||
#include <wolfssl/openssl/pem.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* pkcs12.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/pkcs12.h>
|
||||
|
@ -1,4 +1,3 @@
|
||||
/* rand.h for openSSL */
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
|
||||
#include <wolfssl/openssl/ssl.h>
|
||||
|
@ -1,37 +1,3 @@
|
||||
/* ripemd.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_RIPEMD_H_
|
||||
#define CYASSL_RIPEMD_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct CYASSL_RIPEMD_CTX {
|
||||
int holder[32]; /* big enough to hold ctaocrypt, but check on init */
|
||||
} CYASSL_RIPEMD_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_RIPEMD_Init(CYASSL_RIPEMD_CTX*);
|
||||
CYASSL_API void CyaSSL_RIPEMD_Update(CYASSL_RIPEMD_CTX*, const void*,
|
||||
unsigned long);
|
||||
CYASSL_API void CyaSSL_RIPEMD_Final(unsigned char*, CYASSL_RIPEMD_CTX*);
|
||||
|
||||
|
||||
typedef CYASSL_RIPEMD_CTX RIPEMD_CTX;
|
||||
|
||||
#define RIPEMD_Init CyaSSL_RIPEMD_Init
|
||||
#define RIPEMD_Update CyaSSL_RIPEMD_Update
|
||||
#define RIPEMD_Final CyaSSL_RIPEMD_Final
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_MD5_H_ */
|
||||
|
||||
#include <wolfssl/openssl/ripemd.h>
|
||||
|
@ -1,75 +1,3 @@
|
||||
/* rsa.h for openSSL */
|
||||
|
||||
|
||||
#ifndef CYASSL_RSA_H_
|
||||
#define CYASSL_RSA_H_
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
#include <cyassl/openssl/bn.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
enum {
|
||||
RSA_PKCS1_PADDING = 1
|
||||
};
|
||||
|
||||
struct CYASSL_RSA {
|
||||
CYASSL_BIGNUM* n;
|
||||
CYASSL_BIGNUM* e;
|
||||
CYASSL_BIGNUM* d;
|
||||
CYASSL_BIGNUM* p;
|
||||
CYASSL_BIGNUM* q;
|
||||
CYASSL_BIGNUM* dmp1; /* dP */
|
||||
CYASSL_BIGNUM* dmq1; /* dQ */
|
||||
CYASSL_BIGNUM* iqmp; /* u */
|
||||
void* internal; /* our RSA */
|
||||
char inSet; /* internal set from external ? */
|
||||
char exSet; /* external set from internal ? */
|
||||
};
|
||||
|
||||
|
||||
CYASSL_API CYASSL_RSA* CyaSSL_RSA_new(void);
|
||||
CYASSL_API void CyaSSL_RSA_free(CYASSL_RSA*);
|
||||
|
||||
CYASSL_API int CyaSSL_RSA_generate_key_ex(CYASSL_RSA*, int bits, CYASSL_BIGNUM*,
|
||||
void* cb);
|
||||
|
||||
CYASSL_API int CyaSSL_RSA_blinding_on(CYASSL_RSA*, CYASSL_BN_CTX*);
|
||||
CYASSL_API int CyaSSL_RSA_public_encrypt(int len, unsigned char* fr,
|
||||
unsigned char* to, CYASSL_RSA*, int padding);
|
||||
CYASSL_API int CyaSSL_RSA_private_decrypt(int len, unsigned char* fr,
|
||||
unsigned char* to, CYASSL_RSA*, int padding);
|
||||
|
||||
CYASSL_API int CyaSSL_RSA_size(const CYASSL_RSA*);
|
||||
CYASSL_API int CyaSSL_RSA_sign(int type, const unsigned char* m,
|
||||
unsigned int mLen, unsigned char* sigRet,
|
||||
unsigned int* sigLen, CYASSL_RSA*);
|
||||
CYASSL_API int CyaSSL_RSA_public_decrypt(int flen, unsigned char* from,
|
||||
unsigned char* to, CYASSL_RSA*, int padding);
|
||||
CYASSL_API int CyaSSL_RSA_GenAdd(CYASSL_RSA*);
|
||||
CYASSL_API int CyaSSL_RSA_LoadDer(CYASSL_RSA*, const unsigned char*, int sz);
|
||||
|
||||
|
||||
#define RSA_new CyaSSL_RSA_new
|
||||
#define RSA_free CyaSSL_RSA_free
|
||||
|
||||
#define RSA_generate_key_ex CyaSSL_RSA_generate_key_ex
|
||||
|
||||
#define RSA_blinding_on CyaSSL_RSA_blinding_on
|
||||
#define RSA_public_encrypt CyaSSL_RSA_public_encrypt
|
||||
#define RSA_private_decrypt CyaSSL_RSA_private_decrypt
|
||||
|
||||
#define RSA_size CyaSSL_RSA_size
|
||||
#define RSA_sign CyaSSL_RSA_sign
|
||||
#define RSA_public_decrypt CyaSSL_RSA_public_decrypt
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* header */
|
||||
#include <wolfssl/openssl/rsa.h>
|
||||
|
@ -1,125 +1,3 @@
|
||||
/* sha.h for openssl */
|
||||
|
||||
|
||||
#ifndef CYASSL_SHA_H_
|
||||
#define CYASSL_SHA_H_
|
||||
|
||||
#include <cyassl/ctaocrypt/settings.h>
|
||||
|
||||
#ifdef YASSL_PREFIX
|
||||
#include "prefix_sha.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct CYASSL_SHA_CTX {
|
||||
int holder[24]; /* big enough to hold ctaocrypt sha, but check on init */
|
||||
} CYASSL_SHA_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_SHA_Init(CYASSL_SHA_CTX*);
|
||||
CYASSL_API void CyaSSL_SHA_Update(CYASSL_SHA_CTX*, const void*, unsigned long);
|
||||
CYASSL_API void CyaSSL_SHA_Final(unsigned char*, CYASSL_SHA_CTX*);
|
||||
|
||||
/* SHA1 points to above, shouldn't use SHA0 ever */
|
||||
CYASSL_API void CyaSSL_SHA1_Init(CYASSL_SHA_CTX*);
|
||||
CYASSL_API void CyaSSL_SHA1_Update(CYASSL_SHA_CTX*, const void*, unsigned long);
|
||||
CYASSL_API void CyaSSL_SHA1_Final(unsigned char*, CYASSL_SHA_CTX*);
|
||||
|
||||
enum {
|
||||
SHA_DIGEST_LENGTH = 20
|
||||
};
|
||||
|
||||
|
||||
typedef CYASSL_SHA_CTX SHA_CTX;
|
||||
|
||||
#define SHA_Init CyaSSL_SHA_Init
|
||||
#define SHA_Update CyaSSL_SHA_Update
|
||||
#define SHA_Final CyaSSL_SHA_Final
|
||||
|
||||
#define SHA1_Init CyaSSL_SHA1_Init
|
||||
#define SHA1_Update CyaSSL_SHA1_Update
|
||||
#define SHA1_Final CyaSSL_SHA1_Final
|
||||
|
||||
|
||||
typedef struct CYASSL_SHA256_CTX {
|
||||
int holder[28]; /* big enough to hold ctaocrypt sha, but check on init */
|
||||
} CYASSL_SHA256_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_SHA256_Init(CYASSL_SHA256_CTX*);
|
||||
CYASSL_API void CyaSSL_SHA256_Update(CYASSL_SHA256_CTX*, const void*,
|
||||
unsigned long);
|
||||
CYASSL_API void CyaSSL_SHA256_Final(unsigned char*, CYASSL_SHA256_CTX*);
|
||||
|
||||
enum {
|
||||
SHA256_DIGEST_LENGTH = 32
|
||||
};
|
||||
|
||||
|
||||
typedef CYASSL_SHA256_CTX SHA256_CTX;
|
||||
|
||||
#define SHA256_Init CyaSSL_SHA256_Init
|
||||
#define SHA256_Update CyaSSL_SHA256_Update
|
||||
#define SHA256_Final CyaSSL_SHA256_Final
|
||||
|
||||
|
||||
#ifdef CYASSL_SHA384
|
||||
|
||||
typedef struct CYASSL_SHA384_CTX {
|
||||
long long holder[32]; /* big enough, but check on init */
|
||||
} CYASSL_SHA384_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_SHA384_Init(CYASSL_SHA384_CTX*);
|
||||
CYASSL_API void CyaSSL_SHA384_Update(CYASSL_SHA384_CTX*, const void*,
|
||||
unsigned long);
|
||||
CYASSL_API void CyaSSL_SHA384_Final(unsigned char*, CYASSL_SHA384_CTX*);
|
||||
|
||||
enum {
|
||||
SHA384_DIGEST_LENGTH = 48
|
||||
};
|
||||
|
||||
|
||||
typedef CYASSL_SHA384_CTX SHA384_CTX;
|
||||
|
||||
#define SHA384_Init CyaSSL_SHA384_Init
|
||||
#define SHA384_Update CyaSSL_SHA384_Update
|
||||
#define SHA384_Final CyaSSL_SHA384_Final
|
||||
|
||||
#endif /* CYASSL_SHA384 */
|
||||
|
||||
#ifdef CYASSL_SHA512
|
||||
|
||||
typedef struct CYASSL_SHA512_CTX {
|
||||
long long holder[36]; /* big enough, but check on init */
|
||||
} CYASSL_SHA512_CTX;
|
||||
|
||||
CYASSL_API void CyaSSL_SHA512_Init(CYASSL_SHA512_CTX*);
|
||||
CYASSL_API void CyaSSL_SHA512_Update(CYASSL_SHA512_CTX*, const void*,
|
||||
unsigned long);
|
||||
CYASSL_API void CyaSSL_SHA512_Final(unsigned char*, CYASSL_SHA512_CTX*);
|
||||
|
||||
enum {
|
||||
SHA512_DIGEST_LENGTH = 64
|
||||
};
|
||||
|
||||
|
||||
typedef CYASSL_SHA512_CTX SHA512_CTX;
|
||||
|
||||
#define SHA512_Init CyaSSL_SHA512_Init
|
||||
#define SHA512_Update CyaSSL_SHA512_Update
|
||||
#define SHA512_Final CyaSSL_SHA512_Final
|
||||
|
||||
#endif /* CYASSL_SHA512 */
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CYASSL_SHA_H_ */
|
||||
|
||||
#include <wolfssl/openssl/sha.h>
|
||||
|
@ -24,359 +24,4 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CYASSL_OPENSSL_H_
|
||||
#define CYASSL_OPENSSL_H_
|
||||
|
||||
#include <cyassl/ssl.h>
|
||||
#include <wolfssl/ssl.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/* wincrypt.h clashes */
|
||||
#undef X509_NAME
|
||||
#endif
|
||||
|
||||
|
||||
typedef CYASSL SSL;
|
||||
typedef CYASSL_SESSION SSL_SESSION;
|
||||
typedef CYASSL_METHOD SSL_METHOD;
|
||||
typedef CYASSL_CTX SSL_CTX;
|
||||
|
||||
typedef CYASSL_X509 X509;
|
||||
typedef CYASSL_X509_NAME X509_NAME;
|
||||
typedef CYASSL_X509_CHAIN X509_CHAIN;
|
||||
|
||||
|
||||
/* redeclare guard */
|
||||
#define CYASSL_TYPES_DEFINED
|
||||
|
||||
|
||||
typedef CYASSL_EVP_PKEY EVP_PKEY;
|
||||
typedef CYASSL_RSA RSA;
|
||||
typedef CYASSL_DSA DSA;
|
||||
typedef CYASSL_BIO BIO;
|
||||
typedef CYASSL_BIO_METHOD BIO_METHOD;
|
||||
typedef CYASSL_CIPHER SSL_CIPHER;
|
||||
typedef CYASSL_X509_LOOKUP X509_LOOKUP;
|
||||
typedef CYASSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
|
||||
typedef CYASSL_X509_CRL X509_CRL;
|
||||
typedef CYASSL_X509_EXTENSION X509_EXTENSION;
|
||||
typedef CYASSL_ASN1_TIME ASN1_TIME;
|
||||
typedef CYASSL_ASN1_INTEGER ASN1_INTEGER;
|
||||
typedef CYASSL_ASN1_OBJECT ASN1_OBJECT;
|
||||
typedef CYASSL_ASN1_STRING ASN1_STRING;
|
||||
typedef CYASSL_dynlock_value CRYPTO_dynlock_value;
|
||||
|
||||
#define ASN1_UTCTIME CYASSL_ASN1_TIME
|
||||
|
||||
typedef CYASSL_MD4_CTX MD4_CTX;
|
||||
typedef CYASSL_COMP_METHOD COMP_METHOD;
|
||||
typedef CYASSL_X509_STORE X509_STORE;
|
||||
typedef CYASSL_X509_REVOKED X509_REVOKED;
|
||||
typedef CYASSL_X509_OBJECT X509_OBJECT;
|
||||
typedef CYASSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
|
||||
|
||||
#define SSLv3_server_method wolfSSLv3_server_method
|
||||
#define SSLv3_client_method wolfSSLv3_client_method
|
||||
#define TLSv1_server_method wolfTLSv1_server_method
|
||||
#define TLSv1_client_method wolfTLSv1_client_method
|
||||
#define TLSv1_1_server_method wolfTLSv1_1_server_method
|
||||
#define TLSv1_1_client_method wolfTLSv1_1_client_method
|
||||
#define TLSv1_2_server_method wolfTLSv1_2_server_method
|
||||
#define TLSv1_2_client_method wolfTLSv1_2_client_method
|
||||
|
||||
#ifdef CYASSL_DTLS
|
||||
#define DTLSv1_client_method wolfDTLSv1_client_method
|
||||
#define DTLSv1_server_method wolfDTLSv1_server_method
|
||||
#define DTLSv1_2_client_method wolfDTLSv1_2_client_method
|
||||
#define DTLSv1_2_server_method wolfDTLSv1_2_server_method
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#define SSL_CTX_use_certificate_file CyaSSL_CTX_use_certificate_file
|
||||
#define SSL_CTX_use_PrivateKey_file CyaSSL_CTX_use_PrivateKey_file
|
||||
#define SSL_CTX_load_verify_locations CyaSSL_CTX_load_verify_locations
|
||||
#define SSL_CTX_use_certificate_chain_file CyaSSL_CTX_use_certificate_chain_file
|
||||
#define SSL_CTX_use_RSAPrivateKey_file CyaSSL_CTX_use_RSAPrivateKey_file
|
||||
|
||||
#define SSL_use_certificate_file CyaSSL_use_certificate_file
|
||||
#define SSL_use_PrivateKey_file CyaSSL_use_PrivateKey_file
|
||||
#define SSL_use_certificate_chain_file CyaSSL_use_certificate_chain_file
|
||||
#define SSL_use_RSAPrivateKey_file CyaSSL_use_RSAPrivateKey_file
|
||||
#endif
|
||||
|
||||
#define SSL_CTX_new CyaSSL_CTX_new
|
||||
#define SSL_new CyaSSL_new
|
||||
#define SSL_set_fd CyaSSL_set_fd
|
||||
#define SSL_get_fd CyaSSL_get_fd
|
||||
#define SSL_connect CyaSSL_connect
|
||||
|
||||
#define SSL_write CyaSSL_write
|
||||
#define SSL_read CyaSSL_read
|
||||
#define SSL_peek CyaSSL_peek
|
||||
#define SSL_accept CyaSSL_accept
|
||||
#define SSL_CTX_free CyaSSL_CTX_free
|
||||
#define SSL_free CyaSSL_free
|
||||
#define SSL_shutdown CyaSSL_shutdown
|
||||
|
||||
#define SSL_CTX_set_quiet_shutdown CyaSSL_CTX_set_quiet_shutdown
|
||||
#define SSL_set_quiet_shutdown CyaSSL_set_quiet_shutdown
|
||||
#define SSL_get_error CyaSSL_get_error
|
||||
#define SSL_set_session CyaSSL_set_session
|
||||
#define SSL_get_session CyaSSL_get_session
|
||||
#define SSL_flush_sessions CyaSSL_flush_sessions
|
||||
|
||||
#define SSL_CTX_set_verify CyaSSL_CTX_set_verify
|
||||
#define SSL_set_verify CyaSSL_set_verify
|
||||
#define SSL_pending CyaSSL_pending
|
||||
#define SSL_load_error_strings CyaSSL_load_error_strings
|
||||
#define SSL_library_init CyaSSL_library_init
|
||||
#define SSL_CTX_set_session_cache_mode CyaSSL_CTX_set_session_cache_mode
|
||||
#define SSL_CTX_set_cipher_list CyaSSL_CTX_set_cipher_list
|
||||
#define SSL_set_cipher_list CyaSSL_set_cipher_list
|
||||
|
||||
#define ERR_error_string CyaSSL_ERR_error_string
|
||||
#define ERR_error_string_n CyaSSL_ERR_error_string_n
|
||||
#define ERR_reason_error_string CyaSSL_ERR_reason_error_string
|
||||
|
||||
#define SSL_set_ex_data CyaSSL_set_ex_data
|
||||
#define SSL_get_shutdown CyaSSL_get_shutdown
|
||||
#define SSL_set_rfd CyaSSL_set_rfd
|
||||
#define SSL_set_wfd CyaSSL_set_wfd
|
||||
#define SSL_set_shutdown CyaSSL_set_shutdown
|
||||
#define SSL_set_session_id_context CyaSSL_set_session_id_context
|
||||
#define SSL_set_connect_state CyaSSL_set_connect_state
|
||||
#define SSL_set_accept_state CyaSSL_set_accept_state
|
||||
#define SSL_session_reused CyaSSL_session_reused
|
||||
#define SSL_SESSION_free CyaSSL_SESSION_free
|
||||
#define SSL_is_init_finished CyaSSL_is_init_finished
|
||||
|
||||
#define SSL_get_version CyaSSL_get_version
|
||||
#define SSL_get_current_cipher CyaSSL_get_current_cipher
|
||||
#define SSL_get_cipher CyaSSL_get_cipher
|
||||
#define SSL_CIPHER_description CyaSSL_CIPHER_description
|
||||
#define SSL_CIPHER_get_name CyaSSL_CIPHER_get_name
|
||||
#define SSL_get1_session CyaSSL_get1_session
|
||||
|
||||
#define SSL_get_keyblock_size CyaSSL_get_keyblock_size
|
||||
#define SSL_get_keys CyaSSL_get_keys
|
||||
|
||||
#define X509_free CyaSSL_X509_free
|
||||
#define OPENSSL_free CyaSSL_OPENSSL_free
|
||||
|
||||
#define OCSP_parse_url CyaSSL_OCSP_parse_url
|
||||
#define SSLv23_client_method CyaSSLv23_client_method
|
||||
#define SSLv2_client_method CyaSSLv2_client_method
|
||||
#define SSLv2_server_method CyaSSLv2_server_method
|
||||
|
||||
#define MD4_Init CyaSSL_MD4_Init
|
||||
#define MD4_Update CyaSSL_MD4_Update
|
||||
#define MD4_Final CyaSSL_MD4_Final
|
||||
|
||||
#define BIO_new CyaSSL_BIO_new
|
||||
#define BIO_free CyaSSL_BIO_free
|
||||
#define BIO_free_all CyaSSL_BIO_free_all
|
||||
#define BIO_read CyaSSL_BIO_read
|
||||
#define BIO_write CyaSSL_BIO_write
|
||||
#define BIO_push CyaSSL_BIO_push
|
||||
#define BIO_pop CyaSSL_BIO_pop
|
||||
#define BIO_flush CyaSSL_BIO_flush
|
||||
#define BIO_pending CyaSSL_BIO_pending
|
||||
|
||||
#define BIO_get_mem_data CyaSSL_BIO_get_mem_data
|
||||
#define BIO_new_mem_buf CyaSSL_BIO_new_mem_buf
|
||||
|
||||
#define BIO_f_buffer CyaSSL_BIO_f_buffer
|
||||
#define BIO_set_write_buffer_size CyaSSL_BIO_set_write_buffer_size
|
||||
#define BIO_f_ssl CyaSSL_BIO_f_ssl
|
||||
#define BIO_new_socket CyaSSL_BIO_new_socket
|
||||
#define SSL_set_bio CyaSSL_set_bio
|
||||
#define BIO_eof CyaSSL_BIO_eof
|
||||
#define BIO_set_ss CyaSSL_BIO_set_ss
|
||||
|
||||
#define BIO_s_mem CyaSSL_BIO_s_mem
|
||||
#define BIO_f_base64 CyaSSL_BIO_f_base64
|
||||
#define BIO_set_flags CyaSSL_BIO_set_flags
|
||||
|
||||
#define OpenSSL_add_all_algorithms CyaSSL_add_all_algorithms
|
||||
#define SSLeay_add_ssl_algorithms CyaSSL_add_all_algorithms
|
||||
#define SSLeay_add_all_algorithms CyaSSL_add_all_algorithms
|
||||
|
||||
#define RAND_screen CyaSSL_RAND_screen
|
||||
#define RAND_file_name CyaSSL_RAND_file_name
|
||||
#define RAND_write_file CyaSSL_RAND_write_file
|
||||
#define RAND_load_file CyaSSL_RAND_load_file
|
||||
#define RAND_egd CyaSSL_RAND_egd
|
||||
#define RAND_seed CyaSSL_RAND_seed
|
||||
#define RAND_add CyaSSL_RAND_add
|
||||
|
||||
#define COMP_zlib CyaSSL_COMP_zlib
|
||||
#define COMP_rle CyaSSL_COMP_rle
|
||||
#define SSL_COMP_add_compression_method CyaSSL_COMP_add_compression_method
|
||||
|
||||
#define SSL_get_ex_new_index CyaSSL_get_ex_new_index
|
||||
|
||||
#define CRYPTO_set_id_callback CyaSSL_set_id_callback
|
||||
#define CRYPTO_set_locking_callback CyaSSL_set_locking_callback
|
||||
#define CRYPTO_set_dynlock_create_callback CyaSSL_set_dynlock_create_callback
|
||||
#define CRYPTO_set_dynlock_lock_callback CyaSSL_set_dynlock_lock_callback
|
||||
#define CRYPTO_set_dynlock_destroy_callback CyaSSL_set_dynlock_destroy_callback
|
||||
#define CRYPTO_num_locks CyaSSL_num_locks
|
||||
|
||||
#define X509_STORE_CTX_get_current_cert CyaSSL_X509_STORE_CTX_get_current_cert
|
||||
#define X509_STORE_CTX_get_error CyaSSL_X509_STORE_CTX_get_error
|
||||
#define X509_STORE_CTX_get_error_depth CyaSSL_X509_STORE_CTX_get_error_depth
|
||||
|
||||
#define X509_NAME_oneline CyaSSL_X509_NAME_oneline
|
||||
#define X509_get_issuer_name CyaSSL_X509_get_issuer_name
|
||||
#define X509_get_subject_name CyaSSL_X509_get_subject_name
|
||||
#define X509_verify_cert_error_string CyaSSL_X509_verify_cert_error_string
|
||||
|
||||
#define X509_LOOKUP_add_dir CyaSSL_X509_LOOKUP_add_dir
|
||||
#define X509_LOOKUP_load_file CyaSSL_X509_LOOKUP_load_file
|
||||
#define X509_LOOKUP_hash_dir CyaSSL_X509_LOOKUP_hash_dir
|
||||
#define X509_LOOKUP_file CyaSSL_X509_LOOKUP_file
|
||||
|
||||
#define X509_STORE_add_lookup CyaSSL_X509_STORE_add_lookup
|
||||
#define X509_STORE_new CyaSSL_X509_STORE_new
|
||||
#define X509_STORE_get_by_subject CyaSSL_X509_STORE_get_by_subject
|
||||
#define X509_STORE_CTX_init CyaSSL_X509_STORE_CTX_init
|
||||
#define X509_STORE_CTX_cleanup CyaSSL_X509_STORE_CTX_cleanup
|
||||
|
||||
#define X509_CRL_get_lastUpdate CyaSSL_X509_CRL_get_lastUpdate
|
||||
#define X509_CRL_get_nextUpdate CyaSSL_X509_CRL_get_nextUpdate
|
||||
|
||||
#define X509_get_pubkey CyaSSL_X509_get_pubkey
|
||||
#define X509_CRL_verify CyaSSL_X509_CRL_verify
|
||||
#define X509_STORE_CTX_set_error CyaSSL_X509_STORE_CTX_set_error
|
||||
#define X509_OBJECT_free_contents CyaSSL_X509_OBJECT_free_contents
|
||||
#define EVP_PKEY_free CyaSSL_EVP_PKEY_free
|
||||
#define X509_cmp_current_time CyaSSL_X509_cmp_current_time
|
||||
#define sk_X509_REVOKED_num CyaSSL_sk_X509_REVOKED_num
|
||||
#define X509_CRL_get_REVOKED CyaSSL_X509_CRL_get_REVOKED
|
||||
#define sk_X509_REVOKED_value CyaSSL_sk_X509_REVOKED_value
|
||||
|
||||
#define X509_get_serialNumber CyaSSL_X509_get_serialNumber
|
||||
|
||||
#define ASN1_TIME_pr CyaSSL_ASN1_TIME_pr
|
||||
|
||||
#define ASN1_INTEGER_cmp CyaSSL_ASN1_INTEGER_cmp
|
||||
#define ASN1_INTEGER_get CyaSSL_ASN1_INTEGER_get
|
||||
|
||||
#define SSL_load_client_CA_file CyaSSL_load_client_CA_file
|
||||
|
||||
#define SSL_CTX_set_client_CA_list CyaSSL_CTX_set_client_CA_list
|
||||
#define X509_STORE_CTX_get_ex_data CyaSSL_X509_STORE_CTX_get_ex_data
|
||||
#define SSL_get_ex_data_X509_STORE_CTX_idx CyaSSL_get_ex_data_X509_STORE_CTX_idx
|
||||
#define SSL_get_ex_data CyaSSL_get_ex_data
|
||||
|
||||
#define SSL_CTX_set_default_passwd_cb_userdata CyaSSL_CTX_set_default_passwd_cb_userdata
|
||||
#define SSL_CTX_set_default_passwd_cb CyaSSL_CTX_set_default_passwd_cb
|
||||
|
||||
#define SSL_CTX_set_timeout CyaSSL_CTX_set_timeout
|
||||
#define SSL_CTX_set_info_callback CyaSSL_CTX_set_info_callback
|
||||
|
||||
#define ERR_peek_error CyaSSL_ERR_peek_error
|
||||
#define ERR_GET_REASON CyaSSL_ERR_GET_REASON
|
||||
|
||||
#define SSL_alert_type_string CyaSSL_alert_type_string
|
||||
#define SSL_alert_desc_string CyaSSL_alert_desc_string
|
||||
#define SSL_state_string CyaSSL_state_string
|
||||
|
||||
#define RSA_free CyaSSL_RSA_free
|
||||
#define RSA_generate_key CyaSSL_RSA_generate_key
|
||||
#define SSL_CTX_set_tmp_rsa_callback CyaSSL_CTX_set_tmp_rsa_callback
|
||||
|
||||
#define PEM_def_callback CyaSSL_PEM_def_callback
|
||||
|
||||
#define SSL_CTX_sess_accept CyaSSL_CTX_sess_accept
|
||||
#define SSL_CTX_sess_connect CyaSSL_CTX_sess_connect
|
||||
#define SSL_CTX_sess_accept_good CyaSSL_CTX_sess_accept_good
|
||||
#define SSL_CTX_sess_connect_good CyaSSL_CTX_sess_connect_good
|
||||
#define SSL_CTX_sess_accept_renegotiate CyaSSL_CTX_sess_accept_renegotiate
|
||||
#define SSL_CTX_sess_connect_renegotiate CyaSSL_CTX_sess_connect_renegotiate
|
||||
#define SSL_CTX_sess_hits CyaSSL_CTX_sess_hits
|
||||
#define SSL_CTX_sess_cb_hits CyaSSL_CTX_sess_cb_hits
|
||||
#define SSL_CTX_sess_cache_full CyaSSL_CTX_sess_cache_full
|
||||
#define SSL_CTX_sess_misses CyaSSL_CTX_sess_misses
|
||||
#define SSL_CTX_sess_timeouts CyaSSL_CTX_sess_timeouts
|
||||
#define SSL_CTX_sess_number CyaSSL_CTX_sess_number
|
||||
#define SSL_CTX_sess_get_cache_size CyaSSL_CTX_sess_get_cache_size
|
||||
|
||||
|
||||
#define SSL_DEFAULT_CIPHER_LIST CYASSL_DEFAULT_CIPHER_LIST
|
||||
#define RSA_F4 CYASSL_RSA_F4
|
||||
|
||||
#define SSL_CTX_set_psk_client_callback CyaSSL_CTX_set_psk_client_callback
|
||||
#define SSL_set_psk_client_callback CyaSSL_set_psk_client_callback
|
||||
|
||||
#define SSL_get_psk_identity_hint CyaSSL_get_psk_identity_hint
|
||||
#define SSL_get_psk_identity CyaSSL_get_psk_identity
|
||||
|
||||
#define SSL_CTX_use_psk_identity_hint CyaSSL_CTX_use_psk_identity_hint
|
||||
#define SSL_use_psk_identity_hint CyaSSL_use_psk_identity_hint
|
||||
|
||||
#define SSL_CTX_set_psk_server_callback CyaSSL_CTX_set_psk_server_callback
|
||||
#define SSL_set_psk_server_callback CyaSSL_set_psk_server_callback
|
||||
|
||||
#define ERR_get_error_line_data CyaSSL_ERR_get_error_line_data
|
||||
|
||||
#define ERR_get_error CyaSSL_ERR_get_error
|
||||
#define ERR_clear_error CyaSSL_ERR_clear_error
|
||||
|
||||
#define RAND_status CyaSSL_RAND_status
|
||||
#define RAND_bytes CyaSSL_RAND_bytes
|
||||
#define SSLv23_server_method CyaSSLv23_server_method
|
||||
#define SSL_CTX_set_options CyaSSL_CTX_set_options
|
||||
#define SSL_CTX_check_private_key CyaSSL_CTX_check_private_key
|
||||
|
||||
#define ERR_free_strings CyaSSL_ERR_free_strings
|
||||
#define ERR_remove_state CyaSSL_ERR_remove_state
|
||||
#define EVP_cleanup CyaSSL_EVP_cleanup
|
||||
|
||||
#define CRYPTO_cleanup_all_ex_data CyaSSL_cleanup_all_ex_data
|
||||
#define SSL_CTX_set_mode CyaSSL_CTX_set_mode
|
||||
#define SSL_CTX_get_mode CyaSSL_CTX_get_mode
|
||||
#define SSL_CTX_set_default_read_ahead CyaSSL_CTX_set_default_read_ahead
|
||||
|
||||
#define SSL_CTX_sess_set_cache_size CyaSSL_CTX_sess_set_cache_size
|
||||
#define SSL_CTX_set_default_verify_paths CyaSSL_CTX_set_default_verify_paths
|
||||
|
||||
#define SSL_CTX_set_session_id_context CyaSSL_CTX_set_session_id_context
|
||||
#define SSL_get_peer_certificate CyaSSL_get_peer_certificate
|
||||
|
||||
#define SSL_want_read CyaSSL_want_read
|
||||
#define SSL_want_write CyaSSL_want_write
|
||||
|
||||
#define BIO_prf CyaSSL_BIO_prf
|
||||
#define ASN1_UTCTIME_pr CyaSSL_ASN1_UTCTIME_pr
|
||||
|
||||
#define sk_num CyaSSL_sk_num
|
||||
#define sk_value CyaSSL_sk_value
|
||||
|
||||
#define SSL_CTX_get_ex_data CyaSSL_CTX_get_ex_data
|
||||
#define SSL_CTX_set_ex_data CyaSSL_CTX_set_ex_data
|
||||
#define SSL_CTX_sess_set_get_cb CyaSSL_CTX_sess_set_get_cb
|
||||
#define SSL_CTX_sess_set_new_cb CyaSSL_CTX_sess_set_new_cb
|
||||
#define SSL_CTX_sess_set_remove_cb CyaSSL_CTX_sess_set_remove_cb
|
||||
|
||||
#define i2d_SSL_SESSION CyaSSL_i2d_SSL_SESSION
|
||||
#define d2i_SSL_SESSION CyaSSL_d2i_SSL_SESSION
|
||||
#define SSL_SESSION_get_timeout CyaSSL_SESSION_get_timeout
|
||||
#define SSL_SESSION_get_time CyaSSL_SESSION_get_time
|
||||
#define SSL_CTX_get_ex_new_index CyaSSL_CTX_get_ex_new_index
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CyaSSL_openssl_h__ */
|
||||
#include <wolfssl/openssl/ssl.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* stack.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/stack.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* ui.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/ui.h>
|
||||
|
@ -1,3 +1,3 @@
|
||||
/* x509.h for openssl */
|
||||
|
||||
#include <cyassl/openssl/ssl.h>
|
||||
#include <wolfssl/openssl/ssl.h>
|
||||
|
@ -1,2 +1,3 @@
|
||||
/* x509v3.h for openssl */
|
||||
|
||||
#include <wolfssl/openssl/x509v3.h>
|
||||
|
@ -20,4 +20,3 @@
|
||||
*/
|
||||
|
||||
#include <wolfssl/sniffer.h>
|
||||
|
||||
|
410
cyassl/ssl.h
410
cyassl/ssl.h
@ -42,74 +42,104 @@
|
||||
/* wincrypt.h clashes */
|
||||
#undef X509_NAME
|
||||
#endif
|
||||
// typedef CYASSL WOLFSSL;
|
||||
// typedef CYASSL_SESSION WOLFSSL_SESSION;
|
||||
// typedef CYASSL_METHOD WOLFSSL_METHOD;
|
||||
// typedef CYASSL_CTX WOLFSSL_CTX;
|
||||
|
||||
// typedef CYASSL_X509 WOLFSSL_X509;
|
||||
// typedef CYASSL_X509_NAME WOLFSSL_X509_NAME;
|
||||
// typedef CYASSL_X509_CHAIN WOLFSSL_X509_CHAIN;
|
||||
#define CYASSL WOLFSSL
|
||||
#define CYASSL_SESSION WOLFSSL_SESSION
|
||||
#define CYASSL_METHOD WOLFSSL_METHOD
|
||||
#define CYASSL_CTX WOLFSSL_CTX
|
||||
|
||||
#define CYASSL_X509 WOLFSSL_X509
|
||||
#define CYASSL_X509_NAME WOLFSSL_X509_NAME
|
||||
#define CYASSL_X509_CHAIN WOLFSSL_X509_CHAIN
|
||||
|
||||
/* redeclare guard */
|
||||
// #define CYASSL_TYPES_DEFINED
|
||||
#define CYASSL_TYPES_DEFINED WOLFSSL_TYPES_DEFINED
|
||||
|
||||
|
||||
// typedef CYASSL_EVP_PKEY WOLFSSL_EVP_PKEY;
|
||||
// typedef CYASSL_RSA WOLFSSL_RSA;
|
||||
// typedef CYASSL_DSA WOLFSSL_DSA;
|
||||
// typedef CYASSL_BIO WOLFSSL_BIO;
|
||||
// typedef CYASSL_BIO_METHOD WOLFSSL_BIO_METHOD;
|
||||
// typedef CYASSL_CIPHER WOLFSSL_SSL_CIPHER;
|
||||
// typedef CYASSL_X509_LOOKUP WOLFSSL_X509_LOOKUP;
|
||||
// typedef CYASSL_X509_CRL WOLFSSL_X509_CRL;
|
||||
// typedef CYASSL_X509_EXTENSION WOLFSSL_X509_EXTENSION;
|
||||
// typedef CYASSL_ASN1_TIME WOLFSSL_ASN1_TIME;
|
||||
// typedef CYASSL_ASN1_INTEGER WOLFSSL_ASN1_INTEGER;
|
||||
// typedef CYASSL_ASN1_OBJECT WOLFSSL_ASN1_OBJECT;
|
||||
// typedef CYASSL_ASN1_STRING WOLFSSL_ASN1_STRING;
|
||||
// typedef CYASSL_dynlock_value WOLFSSL_dynlock_value;
|
||||
// typedef CYASSL_X509_LOOKUP_METHOD WOLFSSL_X509_LOOKUP_METHOD;
|
||||
#define CYASSL_EVP_PKEY WOLFSSL_EVP_PKEY
|
||||
#define CYASSL_RSA WOLFSSL_RSA
|
||||
#define CYASSL_DSA WOLFSSL_DSA
|
||||
#define CYASSL_BIO WOLFSSL_BIO
|
||||
#define CYASSL_BIO_METHOD WOLFSSL_BIO_METHOD
|
||||
#define CYASSL_CIPHER WOLFSSL_SSL_CIPHER
|
||||
#define CYASSL_X509_LOOKUP WOLFSSL_X509_LOOKUP
|
||||
#define CYASSL_X509_CRL WOLFSSL_X509_CRL
|
||||
#define CYASSL_X509_EXTENSION WOLFSSL_X509_EXTENSION
|
||||
#define CYASSL_ASN1_TIME WOLFSSL_ASN1_TIME
|
||||
#define CYASSL_ASN1_INTEGER WOLFSSL_ASN1_INTEGER
|
||||
#define CYASSL_ASN1_OBJECT WOLFSSL_ASN1_OBJECT
|
||||
#define CYASSL_ASN1_STRING WOLFSSL_ASN1_STRING
|
||||
#define CYASSL_dynlock_value WOLFSSL_dynlock_value
|
||||
#define CYASSL_X509_LOOKUP_METHOD WOLFSSL_X509_LOOKUP_METHOD
|
||||
|
||||
// #define ASN1_UTCTIME CYASSL_ASN1_TIME
|
||||
#define CYASSL_ASN1_TIME WOLFSSL_ASN1_TIME
|
||||
|
||||
// typedef CYASSL_MD4_CTX WOLFSSL_MD4_CTX;
|
||||
// typedef CYASSL_COMP_METHOD WOLFSSL_COMP_METHOD;
|
||||
// typedef CYASSL_X509_STORE WOLFSSL_X509_STORE;
|
||||
// typedef CYASSL_X509_REVOKED WOLFSSL_X509_REVOKED;
|
||||
// typedef CYASSL_X509_OBJECT WOLFSSL_X509_OBJECT;
|
||||
// typedef CYASSL_X509_STORE_CTX WOLFSSL_X509_STORE_CTX;
|
||||
#define CYASSL_MD4_CTX WOLFSSL_MD4_CTX
|
||||
#define CYASSL_COMP_METHOD WOLFSSL_COMP_METHOD
|
||||
#define CYASSL_X509_STORE WOLFSSL_X509_STORE
|
||||
#define CYASSL_X509_REVOKED WOLFSSL_X509_REVOKED
|
||||
#define CYASSL_X509_OBJECT WOLFSSL_X509_OBJECT
|
||||
#define CYASSL_X509_STORE_CTX WOLFSSL_X509_STORE_CTX
|
||||
|
||||
/* ssl.c */
|
||||
#define CYASSL_CLIENT_END WOLFSSL_CLIENT_END
|
||||
#define CYASSL_CERT_MANAGER WOLFSSL_CERT_MANAGER
|
||||
#define CYASSL_USER_CA WOLFSSL_USER_CA
|
||||
#define CYASSL_TLSV1 WOLFSSL_TLSV1
|
||||
#define CYASSL_TLSV1_1 WOLFSSL_TLSV1_1
|
||||
#define CYASSL_TLSV1_2 WOLFSSL_TLSV1_2
|
||||
#define CYASSL_SSLV3 WOLFSSL_SSLV3
|
||||
#define CyaSSL_session_reused wolfSSL_session_reused
|
||||
|
||||
|
||||
/* io.c */
|
||||
#define CYASSL_CBIO_ERR_CONN_CLOSE WOLFSSL_CBIO_ERR_CONN_CLOSE
|
||||
#define CyaSSL_GetIOReadCtx wolfSSL_GetIOReadCtx
|
||||
#define CyaSSL_GetIOWriteCtx wolfSSL_GetIOWriteCtx
|
||||
#define CYASSL_CBIO_ERR_GENERAL WOLFSSL_CBIO_ERR_GENERAL
|
||||
#define CYASSL_CBIO_ERR_ISR WOLFSSL_CBIO_ERR_ISR
|
||||
#define CYASSL_CBIO_ERR_WANT_READ WOLFSSL_CBIO_ERR_WANT_READ
|
||||
#define CYASSL_CBIO_ERR_WANT_WRITE WOLFSSL_CBIO_ERR_WANT_WRITE
|
||||
#define CYASSL_CBIO_ERR_TIMEOUT WOLFSSL_CBIO_ERR_TIMEOUT
|
||||
|
||||
/* tls.c */
|
||||
#define CYASSL_SERVER_END WOLFSSL_SERVER_END
|
||||
#define CYASSL_TLS_HMAC_INNER_SZ WOLFSSL_TLS_HMAC_INNER_SZ
|
||||
|
||||
/* internal.c */
|
||||
#define CyaSSL_ERR_reason_error_string wolfSSL_ERR_reason_error_string
|
||||
#define CYASSL_CHAIN_CA WOLFSSL_CHAIN_CA
|
||||
#define CYASSL_CBIO_ERR_CONN_RST WOLFSSL_CBIO_ERR_CONN_RST
|
||||
#define CYASSL_ALERT_HISTORY WOLFSSL_ALERT_HISTORY
|
||||
|
||||
/* Initialization and Shutdown */
|
||||
// #define CyaSSL_Init wolfSSL_Init
|
||||
// #define CyaSSL_library_init wolfSSL_library_init
|
||||
// #define CyaSSL_Cleanup wolfSSL_Cleanup
|
||||
// #define CyaSSL_shutdown wolfSSL_shutdown
|
||||
#define CyaSSL_Init wolfSSL_Init
|
||||
#define CyaSSL_library_init wolfSSL_library_init
|
||||
#define CyaSSL_Cleanup wolfSSL_Cleanup
|
||||
#define CyaSSL_shutdown wolfSSL_shutdown
|
||||
|
||||
/* Certs and keys */
|
||||
// #define CyaSSL_CTX_load_verify_buffer wolfSSL_CTX_load_verify_buffer
|
||||
// #define CyaSSL_CTX_use_PrivateKey_buffer wolfSSL_CTX_use_PrivateKey_buffer
|
||||
// #define CyaSSL_CTX_use_PrivateKey_buffer wolfSSL_CTX_use_PrivateKey_buffer
|
||||
// #define CyaSSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
||||
// #define CyaSSL_CTX_use_certificate_buffer wolfSSL_CTX_use_certificate_buffer
|
||||
// #define CyaSSL_CTX_use_certificate_chain_buffer wolfSSL_CTX_use_certificate_chain_buffer
|
||||
// #define CyaSSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
||||
// #define CyaSSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
||||
// #define CyaSSL_SetTmpDH wolfSSL_SetTmpDH
|
||||
// #define CyaSSL_use_PrivateKey_buffer wolfSSL_use_PrivateKey_buffer
|
||||
// #define CyaSSL_use_certificate_buffer wolfSSL_use_certificate_buffer
|
||||
// #define CyaSSL_use_certificate_chain_buffer wolfSSL_use_certificate_chain_buffer
|
||||
// #define CyaSSL_CTX_der_load_verify_locations wolfSSL_CTX_der_load_verify_locations
|
||||
// #define CyaSSL_CTX_use_NTRUPrivateKey_file wolfSSL_CTX_use_NTRUPrivateKey_file
|
||||
// #define CyaSSL_KeepArrays wolfSSL_KeepArrays
|
||||
// #define CyaSSL_FreeArrays wolfSSL_FreeArrays
|
||||
#define CyaSSL_CTX_load_verify_buffer wolfSSL_CTX_load_verify_buffer
|
||||
#define CyaSSL_CTX_use_PrivateKey_buffer wolfSSL_CTX_use_PrivateKey_buffer
|
||||
#define CyaSSL_CTX_use_PrivateKey_buffer wolfSSL_CTX_use_PrivateKey_buffer
|
||||
#define CyaSSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
||||
#define CyaSSL_CTX_use_certificate_buffer wolfSSL_CTX_use_certificate_buffer
|
||||
#define CyaSSL_CTX_use_certificate_chain_buffer wolfSSL_CTX_use_certificate_chain_buffer
|
||||
#define CyaSSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
||||
#define CyaSSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
||||
#define CyaSSL_SetTmpDH wolfSSL_SetTmpDH
|
||||
#define CyaSSL_use_PrivateKey_buffer wolfSSL_use_PrivateKey_buffer
|
||||
#define CyaSSL_use_certificate_buffer wolfSSL_use_certificate_buffer
|
||||
#define CyaSSL_use_certificate_chain_buffer wolfSSL_use_certificate_chain_buffer
|
||||
#define CyaSSL_CTX_der_load_verify_locations wolfSSL_CTX_der_load_verify_locations
|
||||
#define CyaSSL_CTX_use_NTRUPrivateKey_file wolfSSL_CTX_use_NTRUPrivateKey_file
|
||||
#define CyaSSL_KeepArrays wolfSSL_KeepArrays
|
||||
#define CyaSSL_FreeArrays wolfSSL_FreeArrays
|
||||
|
||||
/* Context and Session Setup*/
|
||||
#define CyaSSLv3_client_method wolfSSLv3_client_method
|
||||
#define CyaSSLv3_server_method wolfSSLv3_server_method
|
||||
// #define CyaSSLv23_client_method wolfSSLv23_client_method
|
||||
// #define CyaSSLv23_server_method wolfSSLv23_server_method
|
||||
#define CyaSSLv23_client_method wolfSSLv23_client_method
|
||||
#define CyaSSLv23_server_method wolfSSLv23_server_method
|
||||
#define CyaTLSv1_client_method wolfTLSv1_client_method
|
||||
#define CyaTLSv1_server_method wolfTLSv1_server_method
|
||||
#define CyaTLSv1_1_client_method wolfTLSv1_1_client_method
|
||||
@ -120,162 +150,162 @@
|
||||
#define CyaDTLSv1_server_method wolfDTLSv1_server_method
|
||||
#define CyaDTLSv1_2_client_method wolfDTLSv1_2_client_method
|
||||
#define CyaDTLSv1_2_server_method wolfDTLSv1_2_server_method
|
||||
// #define CyaSSL_new wolfSSL_new
|
||||
// #define CyaSSL_free wolfSSL_free
|
||||
// #define CyaSSL_CTX_new wolfSSL_CTX_new
|
||||
// #define CyaSSL_CTX_free wolfSSL_CTX_free
|
||||
// #define CyaSSL_SetVersion wolfSSL_SetVersion
|
||||
// #define CyaSSL_check_domain_name wolfSSL_check_domain_name
|
||||
// #define CyaSSL_set_cipher_list wolfSSL_set_cipher_list
|
||||
// #define CyaSSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
|
||||
// #define CyaSSL_set_compression wolfSSL_set_compression
|
||||
// #define CyaSSL_set_fd wolfSSL_set_fd
|
||||
// #define CyaSSL_set_group_messages wolfSSL_set_group_messages
|
||||
// #define CyaSSL_CTX_set_group_messages wolfSSL_CTX_set_group_messages
|
||||
// #define CyaSSL_set_session wolfSSL_set_session
|
||||
// #define CyaSSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
||||
// #define CyaSSL_set_timeout wolfSSL_set_timeout
|
||||
// #define CyaSSL_CTX_set_timeout wolfSSL_CTX_set_timeout
|
||||
// #define CyaSSL_set_using_nonblock wolfSSL_set_using_nonblock
|
||||
// #define CyaSSL_set_verify wolfSSL_set_verify
|
||||
// #define CyaSSL_CTX_set_verify wolfSSL_CTX_set_verify
|
||||
#define CyaSSL_new wolfSSL_new
|
||||
#define CyaSSL_free wolfSSL_free
|
||||
#define CyaSSL_CTX_new wolfSSL_CTX_new
|
||||
#define CyaSSL_CTX_free wolfSSL_CTX_free
|
||||
#define CyaSSL_SetVersion wolfSSL_SetVersion
|
||||
#define CyaSSL_check_domain_name wolfSSL_check_domain_name
|
||||
#define CyaSSL_set_cipher_list wolfSSL_set_cipher_list
|
||||
#define CyaSSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
|
||||
#define CyaSSL_set_compression wolfSSL_set_compression
|
||||
#define CyaSSL_set_fd wolfSSL_set_fd
|
||||
#define CyaSSL_set_group_messages wolfSSL_set_group_messages
|
||||
#define CyaSSL_CTX_set_group_messages wolfSSL_CTX_set_group_messages
|
||||
#define CyaSSL_set_session wolfSSL_set_session
|
||||
#define CyaSSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
||||
#define CyaSSL_set_timeout wolfSSL_set_timeout
|
||||
#define CyaSSL_CTX_set_timeout wolfSSL_CTX_set_timeout
|
||||
#define CyaSSL_set_using_nonblock wolfSSL_set_using_nonblock
|
||||
#define CyaSSL_set_verify wolfSSL_set_verify
|
||||
#define CyaSSL_CTX_set_verify wolfSSL_CTX_set_verify
|
||||
|
||||
/* Callbacks */
|
||||
// #define CyaSSL_SetIOReadCtx wolfSSL_SetIOReadCtx
|
||||
// #define CyaSSL_SetIOWriteCtx wolfSSL_SetIOWriteCtx
|
||||
// #define CyaSSL_SetIOReadFlags wolfSSL_SetIOReadFlags
|
||||
// #define CyaSSL_SetIOWriteFlags wolfSSL_SetIOWriteFlags
|
||||
// #define CyaSSL_SetIORecv wolfSSL_SetIORecv
|
||||
// #define CyaSSL_SetIOSend wolfSSL_SetIOSend
|
||||
// #define CyaSSL_CTX_SetCACb wolfSSL_CTX_SetCACb
|
||||
// #define CyaSSL_connect_ex wolfSSL_connect_ex
|
||||
// #define CyaSSL_accept_ex wolfSSL_accept_ex
|
||||
// #define CyaSSL_SetLoggingCb wolfSSL_SetLoggingCb
|
||||
// #define CyaSSL_SetTlsHmacInner wolfSSL_SetTlsHmacInner
|
||||
// #define CyaSSL_CTX_SetMacEncryptCb wolfSSL_CTX_SetMacEncryptCb
|
||||
// #define CyaSSL_SetMacEncryptCtx wolfSSL_SetMacEncryptCtx
|
||||
// #define CyaSSL_GetMacEncryptCtx wolfSSL_GetMacEncryptCtx
|
||||
// #define CyaSSL_CTX_SetDecryptVerifyCb wolfSSL_CTX_SetDecryptVerifyCb
|
||||
// #define CyaSSL_SetDecryptVerifyCtx wolfSSL_SetDecryptVerifyCtx
|
||||
// #define CyaSSL_GetDecryptVerifyCtx wolfSSL_GetDecryptVerifyCtx
|
||||
// #define CyaSSL_CTX_SetEccSignCb wolfSSL_CTX_SetEccSignCb
|
||||
// #define CyaSSL_SetEccSignCtx wolfSSL_SetEccSignCtx
|
||||
// #define CyaSSL_GetEccSignCtx wolfSSL_GetEccSignCtx
|
||||
// #define CyaSSL_CTX_SetEccVerifyCb wolfSSL_CTX_SetEccVerifyCb
|
||||
// #define CyaSSL_SetEccVerifyCtx wolfSSL_SetEccVerifyCtx
|
||||
// #define CyaSSL_GetEccVerifyCtx wolfSSL_GetEccVerifyCtx
|
||||
// #define CyaSSL_CTX_SetRsaSignCb wolfSSL_CTX_SetRsaSignCb
|
||||
// #define CyaSSL_SetRsaSignCtx wolfSSL_SetRsaSignCtx
|
||||
// #define CyaSSL_GetRsaSignCtx wolfSSL_GetRsaSignCtx
|
||||
// #define CyaSSL_CTX_SetRsaVerifyCb wolfSSL_CTX_SetRsaVerifyCb
|
||||
// #define CyaSSL_SetRsaVerifyCtx wolfSSL_SetRsaVerifyCtx
|
||||
// #define CyaSSL_GetRsaVerifyCtx wolfSSL_GetRsaVerifyCtx
|
||||
// #define CyaSSL_CTX_SetRsaEncCb wolfSSL_CTX_SetRsaEncCb
|
||||
// #define CyaSSL_SetRsaEncCtx wolfSSL_SetRsaEncCtx
|
||||
// #define CyaSSL_GetRsaEncCtx wolfSSL_GetRsaEncCtx
|
||||
// #define CyaSSL_CTX_SetRsaDecCb wolfSSL_CTX_SetRsaDecCb
|
||||
// #define CyaSSL_SetRsaDecCtx wolfSSL_SetRsaDecCtx
|
||||
// #define CyaSSL_GetRsaDecCtx wolfSSL_GetRsaDecCtx
|
||||
#define CyaSSL_SetIOReadCtx wolfSSL_SetIOReadCtx
|
||||
#define CyaSSL_SetIOWriteCtx wolfSSL_SetIOWriteCtx
|
||||
#define CyaSSL_SetIOReadFlags wolfSSL_SetIOReadFlags
|
||||
#define CyaSSL_SetIOWriteFlags wolfSSL_SetIOWriteFlags
|
||||
#define CyaSSL_SetIORecv wolfSSL_SetIORecv
|
||||
#define CyaSSL_SetIOSend wolfSSL_SetIOSend
|
||||
#define CyaSSL_CTX_SetCACb wolfSSL_CTX_SetCACb
|
||||
#define CyaSSL_connect_ex wolfSSL_connect_ex
|
||||
#define CyaSSL_accept_ex wolfSSL_accept_ex
|
||||
#define CyaSSL_SetLoggingCb wolfSSL_SetLoggingCb
|
||||
#define CyaSSL_SetTlsHmacInner wolfSSL_SetTlsHmacInner
|
||||
#define CyaSSL_CTX_SetMacEncryptCb wolfSSL_CTX_SetMacEncryptCb
|
||||
#define CyaSSL_SetMacEncryptCtx wolfSSL_SetMacEncryptCtx
|
||||
#define CyaSSL_GetMacEncryptCtx wolfSSL_GetMacEncryptCtx
|
||||
#define CyaSSL_CTX_SetDecryptVerifyCb wolfSSL_CTX_SetDecryptVerifyCb
|
||||
#define CyaSSL_SetDecryptVerifyCtx wolfSSL_SetDecryptVerifyCtx
|
||||
#define CyaSSL_GetDecryptVerifyCtx wolfSSL_GetDecryptVerifyCtx
|
||||
#define CyaSSL_CTX_SetEccSignCb wolfSSL_CTX_SetEccSignCb
|
||||
#define CyaSSL_SetEccSignCtx wolfSSL_SetEccSignCtx
|
||||
#define CyaSSL_GetEccSignCtx wolfSSL_GetEccSignCtx
|
||||
#define CyaSSL_CTX_SetEccVerifyCb wolfSSL_CTX_SetEccVerifyCb
|
||||
#define CyaSSL_SetEccVerifyCtx wolfSSL_SetEccVerifyCtx
|
||||
#define CyaSSL_GetEccVerifyCtx wolfSSL_GetEccVerifyCtx
|
||||
#define CyaSSL_CTX_SetRsaSignCb wolfSSL_CTX_SetRsaSignCb
|
||||
#define CyaSSL_SetRsaSignCtx wolfSSL_SetRsaSignCtx
|
||||
#define CyaSSL_GetRsaSignCtx wolfSSL_GetRsaSignCtx
|
||||
#define CyaSSL_CTX_SetRsaVerifyCb wolfSSL_CTX_SetRsaVerifyCb
|
||||
#define CyaSSL_SetRsaVerifyCtx wolfSSL_SetRsaVerifyCtx
|
||||
#define CyaSSL_GetRsaVerifyCtx wolfSSL_GetRsaVerifyCtx
|
||||
#define CyaSSL_CTX_SetRsaEncCb wolfSSL_CTX_SetRsaEncCb
|
||||
#define CyaSSL_SetRsaEncCtx wolfSSL_SetRsaEncCtx
|
||||
#define CyaSSL_GetRsaEncCtx wolfSSL_GetRsaEncCtx
|
||||
#define CyaSSL_CTX_SetRsaDecCb wolfSSL_CTX_SetRsaDecCb
|
||||
#define CyaSSL_SetRsaDecCtx wolfSSL_SetRsaDecCtx
|
||||
#define CyaSSL_GetRsaDecCtx wolfSSL_GetRsaDecCtx
|
||||
|
||||
/* Error Handling and Debugging*/
|
||||
// #define CyaSSL_ERR_error_string wolfSSL_ERR_error_string
|
||||
// #define CyaSSL_ERR_error_string_n wolfSSL_ERR_error_string_n
|
||||
// #define CyaSSL_ERR_print_errors_fp wolfSSL_ERR_print_errors_fp
|
||||
// #define CyaSSL_get_error wolfSSL_get_error
|
||||
// #define CyaSSL_load_error_strings wolfSSL_load_error_strings
|
||||
// #define CyaSSL_want_read wolfSSL_want_read
|
||||
// #define CyaSSL_want_write wolfSSL_want_write
|
||||
// #define CyaSSL_Debugging_ON wolfSSL_Debugging_ON
|
||||
// #define CyaSSL_Debugging_OFF wolfSSL_Debugging_OFF
|
||||
#define CyaSSL_ERR_error_string wolfSSL_ERR_error_string
|
||||
#define CyaSSL_ERR_error_string_n wolfSSL_ERR_error_string_n
|
||||
#define CyaSSL_ERR_print_errors_fp wolfSSL_ERR_print_errors_fp
|
||||
#define CyaSSL_get_error wolfSSL_get_error
|
||||
#define CyaSSL_load_error_strings wolfSSL_load_error_strings
|
||||
#define CyaSSL_want_read wolfSSL_want_read
|
||||
#define CyaSSL_want_write wolfSSL_want_write
|
||||
#define CyaSSL_Debugging_ON wolfSSL_Debugging_ON
|
||||
#define CyaSSL_Debugging_OFF wolfSSL_Debugging_OFF
|
||||
|
||||
/* OCSP and CRL */
|
||||
// #define CyaSSL_CTX_OCSP_set_options wolfSSL_CTX_OCSP_set_options
|
||||
// #define CyaSSL_CTX_OCSP_set_override_url wolfSSL_CTX_OCSP_set_override_url
|
||||
#define CyaSSL_CTX_OCSP_set_options wolfSSL_CTX_OCSP_set_options
|
||||
#define CyaSSL_CTX_OCSP_set_override_url wolfSSL_CTX_OCSP_set_override_url
|
||||
|
||||
/* Informational */
|
||||
// #define CyaSSL_GetObjectSize wolfSSL_GetObjectSize
|
||||
// #define CyaSSL_GetMacSecret wolfSSL_GetMacSecret
|
||||
// #define CyaSSL_GetClientWriteKey wolfSSL_GetClientWriteKey
|
||||
// #define CyaSSL_GetClientWriteIV wolfSSL_GetClientWriteIV
|
||||
// #define CyaSSL_GetServerWriteKey wolfSSL_GetServerWriteKey
|
||||
// #define CyaSSL_GetServerWriteIV wolfSSL_GetServerWriteIV
|
||||
// #define CyaSSL_GetKeySize wolfSSL_GetKeySize
|
||||
// #define CyaSSL_GetSide wolfSSL_GetSide
|
||||
// #define CyaSSL_IsTLSv1_1 wolfSSL_IsTLSv1_1
|
||||
// #define CyaSSL_GetBulkCipher wolfSSL_GetBulkCipher
|
||||
// #define CyaSSL_GetCipherBlockSize wolfSSL_GetCipherBlockSize
|
||||
// #define CyaSSL_GetAeadMacSize wolfSSL_GetAeadMacSize
|
||||
// #define CyaSSL_GetHmacSize wolfSSL_GetHmacSize
|
||||
// #define CyaSSL_GetHmacType wolfSSL_GetHmacType
|
||||
// #define CyaSSL_GetCipherType wolfSSL_GetCipherType
|
||||
#define CyaSSL_GetObjectSize wolfSSL_GetObjectSize
|
||||
#define CyaSSL_GetMacSecret wolfSSL_GetMacSecret
|
||||
#define CyaSSL_GetClientWriteKey wolfSSL_GetClientWriteKey
|
||||
#define CyaSSL_GetClientWriteIV wolfSSL_GetClientWriteIV
|
||||
#define CyaSSL_GetServerWriteKey wolfSSL_GetServerWriteKey
|
||||
#define CyaSSL_GetServerWriteIV wolfSSL_GetServerWriteIV
|
||||
#define CyaSSL_GetKeySize wolfSSL_GetKeySize
|
||||
#define CyaSSL_GetSide wolfSSL_GetSide
|
||||
#define CyaSSL_IsTLSv1_1 wolfSSL_IsTLSv1_1
|
||||
#define CyaSSL_GetBulkCipher wolfSSL_GetBulkCipher
|
||||
#define CyaSSL_GetCipherBlockSize wolfSSL_GetCipherBlockSize
|
||||
#define CyaSSL_GetAeadMacSize wolfSSL_GetAeadMacSize
|
||||
#define CyaSSL_GetHmacSize wolfSSL_GetHmacSize
|
||||
#define CyaSSL_GetHmacType wolfSSL_GetHmacType
|
||||
#define CyaSSL_GetCipherType wolfSSL_GetCipherType
|
||||
|
||||
/* Connection, Session, and I/O */
|
||||
// #define CyaSSL_accept wolfSSL_accept
|
||||
// #define CyaSSL_connect wolfSSL_connect
|
||||
// #define CyaSSL_connect_cert wolfSSL_connect_cert
|
||||
// #define CyaSSL_get_fd wolfSSL_get_fd
|
||||
// #define CyaSSL_get_session wolfSSL_get_session
|
||||
// #define CyaSSL_get_using_nonblock wolfSSL_get_using_nonblock
|
||||
// #define CyaSSL_flush_sessions wolfSSL_flush_sessions
|
||||
// #define CyaSSL_negotiate wolfSSL_negotiate
|
||||
// #define CyaSSL_peek wolfSSL_peek
|
||||
// #define CyaSSL_pending wolfSSL_pending
|
||||
// #define CyaSSL_read wolfSSL_read
|
||||
// #define CyaSSL_recv wolfSSL_recv
|
||||
// #define CyaSSL_send wolfSSL_send
|
||||
// #define CyaSSL_write wolfSSL_write
|
||||
// #define CyaSSL_writev wolfSSL_writev
|
||||
#define CyaSSL_accept wolfSSL_accept
|
||||
#define CyaSSL_connect wolfSSL_connect
|
||||
#define CyaSSL_connect_cert wolfSSL_connect_cert
|
||||
#define CyaSSL_get_fd wolfSSL_get_fd
|
||||
#define CyaSSL_get_session wolfSSL_get_session
|
||||
#define CyaSSL_get_using_nonblock wolfSSL_get_using_nonblock
|
||||
#define CyaSSL_flush_sessions wolfSSL_flush_sessions
|
||||
#define CyaSSL_negotiate wolfSSL_negotiate
|
||||
#define CyaSSL_peek wolfSSL_peek
|
||||
#define CyaSSL_pending wolfSSL_pending
|
||||
#define CyaSSL_read wolfSSL_read
|
||||
#define CyaSSL_recv wolfSSL_recv
|
||||
#define CyaSSL_send wolfSSL_send
|
||||
#define CyaSSL_write wolfSSL_write
|
||||
#define CyaSSL_writev wolfSSL_writev
|
||||
|
||||
/* DTLS Specific */
|
||||
// #define CyaSSL_dtls wolfSSL_dtls
|
||||
// #define CyaSSL_dtls_get_current_timeout wolfSSL_dtls_get_current_timeout
|
||||
// #define CyaSSL_dtls_get_peer wolfSSL_dtls_get_peer
|
||||
// #define CyaSSL_dtls_got_timeout wolfSSL_dtls_got_timeout
|
||||
// #define CyaSSL_dtls_set_peer wolfSSL_dtls_set_peer
|
||||
#define CyaSSL_dtls wolfSSL_dtls
|
||||
#define CyaSSL_dtls_get_current_timeout wolfSSL_dtls_get_current_timeout
|
||||
#define CyaSSL_dtls_get_peer wolfSSL_dtls_get_peer
|
||||
#define CyaSSL_dtls_got_timeout wolfSSL_dtls_got_timeout
|
||||
#define CyaSSL_dtls_set_peer wolfSSL_dtls_set_peer
|
||||
|
||||
/* Memory Abstraction Layer */
|
||||
// #define CyaSSL_Malloc wolfSSL_Malloc
|
||||
// #define CyaSSL_Realloc wolfSSL_Realloc
|
||||
// #define CyaSSL_Free wolfSSL_Free
|
||||
// #define CyaSSL_SetAllocators wolfSSL_SetAllocators
|
||||
#define CyaSSL_Malloc wolfSSL_Malloc
|
||||
#define CyaSSL_Realloc wolfSSL_Realloc
|
||||
#define CyaSSL_Free wolfSSL_Free
|
||||
#define CyaSSL_SetAllocators wolfSSL_SetAllocators
|
||||
|
||||
/* Certificate Manager */
|
||||
// #define CyaSSL_CertManagerDisableCRL wolfSSL_CertManagerDisableCRL
|
||||
// #define CyaSSL_CertManagerEnableCRL wolfSSL_CertManagerEnableCRL
|
||||
// #define CyaSSL_CertManagerFree wolfSSL_CertManagerFree
|
||||
// #define CyaSSL_CertManagerLoadCA wolfSSL_CertManagerLoadCA
|
||||
// #define CyaSSL_CertManagerNew wolfSSL_CertManagerNew
|
||||
// #define CyaSSL_CertManagerVerify wolfSSL_CertManagerVerify
|
||||
// #define CyaSSL_CertManagerVerifyBuffer wolfSSL_CertManagerVerifyBuffer
|
||||
#define CyaSSL_CertManagerDisableCRL wolfSSL_CertManagerDisableCRL
|
||||
#define CyaSSL_CertManagerEnableCRL wolfSSL_CertManagerEnableCRL
|
||||
#define CyaSSL_CertManagerFree wolfSSL_CertManagerFree
|
||||
#define CyaSSL_CertManagerLoadCA wolfSSL_CertManagerLoadCA
|
||||
#define CyaSSL_CertManagerNew wolfSSL_CertManagerNew
|
||||
#define CyaSSL_CertManagerVerify wolfSSL_CertManagerVerify
|
||||
#define CyaSSL_CertManagerVerifyBuffer wolfSSL_CertManagerVerifyBuffer
|
||||
|
||||
/* OpenSSL Compatibility Layer */
|
||||
// #define CyaSSL_X509_get_serial_number wolfSSL_X509_get_serial_number
|
||||
// #define CyaSSL_get_sessionID wolfSSL_get_sessionID
|
||||
// #define CyaSSL_get_peer_chain wolfSSL_get_peer_chain
|
||||
// #define CyaSSL_get_peer_count wolfSSL_get_peer_count
|
||||
// #define CyaSSL_get_peer_length wolfSSL_get_peer_length
|
||||
// #define CyaSSL_get_chain_cert wolfSSL_get_chain_cert
|
||||
// #define CyaSSL_get_chain_cert_pem wolfSSL_get_chain_cert_pem
|
||||
// #define CyaSSL_PemCertToDer wolfSSL_PemCertToDer
|
||||
// #define CyaSSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
||||
// #define CyaSSL_use_certificate_file wolfSSL_use_certificate_file
|
||||
// #define CyaSSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
|
||||
// #define CyaSSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
|
||||
// #define CyaSSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
|
||||
#define CyaSSL_X509_get_serial_number wolfSSL_X509_get_serial_number
|
||||
#define CyaSSL_get_sessionID wolfSSL_get_sessionID
|
||||
#define CyaSSL_get_peer_chain wolfSSL_get_peer_chain
|
||||
#define CyaSSL_get_peer_count wolfSSL_get_peer_count
|
||||
#define CyaSSL_get_peer_length wolfSSL_get_peer_length
|
||||
#define CyaSSL_get_chain_cert wolfSSL_get_chain_cert
|
||||
#define CyaSSL_get_chain_cert_pem wolfSSL_get_chain_cert_pem
|
||||
#define CyaSSL_PemCertToDer wolfSSL_PemCertToDer
|
||||
#define CyaSSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
||||
#define CyaSSL_use_certificate_file wolfSSL_use_certificate_file
|
||||
#define CyaSSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
|
||||
#define CyaSSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
|
||||
#define CyaSSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
|
||||
|
||||
/* TLS Extensions */
|
||||
// #define CyaSSL_CTX_UseSNI wolfSSL_CTX_UseSNI
|
||||
// #define CyaSSL_UseSNI wolfSSL_UseSNI
|
||||
// #define CyaSSL_CTX_SNI_SetOptions wolfSSL_CTX_SNI_SetOptions
|
||||
// #define CyaSSL_SNI_SetOptions wolfSSL_SNI_SetOptions
|
||||
// #define CyaSSL_SNI_GetRequest wolfSSL_SNI_GetRequest
|
||||
// #define CyaSSL_SNI_GetFromBuffer wolfSSL_SNI_GetFromBuffer
|
||||
// #define CyaSSL_CTX_UseMaxFragment wolfSSL_CTX_UseMaxFragment
|
||||
// #define CyaSSL_UseMaxFragment wolfSSL_UseMaxFragment
|
||||
// #define CyaSSL_CTX_UseTruncatedHMAC wolfSSL_CTX_UseTruncatedHMAC
|
||||
// #define CyaSSL_UseTruncatedHMAC wolfSSL_UseTruncatedHMAC
|
||||
// #define CyaSSL_CTX_UseSupportedCurve wolfSSL_CTX_UseSupportedCurve
|
||||
// #define CyaSSL_UseSupportedCurve wolfSSL_UseSupportedCurve
|
||||
#define CyaSSL_CTX_UseSNI wolfSSL_CTX_UseSNI
|
||||
#define CyaSSL_UseSNI wolfSSL_UseSNI
|
||||
#define CyaSSL_CTX_SNI_SetOptions wolfSSL_CTX_SNI_SetOptions
|
||||
#define CyaSSL_SNI_SetOptions wolfSSL_SNI_SetOptions
|
||||
#define CyaSSL_SNI_GetRequest wolfSSL_SNI_GetRequest
|
||||
#define CyaSSL_SNI_GetFromBuffer wolfSSL_SNI_GetFromBuffer
|
||||
#define CyaSSL_CTX_UseMaxFragment wolfSSL_CTX_UseMaxFragment
|
||||
#define CyaSSL_UseMaxFragment wolfSSL_UseMaxFragment
|
||||
#define CyaSSL_CTX_UseTruncatedHMAC wolfSSL_CTX_UseTruncatedHMAC
|
||||
#define CyaSSL_UseTruncatedHMAC wolfSSL_UseTruncatedHMAC
|
||||
#define CyaSSL_CTX_UseSupportedCurve wolfSSL_CTX_UseSupportedCurve
|
||||
#define CyaSSL_UseSupportedCurve wolfSSL_UseSupportedCurve
|
||||
|
||||
|
||||
|
||||
@ -304,6 +334,8 @@
|
||||
#define Arc4FreeCavium wc_Arc4FreeCavium
|
||||
#endif
|
||||
|
||||
/**/
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
40
wolfcrypt/src/include.am
Normal file
40
wolfcrypt/src/include.am
Normal file
@ -0,0 +1,40 @@
|
||||
# vim:ft=automake
|
||||
# All paths should be given relative to the root
|
||||
|
||||
EXTRA_DIST += ctaocrypt/src/misc.c
|
||||
EXTRA_DIST += ctaocrypt/src/asm.c
|
||||
EXTRA_DIST += ctaocrypt/src/aes_asm.asm
|
||||
|
||||
EXTRA_DIST += \
|
||||
ctaocrypt/src/ecc_fp.c \
|
||||
ctaocrypt/src/fp_mont_small.i \
|
||||
ctaocrypt/src/fp_mul_comba_12.i \
|
||||
ctaocrypt/src/fp_mul_comba_17.i \
|
||||
ctaocrypt/src/fp_mul_comba_20.i \
|
||||
ctaocrypt/src/fp_mul_comba_24.i \
|
||||
ctaocrypt/src/fp_mul_comba_28.i \
|
||||
ctaocrypt/src/fp_mul_comba_32.i \
|
||||
ctaocrypt/src/fp_mul_comba_3.i \
|
||||
ctaocrypt/src/fp_mul_comba_48.i \
|
||||
ctaocrypt/src/fp_mul_comba_4.i \
|
||||
ctaocrypt/src/fp_mul_comba_64.i \
|
||||
ctaocrypt/src/fp_mul_comba_6.i \
|
||||
ctaocrypt/src/fp_mul_comba_7.i \
|
||||
ctaocrypt/src/fp_mul_comba_8.i \
|
||||
ctaocrypt/src/fp_mul_comba_9.i \
|
||||
ctaocrypt/src/fp_mul_comba_small_set.i \
|
||||
ctaocrypt/src/fp_sqr_comba_12.i \
|
||||
ctaocrypt/src/fp_sqr_comba_17.i \
|
||||
ctaocrypt/src/fp_sqr_comba_20.i \
|
||||
ctaocrypt/src/fp_sqr_comba_24.i \
|
||||
ctaocrypt/src/fp_sqr_comba_28.i \
|
||||
ctaocrypt/src/fp_sqr_comba_32.i \
|
||||
ctaocrypt/src/fp_sqr_comba_3.i \
|
||||
ctaocrypt/src/fp_sqr_comba_48.i \
|
||||
ctaocrypt/src/fp_sqr_comba_4.i \
|
||||
ctaocrypt/src/fp_sqr_comba_64.i \
|
||||
ctaocrypt/src/fp_sqr_comba_6.i \
|
||||
ctaocrypt/src/fp_sqr_comba_7.i \
|
||||
ctaocrypt/src/fp_sqr_comba_8.i \
|
||||
ctaocrypt/src/fp_sqr_comba_9.i \
|
||||
ctaocrypt/src/fp_sqr_comba_small_set.i
|
@ -2,24 +2,24 @@
|
||||
# All paths should be given relative to the root
|
||||
#
|
||||
|
||||
include cyassl/ctaocrypt/include.am
|
||||
include cyassl/openssl/include.am
|
||||
include wolfssl/wolfcrypt/include.am
|
||||
include wolfssl/openssl/include.am
|
||||
|
||||
EXTRA_DIST+= cyassl/sniffer_error.rc
|
||||
EXTRA_DIST+= wolfssl/sniffer_error.rc
|
||||
|
||||
nobase_include_HEADERS+= \
|
||||
cyassl/error-ssl.h \
|
||||
cyassl/ssl.h \
|
||||
cyassl/sniffer_error.h \
|
||||
cyassl/sniffer.h \
|
||||
cyassl/callbacks.h \
|
||||
cyassl/certs_test.h \
|
||||
cyassl/test.h \
|
||||
cyassl/version.h \
|
||||
cyassl/options.h \
|
||||
cyassl/ocsp.h \
|
||||
cyassl/crl.h
|
||||
wolfssl/error-ssl.h \
|
||||
wolfssl/ssl.h \
|
||||
wolfssl/sniffer_error.h \
|
||||
wolfssl/sniffer.h \
|
||||
wolfssl/callbacks.h \
|
||||
wolfssl/certs_test.h \
|
||||
wolfssl/test.h \
|
||||
wolfssl/version.h \
|
||||
wolfssl/options.h \
|
||||
wolfssl/ocsp.h \
|
||||
wolfssl/crl.h
|
||||
|
||||
noinst_HEADERS+= \
|
||||
cyassl/internal.h
|
||||
wolfssl/internal.h
|
||||
|
||||
|
@ -2,35 +2,35 @@
|
||||
# All paths should be given relative to the root
|
||||
|
||||
nobase_include_HEADERS+= \
|
||||
cyassl/openssl/asn1.h \
|
||||
cyassl/openssl/bio.h \
|
||||
cyassl/openssl/bn.h \
|
||||
cyassl/openssl/conf.h \
|
||||
cyassl/openssl/crypto.h \
|
||||
cyassl/openssl/des.h \
|
||||
cyassl/openssl/dh.h \
|
||||
cyassl/openssl/dsa.h \
|
||||
cyassl/openssl/ecdsa.h \
|
||||
cyassl/openssl/ec.h \
|
||||
cyassl/openssl/engine.h \
|
||||
cyassl/openssl/err.h \
|
||||
cyassl/openssl/evp.h \
|
||||
cyassl/openssl/hmac.h \
|
||||
cyassl/openssl/lhash.h \
|
||||
cyassl/openssl/md4.h \
|
||||
cyassl/openssl/md5.h \
|
||||
cyassl/openssl/ripemd.h \
|
||||
cyassl/openssl/ocsp.h \
|
||||
cyassl/openssl/opensslconf.h \
|
||||
cyassl/openssl/opensslv.h \
|
||||
cyassl/openssl/ossl_typ.h \
|
||||
cyassl/openssl/pem.h \
|
||||
cyassl/openssl/pkcs12.h \
|
||||
cyassl/openssl/rand.h \
|
||||
cyassl/openssl/rsa.h \
|
||||
cyassl/openssl/sha.h \
|
||||
cyassl/openssl/ssl.h \
|
||||
cyassl/openssl/stack.h \
|
||||
cyassl/openssl/ui.h \
|
||||
cyassl/openssl/x509.h \
|
||||
cyassl/openssl/x509v3.h
|
||||
wolfssl/openssl/asn1.h \
|
||||
wolfssl/openssl/bio.h \
|
||||
wolfssl/openssl/bn.h \
|
||||
wolfssl/openssl/conf.h \
|
||||
wolfssl/openssl/crypto.h \
|
||||
wolfssl/openssl/des.h \
|
||||
wolfssl/openssl/dh.h \
|
||||
wolfssl/openssl/dsa.h \
|
||||
wolfssl/openssl/ecdsa.h \
|
||||
wolfssl/openssl/ec.h \
|
||||
wolfssl/openssl/engine.h \
|
||||
wolfssl/openssl/err.h \
|
||||
wolfssl/openssl/evp.h \
|
||||
wolfssl/openssl/hmac.h \
|
||||
wolfssl/openssl/lhash.h \
|
||||
wolfssl/openssl/md4.h \
|
||||
wolfssl/openssl/md5.h \
|
||||
wolfssl/openssl/ripemd.h \
|
||||
wolfssl/openssl/ocsp.h \
|
||||
wolfssl/openssl/opensslconf.h \
|
||||
wolfssl/openssl/opensslv.h \
|
||||
wolfssl/openssl/ossl_typ.h \
|
||||
wolfssl/openssl/pem.h \
|
||||
wolfssl/openssl/pkcs12.h \
|
||||
wolfssl/openssl/rand.h \
|
||||
wolfssl/openssl/rsa.h \
|
||||
wolfssl/openssl/sha.h \
|
||||
wolfssl/openssl/ssl.h \
|
||||
wolfssl/openssl/stack.h \
|
||||
wolfssl/openssl/ui.h \
|
||||
wolfssl/openssl/x509.h \
|
||||
wolfssl/openssl/x509v3.h
|
||||
|
@ -2,14 +2,14 @@
|
||||
*
|
||||
* Copyright (C) 2006-2014 wolfSSL Inc.
|
||||
*
|
||||
* This file is part of CyaSSL.
|
||||
* This file is part of wolfSSL.
|
||||
*
|
||||
* CyaSSL is free software; you can redistribute it and/or modify
|
||||
* wolfSSL is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* CyaSSL is distributed in the hope that it will be useful,
|
||||
* wolfSSL is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
@ -20,15 +20,18 @@
|
||||
*/
|
||||
|
||||
|
||||
/* ssl.h defines openssl compatibility layer
|
||||
/* ssl.h defines wolfssl_openssl compatibility layer
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CYASSL_OPENSSL_H_
|
||||
#define CYASSL_OPENSSL_H_
|
||||
#ifndef WOLFSSL_OPENSSL_H_
|
||||
#define WOLFSSL_OPENSSL_H_
|
||||
|
||||
/* wolfssl_cyassl compatibility layer */
|
||||
#include <cyassl/ssl.h>
|
||||
|
||||
/* wolfssl ssl.h */
|
||||
#include <wolfssl/ssl.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -41,44 +44,44 @@
|
||||
#endif
|
||||
|
||||
|
||||
typedef CYASSL SSL;
|
||||
typedef CYASSL_SESSION SSL_SESSION;
|
||||
typedef CYASSL_METHOD SSL_METHOD;
|
||||
typedef CYASSL_CTX SSL_CTX;
|
||||
typedef WOLFSSL SSL;
|
||||
typedef WOLFSSL_SESSION SSL_SESSION;
|
||||
typedef WOLFSSL_METHOD SSL_METHOD;
|
||||
typedef WOLFSSL_CTX SSL_CTX;
|
||||
|
||||
typedef CYASSL_X509 X509;
|
||||
typedef CYASSL_X509_NAME X509_NAME;
|
||||
typedef CYASSL_X509_CHAIN X509_CHAIN;
|
||||
typedef WOLFSSL_X509 X509;
|
||||
typedef WOLFSSL_X509_NAME X509_NAME;
|
||||
typedef WOLFSSL_X509_CHAIN X509_CHAIN;
|
||||
|
||||
|
||||
/* redeclare guard */
|
||||
#define CYASSL_TYPES_DEFINED
|
||||
#define WOLFSSL_TYPES_DEFINED
|
||||
|
||||
|
||||
typedef CYASSL_EVP_PKEY EVP_PKEY;
|
||||
typedef CYASSL_RSA RSA;
|
||||
typedef CYASSL_DSA DSA;
|
||||
typedef CYASSL_BIO BIO;
|
||||
typedef CYASSL_BIO_METHOD BIO_METHOD;
|
||||
typedef CYASSL_CIPHER SSL_CIPHER;
|
||||
typedef CYASSL_X509_LOOKUP X509_LOOKUP;
|
||||
typedef CYASSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
|
||||
typedef CYASSL_X509_CRL X509_CRL;
|
||||
typedef CYASSL_X509_EXTENSION X509_EXTENSION;
|
||||
typedef CYASSL_ASN1_TIME ASN1_TIME;
|
||||
typedef CYASSL_ASN1_INTEGER ASN1_INTEGER;
|
||||
typedef CYASSL_ASN1_OBJECT ASN1_OBJECT;
|
||||
typedef CYASSL_ASN1_STRING ASN1_STRING;
|
||||
typedef CYASSL_dynlock_value CRYPTO_dynlock_value;
|
||||
typedef WOLFSSL_EVP_PKEY EVP_PKEY;
|
||||
typedef WOLFSSL_RSA RSA;
|
||||
typedef WOLFSSL_DSA DSA;
|
||||
typedef WOLFSSL_BIO BIO;
|
||||
typedef WOLFSSL_BIO_METHOD BIO_METHOD;
|
||||
typedef WOLFSSL_CIPHER SSL_CIPHER;
|
||||
typedef WOLFSSL_X509_LOOKUP X509_LOOKUP;
|
||||
typedef WOLFSSL_X509_LOOKUP_METHOD X509_LOOKUP_METHOD;
|
||||
typedef WOLFSSL_X509_CRL X509_CRL;
|
||||
typedef WOLFSSL_X509_EXTENSION X509_EXTENSION;
|
||||
typedef WOLFSSL_ASN1_TIME ASN1_TIME;
|
||||
typedef WOLFSSL_ASN1_INTEGER ASN1_INTEGER;
|
||||
typedef WOLFSSL_ASN1_OBJECT ASN1_OBJECT;
|
||||
typedef WOLFSSL_ASN1_STRING ASN1_STRING;
|
||||
typedef WOLFSSL_dynlock_value CRYPTO_dynlock_value;
|
||||
|
||||
#define ASN1_UTCTIME CYASSL_ASN1_TIME
|
||||
#define ASN1_UTCTIME WOLFSSL_ASN1_TIME
|
||||
|
||||
typedef CYASSL_MD4_CTX MD4_CTX;
|
||||
typedef CYASSL_COMP_METHOD COMP_METHOD;
|
||||
typedef CYASSL_X509_STORE X509_STORE;
|
||||
typedef CYASSL_X509_REVOKED X509_REVOKED;
|
||||
typedef CYASSL_X509_OBJECT X509_OBJECT;
|
||||
typedef CYASSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
typedef WOLFSSL_MD4_CTX MD4_CTX;
|
||||
typedef WOLFSSL_COMP_METHOD COMP_METHOD;
|
||||
typedef WOLFSSL_X509_STORE X509_STORE;
|
||||
typedef WOLFSSL_X509_REVOKED X509_REVOKED;
|
||||
typedef WOLFSSL_X509_OBJECT X509_OBJECT;
|
||||
typedef WOLFSSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
|
||||
|
||||
#define SSLv3_server_method wolfSSLv3_server_method
|
||||
@ -90,7 +93,7 @@ typedef CYASSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
#define TLSv1_2_server_method wolfTLSv1_2_server_method
|
||||
#define TLSv1_2_client_method wolfTLSv1_2_client_method
|
||||
|
||||
#ifdef CYASSL_DTLS
|
||||
#ifdef WOLFSSL_DTLS
|
||||
#define DTLSv1_client_method wolfDTLSv1_client_method
|
||||
#define DTLSv1_server_method wolfDTLSv1_server_method
|
||||
#define DTLSv1_2_client_method wolfDTLSv1_2_client_method
|
||||
@ -99,278 +102,278 @@ typedef CYASSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
|
||||
|
||||
#ifndef NO_FILESYSTEM
|
||||
#define SSL_CTX_use_certificate_file CyaSSL_CTX_use_certificate_file
|
||||
#define SSL_CTX_use_PrivateKey_file CyaSSL_CTX_use_PrivateKey_file
|
||||
#define SSL_CTX_load_verify_locations CyaSSL_CTX_load_verify_locations
|
||||
#define SSL_CTX_use_certificate_chain_file CyaSSL_CTX_use_certificate_chain_file
|
||||
#define SSL_CTX_use_RSAPrivateKey_file CyaSSL_CTX_use_RSAPrivateKey_file
|
||||
#define SSL_CTX_use_certificate_file wolfSSL_CTX_use_certificate_file
|
||||
#define SSL_CTX_use_PrivateKey_file wolfSSL_CTX_use_PrivateKey_file
|
||||
#define SSL_CTX_load_verify_locations wolfSSL_CTX_load_verify_locations
|
||||
#define SSL_CTX_use_certificate_chain_file wolfSSL_CTX_use_certificate_chain_file
|
||||
#define SSL_CTX_use_RSAPrivateKey_file wolfSSL_CTX_use_RSAPrivateKey_file
|
||||
|
||||
#define SSL_use_certificate_file CyaSSL_use_certificate_file
|
||||
#define SSL_use_PrivateKey_file CyaSSL_use_PrivateKey_file
|
||||
#define SSL_use_certificate_chain_file CyaSSL_use_certificate_chain_file
|
||||
#define SSL_use_RSAPrivateKey_file CyaSSL_use_RSAPrivateKey_file
|
||||
#define SSL_use_certificate_file wolfSSL_use_certificate_file
|
||||
#define SSL_use_PrivateKey_file wolfSSL_use_PrivateKey_file
|
||||
#define SSL_use_certificate_chain_file wolfSSL_use_certificate_chain_file
|
||||
#define SSL_use_RSAPrivateKey_file wolfSSL_use_RSAPrivateKey_file
|
||||
#endif
|
||||
|
||||
#define SSL_CTX_new CyaSSL_CTX_new
|
||||
#define SSL_new CyaSSL_new
|
||||
#define SSL_set_fd CyaSSL_set_fd
|
||||
#define SSL_get_fd CyaSSL_get_fd
|
||||
#define SSL_connect CyaSSL_connect
|
||||
#define SSL_CTX_new wolfSSL_CTX_new
|
||||
#define SSL_new wolfSSL_new
|
||||
#define SSL_set_fd wolfSSL_set_fd
|
||||
#define SSL_get_fd wolfSSL_get_fd
|
||||
#define SSL_connect wolfSSL_connect
|
||||
|
||||
#define SSL_write CyaSSL_write
|
||||
#define SSL_read CyaSSL_read
|
||||
#define SSL_peek CyaSSL_peek
|
||||
#define SSL_accept CyaSSL_accept
|
||||
#define SSL_CTX_free CyaSSL_CTX_free
|
||||
#define SSL_free CyaSSL_free
|
||||
#define SSL_shutdown CyaSSL_shutdown
|
||||
#define SSL_write wolfSSL_write
|
||||
#define SSL_read wolfSSL_read
|
||||
#define SSL_peek wolfSSL_peek
|
||||
#define SSL_accept wolfSSL_accept
|
||||
#define SSL_CTX_free wolfSSL_CTX_free
|
||||
#define SSL_free wolfSSL_free
|
||||
#define SSL_shutdown wolfSSL_shutdown
|
||||
|
||||
#define SSL_CTX_set_quiet_shutdown CyaSSL_CTX_set_quiet_shutdown
|
||||
#define SSL_set_quiet_shutdown CyaSSL_set_quiet_shutdown
|
||||
#define SSL_get_error CyaSSL_get_error
|
||||
#define SSL_set_session CyaSSL_set_session
|
||||
#define SSL_get_session CyaSSL_get_session
|
||||
#define SSL_flush_sessions CyaSSL_flush_sessions
|
||||
#define SSL_CTX_set_quiet_shutdown wolfSSL_CTX_set_quiet_shutdown
|
||||
#define SSL_set_quiet_shutdown wolfSSL_set_quiet_shutdown
|
||||
#define SSL_get_error wolfSSL_get_error
|
||||
#define SSL_set_session wolfSSL_set_session
|
||||
#define SSL_get_session wolfSSL_get_session
|
||||
#define SSL_flush_sessions wolfSSL_flush_sessions
|
||||
|
||||
#define SSL_CTX_set_verify CyaSSL_CTX_set_verify
|
||||
#define SSL_set_verify CyaSSL_set_verify
|
||||
#define SSL_pending CyaSSL_pending
|
||||
#define SSL_load_error_strings CyaSSL_load_error_strings
|
||||
#define SSL_library_init CyaSSL_library_init
|
||||
#define SSL_CTX_set_session_cache_mode CyaSSL_CTX_set_session_cache_mode
|
||||
#define SSL_CTX_set_cipher_list CyaSSL_CTX_set_cipher_list
|
||||
#define SSL_set_cipher_list CyaSSL_set_cipher_list
|
||||
#define SSL_CTX_set_verify wolfSSL_CTX_set_verify
|
||||
#define SSL_set_verify wolfSSL_set_verify
|
||||
#define SSL_pending wolfSSL_pending
|
||||
#define SSL_load_error_strings wolfSSL_load_error_strings
|
||||
#define SSL_library_init wolfSSL_library_init
|
||||
#define SSL_CTX_set_session_cache_mode wolfSSL_CTX_set_session_cache_mode
|
||||
#define SSL_CTX_set_cipher_list wolfSSL_CTX_set_cipher_list
|
||||
#define SSL_set_cipher_list wolfSSL_set_cipher_list
|
||||
|
||||
#define ERR_error_string CyaSSL_ERR_error_string
|
||||
#define ERR_error_string_n CyaSSL_ERR_error_string_n
|
||||
#define ERR_reason_error_string CyaSSL_ERR_reason_error_string
|
||||
#define ERR_error_string wolfSSL_ERR_error_string
|
||||
#define ERR_error_string_n wolfSSL_ERR_error_string_n
|
||||
#define ERR_reason_error_string wolfSSL_ERR_reason_error_string
|
||||
|
||||
#define SSL_set_ex_data CyaSSL_set_ex_data
|
||||
#define SSL_get_shutdown CyaSSL_get_shutdown
|
||||
#define SSL_set_rfd CyaSSL_set_rfd
|
||||
#define SSL_set_wfd CyaSSL_set_wfd
|
||||
#define SSL_set_shutdown CyaSSL_set_shutdown
|
||||
#define SSL_set_session_id_context CyaSSL_set_session_id_context
|
||||
#define SSL_set_connect_state CyaSSL_set_connect_state
|
||||
#define SSL_set_accept_state CyaSSL_set_accept_state
|
||||
#define SSL_session_reused CyaSSL_session_reused
|
||||
#define SSL_SESSION_free CyaSSL_SESSION_free
|
||||
#define SSL_is_init_finished CyaSSL_is_init_finished
|
||||
#define SSL_set_ex_data wolfSSL_set_ex_data
|
||||
#define SSL_get_shutdown wolfSSL_get_shutdown
|
||||
#define SSL_set_rfd wolfSSL_set_rfd
|
||||
#define SSL_set_wfd wolfSSL_set_wfd
|
||||
#define SSL_set_shutdown wolfSSL_set_shutdown
|
||||
#define SSL_set_session_id_context wolfSSL_set_session_id_context
|
||||
#define SSL_set_connect_state wolfSSL_set_connect_state
|
||||
#define SSL_set_accept_state wolfSSL_set_accept_state
|
||||
#define SSL_session_reused wolfSSL_session_reused
|
||||
#define SSL_SESSION_free wolfSSL_SESSION_free
|
||||
#define SSL_is_init_finished wolfSSL_is_init_finished
|
||||
|
||||
#define SSL_get_version CyaSSL_get_version
|
||||
#define SSL_get_current_cipher CyaSSL_get_current_cipher
|
||||
#define SSL_get_cipher CyaSSL_get_cipher
|
||||
#define SSL_CIPHER_description CyaSSL_CIPHER_description
|
||||
#define SSL_CIPHER_get_name CyaSSL_CIPHER_get_name
|
||||
#define SSL_get1_session CyaSSL_get1_session
|
||||
#define SSL_get_version wolfSSL_get_version
|
||||
#define SSL_get_current_cipher wolfSSL_get_current_cipher
|
||||
#define SSL_get_cipher wolfSSL_get_cipher
|
||||
#define SSL_CIPHER_description wolfSSL_CIPHER_description
|
||||
#define SSL_CIPHER_get_name wolfSSL_CIPHER_get_name
|
||||
#define SSL_get1_session wolfSSL_get1_session
|
||||
|
||||
#define SSL_get_keyblock_size CyaSSL_get_keyblock_size
|
||||
#define SSL_get_keys CyaSSL_get_keys
|
||||
#define SSL_get_keyblock_size wolfSSL_get_keyblock_size
|
||||
#define SSL_get_keys wolfSSL_get_keys
|
||||
|
||||
#define X509_free CyaSSL_X509_free
|
||||
#define OPENSSL_free CyaSSL_OPENSSL_free
|
||||
#define X509_free wolfSSL_X509_free
|
||||
#define OPENSSL_free wolfSSL_OPENSSL_free
|
||||
|
||||
#define OCSP_parse_url CyaSSL_OCSP_parse_url
|
||||
#define SSLv23_client_method CyaSSLv23_client_method
|
||||
#define SSLv2_client_method CyaSSLv2_client_method
|
||||
#define SSLv2_server_method CyaSSLv2_server_method
|
||||
#define OCSP_parse_url wolfSSL_OCSP_parse_url
|
||||
#define SSLv23_client_method wolfSSLv23_client_method
|
||||
#define SSLv2_client_method wolfSSLv2_client_method
|
||||
#define SSLv2_server_method wolfSSLv2_server_method
|
||||
|
||||
#define MD4_Init CyaSSL_MD4_Init
|
||||
#define MD4_Update CyaSSL_MD4_Update
|
||||
#define MD4_Final CyaSSL_MD4_Final
|
||||
#define MD4_Init wolfSSL_MD4_Init
|
||||
#define MD4_Update wolfSSL_MD4_Update
|
||||
#define MD4_Final wolfSSL_MD4_Final
|
||||
|
||||
#define BIO_new CyaSSL_BIO_new
|
||||
#define BIO_free CyaSSL_BIO_free
|
||||
#define BIO_free_all CyaSSL_BIO_free_all
|
||||
#define BIO_read CyaSSL_BIO_read
|
||||
#define BIO_write CyaSSL_BIO_write
|
||||
#define BIO_push CyaSSL_BIO_push
|
||||
#define BIO_pop CyaSSL_BIO_pop
|
||||
#define BIO_flush CyaSSL_BIO_flush
|
||||
#define BIO_pending CyaSSL_BIO_pending
|
||||
#define BIO_new wolfSSL_BIO_new
|
||||
#define BIO_free wolfSSL_BIO_free
|
||||
#define BIO_free_all wolfSSL_BIO_free_all
|
||||
#define BIO_read wolfSSL_BIO_read
|
||||
#define BIO_write wolfSSL_BIO_write
|
||||
#define BIO_push wolfSSL_BIO_push
|
||||
#define BIO_pop wolfSSL_BIO_pop
|
||||
#define BIO_flush wolfSSL_BIO_flush
|
||||
#define BIO_pending wolfSSL_BIO_pending
|
||||
|
||||
#define BIO_get_mem_data CyaSSL_BIO_get_mem_data
|
||||
#define BIO_new_mem_buf CyaSSL_BIO_new_mem_buf
|
||||
#define BIO_get_mem_data wolfSSL_BIO_get_mem_data
|
||||
#define BIO_new_mem_buf wolfSSL_BIO_new_mem_buf
|
||||
|
||||
#define BIO_f_buffer CyaSSL_BIO_f_buffer
|
||||
#define BIO_set_write_buffer_size CyaSSL_BIO_set_write_buffer_size
|
||||
#define BIO_f_ssl CyaSSL_BIO_f_ssl
|
||||
#define BIO_new_socket CyaSSL_BIO_new_socket
|
||||
#define SSL_set_bio CyaSSL_set_bio
|
||||
#define BIO_eof CyaSSL_BIO_eof
|
||||
#define BIO_set_ss CyaSSL_BIO_set_ss
|
||||
#define BIO_f_buffer wolfSSL_BIO_f_buffer
|
||||
#define BIO_set_write_buffer_size wolfSSL_BIO_set_write_buffer_size
|
||||
#define BIO_f_ssl wolfSSL_BIO_f_ssl
|
||||
#define BIO_new_socket wolfSSL_BIO_new_socket
|
||||
#define SSL_set_bio wolfSSL_set_bio
|
||||
#define BIO_eof wolfSSL_BIO_eof
|
||||
#define BIO_set_ss wolfSSL_BIO_set_ss
|
||||
|
||||
#define BIO_s_mem CyaSSL_BIO_s_mem
|
||||
#define BIO_f_base64 CyaSSL_BIO_f_base64
|
||||
#define BIO_set_flags CyaSSL_BIO_set_flags
|
||||
#define BIO_s_mem wolfSSL_BIO_s_mem
|
||||
#define BIO_f_base64 wolfSSL_BIO_f_base64
|
||||
#define BIO_set_flags wolfSSL_BIO_set_flags
|
||||
|
||||
#define OpenSSL_add_all_algorithms CyaSSL_add_all_algorithms
|
||||
#define SSLeay_add_ssl_algorithms CyaSSL_add_all_algorithms
|
||||
#define SSLeay_add_all_algorithms CyaSSL_add_all_algorithms
|
||||
#define OpenSSL_add_all_algorithms wolfSSL_add_all_algorithms
|
||||
#define SSLeay_add_ssl_algorithms wolfSSL_add_all_algorithms
|
||||
#define SSLeay_add_all_algorithms wolfSSL_add_all_algorithms
|
||||
|
||||
#define RAND_screen CyaSSL_RAND_screen
|
||||
#define RAND_file_name CyaSSL_RAND_file_name
|
||||
#define RAND_write_file CyaSSL_RAND_write_file
|
||||
#define RAND_load_file CyaSSL_RAND_load_file
|
||||
#define RAND_egd CyaSSL_RAND_egd
|
||||
#define RAND_seed CyaSSL_RAND_seed
|
||||
#define RAND_add CyaSSL_RAND_add
|
||||
#define RAND_screen wolfSSL_RAND_screen
|
||||
#define RAND_file_name wolfSSL_RAND_file_name
|
||||
#define RAND_write_file wolfSSL_RAND_write_file
|
||||
#define RAND_load_file wolfSSL_RAND_load_file
|
||||
#define RAND_egd wolfSSL_RAND_egd
|
||||
#define RAND_seed wolfSSL_RAND_seed
|
||||
#define RAND_add wolfSSL_RAND_add
|
||||
|
||||
#define COMP_zlib CyaSSL_COMP_zlib
|
||||
#define COMP_rle CyaSSL_COMP_rle
|
||||
#define SSL_COMP_add_compression_method CyaSSL_COMP_add_compression_method
|
||||
#define COMP_zlib wolfSSL_COMP_zlib
|
||||
#define COMP_rle wolfSSL_COMP_rle
|
||||
#define SSL_COMP_add_compression_method wolfSSL_COMP_add_compression_method
|
||||
|
||||
#define SSL_get_ex_new_index CyaSSL_get_ex_new_index
|
||||
#define SSL_get_ex_new_index wolfSSL_get_ex_new_index
|
||||
|
||||
#define CRYPTO_set_id_callback CyaSSL_set_id_callback
|
||||
#define CRYPTO_set_locking_callback CyaSSL_set_locking_callback
|
||||
#define CRYPTO_set_dynlock_create_callback CyaSSL_set_dynlock_create_callback
|
||||
#define CRYPTO_set_dynlock_lock_callback CyaSSL_set_dynlock_lock_callback
|
||||
#define CRYPTO_set_dynlock_destroy_callback CyaSSL_set_dynlock_destroy_callback
|
||||
#define CRYPTO_num_locks CyaSSL_num_locks
|
||||
#define CRYPTO_set_id_callback wolfSSL_set_id_callback
|
||||
#define CRYPTO_set_locking_callback wolfSSL_set_locking_callback
|
||||
#define CRYPTO_set_dynlock_create_callback wolfSSL_set_dynlock_create_callback
|
||||
#define CRYPTO_set_dynlock_lock_callback wolfSSL_set_dynlock_lock_callback
|
||||
#define CRYPTO_set_dynlock_destroy_callback wolfSSL_set_dynlock_destroy_callback
|
||||
#define CRYPTO_num_locks wolfSSL_num_locks
|
||||
|
||||
#define X509_STORE_CTX_get_current_cert CyaSSL_X509_STORE_CTX_get_current_cert
|
||||
#define X509_STORE_CTX_get_error CyaSSL_X509_STORE_CTX_get_error
|
||||
#define X509_STORE_CTX_get_error_depth CyaSSL_X509_STORE_CTX_get_error_depth
|
||||
#define X509_STORE_CTX_get_current_cert wolfSSL_X509_STORE_CTX_get_current_cert
|
||||
#define X509_STORE_CTX_get_error wolfSSL_X509_STORE_CTX_get_error
|
||||
#define X509_STORE_CTX_get_error_depth wolfSSL_X509_STORE_CTX_get_error_depth
|
||||
|
||||
#define X509_NAME_oneline CyaSSL_X509_NAME_oneline
|
||||
#define X509_get_issuer_name CyaSSL_X509_get_issuer_name
|
||||
#define X509_get_subject_name CyaSSL_X509_get_subject_name
|
||||
#define X509_verify_cert_error_string CyaSSL_X509_verify_cert_error_string
|
||||
#define X509_NAME_oneline wolfSSL_X509_NAME_oneline
|
||||
#define X509_get_issuer_name wolfSSL_X509_get_issuer_name
|
||||
#define X509_get_subject_name wolfSSL_X509_get_subject_name
|
||||
#define X509_verify_cert_error_string wolfSSL_X509_verify_cert_error_string
|
||||
|
||||
#define X509_LOOKUP_add_dir CyaSSL_X509_LOOKUP_add_dir
|
||||
#define X509_LOOKUP_load_file CyaSSL_X509_LOOKUP_load_file
|
||||
#define X509_LOOKUP_hash_dir CyaSSL_X509_LOOKUP_hash_dir
|
||||
#define X509_LOOKUP_file CyaSSL_X509_LOOKUP_file
|
||||
#define X509_LOOKUP_add_dir wolfSSL_X509_LOOKUP_add_dir
|
||||
#define X509_LOOKUP_load_file wolfSSL_X509_LOOKUP_load_file
|
||||
#define X509_LOOKUP_hash_dir wolfSSL_X509_LOOKUP_hash_dir
|
||||
#define X509_LOOKUP_file wolfSSL_X509_LOOKUP_file
|
||||
|
||||
#define X509_STORE_add_lookup CyaSSL_X509_STORE_add_lookup
|
||||
#define X509_STORE_new CyaSSL_X509_STORE_new
|
||||
#define X509_STORE_get_by_subject CyaSSL_X509_STORE_get_by_subject
|
||||
#define X509_STORE_CTX_init CyaSSL_X509_STORE_CTX_init
|
||||
#define X509_STORE_CTX_cleanup CyaSSL_X509_STORE_CTX_cleanup
|
||||
#define X509_STORE_add_lookup wolfSSL_X509_STORE_add_lookup
|
||||
#define X509_STORE_new wolfSSL_X509_STORE_new
|
||||
#define X509_STORE_get_by_subject wolfSSL_X509_STORE_get_by_subject
|
||||
#define X509_STORE_CTX_init wolfSSL_X509_STORE_CTX_init
|
||||
#define X509_STORE_CTX_cleanup wolfSSL_X509_STORE_CTX_cleanup
|
||||
|
||||
#define X509_CRL_get_lastUpdate CyaSSL_X509_CRL_get_lastUpdate
|
||||
#define X509_CRL_get_nextUpdate CyaSSL_X509_CRL_get_nextUpdate
|
||||
#define X509_CRL_get_lastUpdate wolfSSL_X509_CRL_get_lastUpdate
|
||||
#define X509_CRL_get_nextUpdate wolfSSL_X509_CRL_get_nextUpdate
|
||||
|
||||
#define X509_get_pubkey CyaSSL_X509_get_pubkey
|
||||
#define X509_CRL_verify CyaSSL_X509_CRL_verify
|
||||
#define X509_STORE_CTX_set_error CyaSSL_X509_STORE_CTX_set_error
|
||||
#define X509_OBJECT_free_contents CyaSSL_X509_OBJECT_free_contents
|
||||
#define EVP_PKEY_free CyaSSL_EVP_PKEY_free
|
||||
#define X509_cmp_current_time CyaSSL_X509_cmp_current_time
|
||||
#define sk_X509_REVOKED_num CyaSSL_sk_X509_REVOKED_num
|
||||
#define X509_CRL_get_REVOKED CyaSSL_X509_CRL_get_REVOKED
|
||||
#define sk_X509_REVOKED_value CyaSSL_sk_X509_REVOKED_value
|
||||
#define X509_get_pubkey wolfSSL_X509_get_pubkey
|
||||
#define X509_CRL_verify wolfSSL_X509_CRL_verify
|
||||
#define X509_STORE_CTX_set_error wolfSSL_X509_STORE_CTX_set_error
|
||||
#define X509_OBJECT_free_contents wolfSSL_X509_OBJECT_free_contents
|
||||
#define EVP_PKEY_free wolfSSL_EVP_PKEY_free
|
||||
#define X509_cmp_current_time wolfSSL_X509_cmp_current_time
|
||||
#define sk_X509_REVOKED_num wolfSSL_sk_X509_REVOKED_num
|
||||
#define X509_CRL_get_REVOKED wolfSSL_X509_CRL_get_REVOKED
|
||||
#define sk_X509_REVOKED_value wolfSSL_sk_X509_REVOKED_value
|
||||
|
||||
#define X509_get_serialNumber CyaSSL_X509_get_serialNumber
|
||||
#define X509_get_serialNumber wolfSSL_X509_get_serialNumber
|
||||
|
||||
#define ASN1_TIME_pr CyaSSL_ASN1_TIME_pr
|
||||
#define ASN1_TIME_pr wolfSSL_ASN1_TIME_pr
|
||||
|
||||
#define ASN1_INTEGER_cmp CyaSSL_ASN1_INTEGER_cmp
|
||||
#define ASN1_INTEGER_get CyaSSL_ASN1_INTEGER_get
|
||||
#define ASN1_INTEGER_cmp wolfSSL_ASN1_INTEGER_cmp
|
||||
#define ASN1_INTEGER_get wolfSSL_ASN1_INTEGER_get
|
||||
|
||||
#define SSL_load_client_CA_file CyaSSL_load_client_CA_file
|
||||
#define SSL_load_client_CA_file wolfSSL_load_client_CA_file
|
||||
|
||||
#define SSL_CTX_set_client_CA_list CyaSSL_CTX_set_client_CA_list
|
||||
#define X509_STORE_CTX_get_ex_data CyaSSL_X509_STORE_CTX_get_ex_data
|
||||
#define SSL_get_ex_data_X509_STORE_CTX_idx CyaSSL_get_ex_data_X509_STORE_CTX_idx
|
||||
#define SSL_get_ex_data CyaSSL_get_ex_data
|
||||
#define SSL_CTX_set_client_CA_list wolfSSL_CTX_set_client_CA_list
|
||||
#define X509_STORE_CTX_get_ex_data wolfSSL_X509_STORE_CTX_get_ex_data
|
||||
#define SSL_get_ex_data_X509_STORE_CTX_idx wolfSSL_get_ex_data_X509_STORE_CTX_idx
|
||||
#define SSL_get_ex_data wolfSSL_get_ex_data
|
||||
|
||||
#define SSL_CTX_set_default_passwd_cb_userdata CyaSSL_CTX_set_default_passwd_cb_userdata
|
||||
#define SSL_CTX_set_default_passwd_cb CyaSSL_CTX_set_default_passwd_cb
|
||||
#define SSL_CTX_set_default_passwd_cb_userdata wolfSSL_CTX_set_default_passwd_cb_userdata
|
||||
#define SSL_CTX_set_default_passwd_cb wolfSSL_CTX_set_default_passwd_cb
|
||||
|
||||
#define SSL_CTX_set_timeout CyaSSL_CTX_set_timeout
|
||||
#define SSL_CTX_set_info_callback CyaSSL_CTX_set_info_callback
|
||||
#define SSL_CTX_set_timeout wolfSSL_CTX_set_timeout
|
||||
#define SSL_CTX_set_info_callback wolfSSL_CTX_set_info_callback
|
||||
|
||||
#define ERR_peek_error CyaSSL_ERR_peek_error
|
||||
#define ERR_GET_REASON CyaSSL_ERR_GET_REASON
|
||||
#define ERR_peek_error wolfSSL_ERR_peek_error
|
||||
#define ERR_GET_REASON wolfSSL_ERR_GET_REASON
|
||||
|
||||
#define SSL_alert_type_string CyaSSL_alert_type_string
|
||||
#define SSL_alert_desc_string CyaSSL_alert_desc_string
|
||||
#define SSL_state_string CyaSSL_state_string
|
||||
#define SSL_alert_type_string wolfSSL_alert_type_string
|
||||
#define SSL_alert_desc_string wolfSSL_alert_desc_string
|
||||
#define SSL_state_string wolfSSL_state_string
|
||||
|
||||
#define RSA_free CyaSSL_RSA_free
|
||||
#define RSA_generate_key CyaSSL_RSA_generate_key
|
||||
#define SSL_CTX_set_tmp_rsa_callback CyaSSL_CTX_set_tmp_rsa_callback
|
||||
#define RSA_free wolfSSL_RSA_free
|
||||
#define RSA_generate_key wolfSSL_RSA_generate_key
|
||||
#define SSL_CTX_set_tmp_rsa_callback wolfSSL_CTX_set_tmp_rsa_callback
|
||||
|
||||
#define PEM_def_callback CyaSSL_PEM_def_callback
|
||||
#define PEM_def_callback wolfSSL_PEM_def_callback
|
||||
|
||||
#define SSL_CTX_sess_accept CyaSSL_CTX_sess_accept
|
||||
#define SSL_CTX_sess_connect CyaSSL_CTX_sess_connect
|
||||
#define SSL_CTX_sess_accept_good CyaSSL_CTX_sess_accept_good
|
||||
#define SSL_CTX_sess_connect_good CyaSSL_CTX_sess_connect_good
|
||||
#define SSL_CTX_sess_accept_renegotiate CyaSSL_CTX_sess_accept_renegotiate
|
||||
#define SSL_CTX_sess_connect_renegotiate CyaSSL_CTX_sess_connect_renegotiate
|
||||
#define SSL_CTX_sess_hits CyaSSL_CTX_sess_hits
|
||||
#define SSL_CTX_sess_cb_hits CyaSSL_CTX_sess_cb_hits
|
||||
#define SSL_CTX_sess_cache_full CyaSSL_CTX_sess_cache_full
|
||||
#define SSL_CTX_sess_misses CyaSSL_CTX_sess_misses
|
||||
#define SSL_CTX_sess_timeouts CyaSSL_CTX_sess_timeouts
|
||||
#define SSL_CTX_sess_number CyaSSL_CTX_sess_number
|
||||
#define SSL_CTX_sess_get_cache_size CyaSSL_CTX_sess_get_cache_size
|
||||
#define SSL_CTX_sess_accept wolfSSL_CTX_sess_accept
|
||||
#define SSL_CTX_sess_connect wolfSSL_CTX_sess_connect
|
||||
#define SSL_CTX_sess_accept_good wolfSSL_CTX_sess_accept_good
|
||||
#define SSL_CTX_sess_connect_good wolfSSL_CTX_sess_connect_good
|
||||
#define SSL_CTX_sess_accept_renegotiate wolfSSL_CTX_sess_accept_renegotiate
|
||||
#define SSL_CTX_sess_connect_renegotiate wolfSSL_CTX_sess_connect_renegotiate
|
||||
#define SSL_CTX_sess_hits wolfSSL_CTX_sess_hits
|
||||
#define SSL_CTX_sess_cb_hits wolfSSL_CTX_sess_cb_hits
|
||||
#define SSL_CTX_sess_cache_full wolfSSL_CTX_sess_cache_full
|
||||
#define SSL_CTX_sess_misses wolfSSL_CTX_sess_misses
|
||||
#define SSL_CTX_sess_timeouts wolfSSL_CTX_sess_timeouts
|
||||
#define SSL_CTX_sess_number wolfSSL_CTX_sess_number
|
||||
#define SSL_CTX_sess_get_cache_size wolfSSL_CTX_sess_get_cache_size
|
||||
|
||||
|
||||
#define SSL_DEFAULT_CIPHER_LIST CYASSL_DEFAULT_CIPHER_LIST
|
||||
#define RSA_F4 CYASSL_RSA_F4
|
||||
#define SSL_DEFAULT_CIPHER_LIST WOLFSSL_DEFAULT_CIPHER_LIST
|
||||
#define RSA_F4 WOLFSSL_RSA_F4
|
||||
|
||||
#define SSL_CTX_set_psk_client_callback CyaSSL_CTX_set_psk_client_callback
|
||||
#define SSL_set_psk_client_callback CyaSSL_set_psk_client_callback
|
||||
#define SSL_CTX_set_psk_client_callback wolfSSL_CTX_set_psk_client_callback
|
||||
#define SSL_set_psk_client_callback wolfSSL_set_psk_client_callback
|
||||
|
||||
#define SSL_get_psk_identity_hint CyaSSL_get_psk_identity_hint
|
||||
#define SSL_get_psk_identity CyaSSL_get_psk_identity
|
||||
#define SSL_get_psk_identity_hint wolfSSL_get_psk_identity_hint
|
||||
#define SSL_get_psk_identity wolfSSL_get_psk_identity
|
||||
|
||||
#define SSL_CTX_use_psk_identity_hint CyaSSL_CTX_use_psk_identity_hint
|
||||
#define SSL_use_psk_identity_hint CyaSSL_use_psk_identity_hint
|
||||
#define SSL_CTX_use_psk_identity_hint wolfSSL_CTX_use_psk_identity_hint
|
||||
#define SSL_use_psk_identity_hint wolfSSL_use_psk_identity_hint
|
||||
|
||||
#define SSL_CTX_set_psk_server_callback CyaSSL_CTX_set_psk_server_callback
|
||||
#define SSL_set_psk_server_callback CyaSSL_set_psk_server_callback
|
||||
#define SSL_CTX_set_psk_server_callback wolfSSL_CTX_set_psk_server_callback
|
||||
#define SSL_set_psk_server_callback wolfSSL_set_psk_server_callback
|
||||
|
||||
#define ERR_get_error_line_data CyaSSL_ERR_get_error_line_data
|
||||
#define ERR_get_error_line_data wolfSSL_ERR_get_error_line_data
|
||||
|
||||
#define ERR_get_error CyaSSL_ERR_get_error
|
||||
#define ERR_clear_error CyaSSL_ERR_clear_error
|
||||
#define ERR_get_error wolfSSL_ERR_get_error
|
||||
#define ERR_clear_error wolfSSL_ERR_clear_error
|
||||
|
||||
#define RAND_status CyaSSL_RAND_status
|
||||
#define RAND_bytes CyaSSL_RAND_bytes
|
||||
#define SSLv23_server_method CyaSSLv23_server_method
|
||||
#define SSL_CTX_set_options CyaSSL_CTX_set_options
|
||||
#define SSL_CTX_check_private_key CyaSSL_CTX_check_private_key
|
||||
#define RAND_status wolfSSL_RAND_status
|
||||
#define RAND_bytes wolfSSL_RAND_bytes
|
||||
#define SSLv23_server_method wolfSSLv23_server_method
|
||||
#define SSL_CTX_set_options wolfSSL_CTX_set_options
|
||||
#define SSL_CTX_check_private_key wolfSSL_CTX_check_private_key
|
||||
|
||||
#define ERR_free_strings CyaSSL_ERR_free_strings
|
||||
#define ERR_remove_state CyaSSL_ERR_remove_state
|
||||
#define EVP_cleanup CyaSSL_EVP_cleanup
|
||||
#define ERR_free_strings wolfSSL_ERR_free_strings
|
||||
#define ERR_remove_state wolfSSL_ERR_remove_state
|
||||
#define EVP_cleanup wolfSSL_EVP_cleanup
|
||||
|
||||
#define CRYPTO_cleanup_all_ex_data CyaSSL_cleanup_all_ex_data
|
||||
#define SSL_CTX_set_mode CyaSSL_CTX_set_mode
|
||||
#define SSL_CTX_get_mode CyaSSL_CTX_get_mode
|
||||
#define SSL_CTX_set_default_read_ahead CyaSSL_CTX_set_default_read_ahead
|
||||
#define CRYPTO_cleanup_all_ex_data wolfSSL_cleanup_all_ex_data
|
||||
#define SSL_CTX_set_mode wolfSSL_CTX_set_mode
|
||||
#define SSL_CTX_get_mode wolfSSL_CTX_get_mode
|
||||
#define SSL_CTX_set_default_read_ahead wolfSSL_CTX_set_default_read_ahead
|
||||
|
||||
#define SSL_CTX_sess_set_cache_size CyaSSL_CTX_sess_set_cache_size
|
||||
#define SSL_CTX_set_default_verify_paths CyaSSL_CTX_set_default_verify_paths
|
||||
#define SSL_CTX_sess_set_cache_size wolfSSL_CTX_sess_set_cache_size
|
||||
#define SSL_CTX_set_default_verify_paths wolfSSL_CTX_set_default_verify_paths
|
||||
|
||||
#define SSL_CTX_set_session_id_context CyaSSL_CTX_set_session_id_context
|
||||
#define SSL_get_peer_certificate CyaSSL_get_peer_certificate
|
||||
#define SSL_CTX_set_session_id_context wolfSSL_CTX_set_session_id_context
|
||||
#define SSL_get_peer_certificate wolfSSL_get_peer_certificate
|
||||
|
||||
#define SSL_want_read CyaSSL_want_read
|
||||
#define SSL_want_write CyaSSL_want_write
|
||||
#define SSL_want_read wolfSSL_want_read
|
||||
#define SSL_want_write wolfSSL_want_write
|
||||
|
||||
#define BIO_prf CyaSSL_BIO_prf
|
||||
#define ASN1_UTCTIME_pr CyaSSL_ASN1_UTCTIME_pr
|
||||
#define BIO_prf wolfSSL_BIO_prf
|
||||
#define ASN1_UTCTIME_pr wolfSSL_ASN1_UTCTIME_pr
|
||||
|
||||
#define sk_num CyaSSL_sk_num
|
||||
#define sk_value CyaSSL_sk_value
|
||||
#define sk_num wolfSSL_sk_num
|
||||
#define sk_value wolfSSL_sk_value
|
||||
|
||||
#define SSL_CTX_get_ex_data CyaSSL_CTX_get_ex_data
|
||||
#define SSL_CTX_set_ex_data CyaSSL_CTX_set_ex_data
|
||||
#define SSL_CTX_sess_set_get_cb CyaSSL_CTX_sess_set_get_cb
|
||||
#define SSL_CTX_sess_set_new_cb CyaSSL_CTX_sess_set_new_cb
|
||||
#define SSL_CTX_sess_set_remove_cb CyaSSL_CTX_sess_set_remove_cb
|
||||
#define SSL_CTX_get_ex_data wolfSSL_CTX_get_ex_data
|
||||
#define SSL_CTX_set_ex_data wolfSSL_CTX_set_ex_data
|
||||
#define SSL_CTX_sess_set_get_cb wolfSSL_CTX_sess_set_get_cb
|
||||
#define SSL_CTX_sess_set_new_cb wolfSSL_CTX_sess_set_new_cb
|
||||
#define SSL_CTX_sess_set_remove_cb wolfSSL_CTX_sess_set_remove_cb
|
||||
|
||||
#define i2d_SSL_SESSION CyaSSL_i2d_SSL_SESSION
|
||||
#define d2i_SSL_SESSION CyaSSL_d2i_SSL_SESSION
|
||||
#define SSL_SESSION_get_timeout CyaSSL_SESSION_get_timeout
|
||||
#define SSL_SESSION_get_time CyaSSL_SESSION_get_time
|
||||
#define SSL_CTX_get_ex_new_index CyaSSL_CTX_get_ex_new_index
|
||||
#define i2d_SSL_SESSION wolfSSL_i2d_SSL_SESSION
|
||||
#define d2i_SSL_SESSION wolfSSL_d2i_SSL_SESSION
|
||||
#define SSL_SESSION_get_timeout wolfSSL_SESSION_get_timeout
|
||||
#define SSL_SESSION_get_time wolfSSL_SESSION_get_time
|
||||
#define SSL_CTX_get_ex_new_index wolfSSL_CTX_get_ex_new_index
|
||||
|
||||
|
||||
|
||||
@ -379,4 +382,4 @@ typedef CYASSL_X509_STORE_CTX X509_STORE_CTX;
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* CyaSSL_openssl_h__ */
|
||||
#endif /* wolfSSL_openssl_h__ */
|
||||
|
1262
wolfssl/ssl.h
1262
wolfssl/ssl.h
File diff suppressed because it is too large
Load Diff
47
wolfssl/wolfcrypt/include.am
Normal file
47
wolfssl/wolfcrypt/include.am
Normal file
@ -0,0 +1,47 @@
|
||||
# vim:ft=automake
|
||||
# All paths should be given relative to the root
|
||||
|
||||
nobase_include_HEADERS+= \
|
||||
wolfssl/wolfcrypt/aes.h \
|
||||
wolfssl/wolfcrypt/arc4.h \
|
||||
#wolfssl/wolfcrypt/asn.h \
|
||||
#wolfssl/wolfcrypt/asn_public.h \
|
||||
#wolfssl/wolfcrypt/poly1305.h \
|
||||
wolfssl/wolfcrypt/camellia.h
|
||||
#wolfssl/wolfcrypt/coding.h \
|
||||
#wolfssl/wolfcrypt/compress.h \
|
||||
#wolfssl/wolfcrypt/des3.h \
|
||||
#wolfssl/wolfcrypt/dh.h \
|
||||
#wolfssl/wolfcrypt/dsa.h \
|
||||
#wolfssl/wolfcrypt/ecc.h \
|
||||
#wolfssl/wolfcrypt/error-crypt.h \
|
||||
#wolfssl/wolfcrypt/fips_test.h \
|
||||
#wolfssl/wolfcrypt/hc128.h \
|
||||
#wolfssl/wolfcrypt/hmac.h \
|
||||
#wolfssl/wolfcrypt/integer.h \
|
||||
#wolfssl/wolfcrypt/md2.h \
|
||||
#wolfssl/wolfcrypt/md4.h \
|
||||
#wolfssl/wolfcrypt/md5.h \
|
||||
#wolfssl/wolfcrypt/misc.h \
|
||||
#wolfssl/wolfcrypt/pkcs7.h \
|
||||
#wolfssl/wolfcrypt/wc_port.h \
|
||||
#wolfssl/wolfcrypt/pwdbased.h \
|
||||
#wolfssl/wolfcrypt/rabbit.h \
|
||||
#wolfssl/wolfcrypt/chacha.h \
|
||||
#wolfssl/wolfcrypt/random.h \
|
||||
#wolfssl/wolfcrypt/ripemd.h \
|
||||
#wolfssl/wolfcrypt/rsa.h \
|
||||
#wolfssl/wolfcrypt/settings.h \
|
||||
#wolfssl/wolfcrypt/sha256.h \
|
||||
#wolfssl/wolfcrypt/sha512.h \
|
||||
#wolfssl/wolfcrypt/sha.h \
|
||||
#wolfssl/wolfcrypt/blake2.h \
|
||||
#wolfssl/wolfcrypt/blake2-int.h \
|
||||
#wolfssl/wolfcrypt/blake2-impl.h \
|
||||
#wolfssl/wolfcrypt/tfm.h \
|
||||
#wolfssl/wolfcrypt/types.h \
|
||||
#wolfssl/wolfcrypt/visibility.h \
|
||||
#wolfssl/wolfcrypt/logging.h \
|
||||
#wolfssl/wolfcrypt/memory.h \
|
||||
#wolfssl/wolfcrypt/mpi_class.h \
|
||||
#wolfssl/wolfcrypt/mpi_superclass.h
|
@ -21,9 +21,9 @@
|
||||
|
||||
/* Visibility control macros */
|
||||
|
||||
|
||||
#ifndef CTAO_CRYPT_VISIBILITY_H
|
||||
#define CTAO_CRYPT_VISIBILITY_H
|
||||
#define CTAO_CRYPT_VISIBILITY_H WOLF_CRYPT_VISIBILITY_H
|
||||
#ifndef WOLF_CRYPT_VISIBILITY_H
|
||||
#define WOLF_CRYPT_VISIBILITY_H
|
||||
|
||||
|
||||
/* CYASSL_API is used for the public API symbols.
|
||||
@ -31,41 +31,56 @@
|
||||
|
||||
CYASSL_LOCAL is used for non-API symbols (private).
|
||||
*/
|
||||
|
||||
#if defined(BUILDING_CYASSL)
|
||||
#define BUILDING_WOLFSSL BUILDING_CYASSL
|
||||
#if defined(BUILDING_WOLFSSL)
|
||||
#if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
|
||||
#define CYASSL_API __attribute__ ((visibility("default")))
|
||||
#define CYASSL_LOCAL __attribute__ ((visibility("hidden")))
|
||||
#define WOLFSSL_API __attribute__ ((visibility("default")))
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#define WOLFSSL_LOCAL __attribute__ ((visibility("hidden")))
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
#define CYASSL_API __global
|
||||
#define CYASSL_LOCAL __hidden
|
||||
#define WOLFSSL_API __global
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#define WOLFSSL_LOCAL __hidden
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#elif defined(_MSC_VER)
|
||||
#ifdef CYASSL_DLL
|
||||
#define CYASSL_API extern __declspec(dllexport)
|
||||
#define CYASSL_DLL WOLFSSL_DLL
|
||||
#ifdef WOLFSSL_DLL
|
||||
#define WOLFSSL_API extern __declspec(dllexport)
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#else
|
||||
//#define CYASSL_API
|
||||
#define WOLFSSL_API
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#endif
|
||||
#define CYASSL_LOCAL
|
||||
#define WOLFSSL_LOCAL
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#define CYASSL_LOCAL
|
||||
#define WOLFSSL_API
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#define WOLFSSL_LOCAL
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#endif /* HAVE_VISIBILITY */
|
||||
#else /* BUILDING_CYASSL */
|
||||
#if defined(_MSC_VER)
|
||||
#ifdef CYASSL_DLL
|
||||
#define CYASSL_API extern __declspec(dllimport)
|
||||
#define CYASSL_DLL WOLFSSL_DLL
|
||||
#ifdef WOLFSSL_DLL
|
||||
#define WOLFSSL_API extern __declspec(dllimport)
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#define WOLFSSL_API
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#endif
|
||||
#define CYASSL_LOCAL
|
||||
#define WOLFSSL_LOCAL
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#else
|
||||
#define CYASSL_API
|
||||
#define CYASSL_LOCAL
|
||||
#define WOLFSSL_API
|
||||
#define CYASSL_API WOLFSSL_API
|
||||
#define WOLFSSL_LOCAL
|
||||
#define CYASSL_LOCAL WOLFSSL_LOCAL
|
||||
#endif
|
||||
#endif /* BUILDING_CYASSL */
|
||||
#endif /* BUILDING_WOLFSSL */
|
||||
|
||||
|
||||
#endif /* CTAO_CRYPT_VISIBILITY_H */
|
||||
#endif /* WOLF_CRYPT_VISIBILITY_H */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user