debuging test script

This commit is contained in:
Jacob Barthelmeh 2014-12-30 13:05:24 -07:00
parent 23368a2bca
commit 26a2688f0e
5 changed files with 44 additions and 14 deletions

View File

@ -84,10 +84,6 @@
#define CYASSL_THREAD WOLFSSL_THREAD #define CYASSL_THREAD WOLFSSL_THREAD
#endif #endif
#ifndef CYASSL_MAX_ERROR_SZ
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
#endif
/* src/ssl.c */ /* src/ssl.c */
#define CYASSL_CRL WOLFSSL_CRL #define CYASSL_CRL WOLFSSL_CRL
#define CYASSL_SSLV3 WOLFSSL_SSLV3 #define CYASSL_SSLV3 WOLFSSL_SSLV3
@ -364,12 +360,8 @@
#define CYASSL_SMALL_STACK #define CYASSL_SMALL_STACK
#endif #endif
/* change visibility to be compatible with CyaSSL visibility */ #if !defined(CYASSL_MAX_ERROR_SZ) && !defined(HAVE_FIPS)
#ifndef HAVE_FIPS #define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
/* Do Nothing */
#else
#undef WOLFSSL_API
#define WOLFSSL_API CYASSL_API
#endif #endif
/* wrapper around macros until they are changed in cyassl code /* wrapper around macros until they are changed in cyassl code
* needs investigation in regards to macros in fips */ * needs investigation in regards to macros in fips */

View File

@ -23,9 +23,10 @@
#ifndef WOLF_CRYPT_ERROR_H #ifndef WOLF_CRYPT_ERROR_H
#define WOLF_CRYPT_ERROR_H #define WOLF_CRYPT_ERROR_H
#include <wolfssl/wolfcrypt/types.h>
/* compatibility and fips @wc_fips */ /* compatibility and fips @wc_fips */
#ifndef HAVE_FIPS #ifndef HAVE_FIPS
#include <wolfssl/wolfcrypt/types.h>
#define CTaoCryptErrorString wc_CryptErrorString #define CTaoCryptErrorString wc_CryptErrorString
#define CTaoCryptGetErrorString wc_CryptGetErrorString #define CTaoCryptGetErrorString wc_CryptGetErrorString

View File

@ -25,9 +25,34 @@
#ifndef WOLF_CRYPT_TYPES_H #ifndef WOLF_CRYPT_TYPES_H
#define WOLF_CRYPT_TYPES_H #define WOLF_CRYPT_TYPES_H
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/wolfcrypt/wc_port.h>
/* for fips compatiblity @wc_fips */ /* for fips compatiblity @wc_fips */
#ifdef HAVE_FIPS #ifdef HAVE_FIPS
#include <cyassl/ctaocrypt/types.h> #include <cyassl/ctaocrypt/types.h>
/* set old macros since this is often called for visibility also */
#ifndef WOLFSSL_API
#define WOLFSSL_API CYASSL_API
#endif
#ifndef WOLFSSL_LOCAL
#define WOLFSSL_LOCAL CYASSL_LOCAL
#endif
#define WOLFSSL_MAX_ERROR_SZ CYASSL_MAX_ERROR_SZ
/* memory macros */
/* when using fips map wolfSSL to CyaSSL*/
#define wolfSSL_Malloc_cb CyaSSL_Malloc_cb
#define wolfSSL_Free_cb CyaSSL_Free_cb
#define wolfSSL_Realloc_cb CyaSSL_Realloc_cb
#define wolfSSL_SetAllocators CyaSSL_SetAllocators
/* Public in case user app wants to use XMALLOC/XFREE */
#define wolfSSL_Malloc CyaSSL_Malloc
#define wolfSSL_Free CyaSSL_Free
#define wolfSSL_Realloc CyaSSL_Realloc
#else #else
/* set old macros since this is often called for visibility also */ /* set old macros since this is often called for visibility also */
#ifndef CYASSL_API #ifndef CYASSL_API
@ -37,8 +62,6 @@
#define CYASSL_LOCAL WOLFSSL_LOCAL #define CYASSL_LOCAL WOLFSSL_LOCAL
#endif #endif
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/wolfcrypt/wc_port.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -24,6 +24,12 @@
#ifndef WOLF_CRYPT_VISIBILITY_H #ifndef WOLF_CRYPT_VISIBILITY_H
#define WOLF_CRYPT_VISIBILITY_H #define WOLF_CRYPT_VISIBILITY_H
/* fips compatibility @wc_fips */
#ifdef HAVE_FIPS
#include <cyassl/ctaocrypt/visibility.h>
#define WOLFSSL_API CYASSL_API
#define WOLFSSL_LOCAL CYASSL_LOCAL
#else
/* WOLFSSL_API is used for the public API symbols. /* WOLFSSL_API is used for the public API symbols.
It either imports or exports (or does nothing for static builds) It either imports or exports (or does nothing for static builds)
@ -64,5 +70,6 @@
#endif /* BUILDING_WOLFSSL */ #endif /* BUILDING_WOLFSSL */
#endif /* HAVE_FIPS */
#endif /* WOLF_CRYPT_VISIBILITY_H */ #endif /* WOLF_CRYPT_VISIBILITY_H */

View File

@ -20,9 +20,15 @@
*/ */
#if !defined(WOLF_CRYPT_PORT_H) //&& CTAO_CRYPT_PORT_H) #ifndef WOLF_CRYPT_PORT_H
#define WOLF_CRYPT_PORT_H #define WOLF_CRYPT_PORT_H
/* fips compatibility @wc_fips */
#ifdef HAVE_FIPS
#include <cyassl/ctaocrypt/wc_port.h>
#define wolfSSL_Mutex CyaSSL_Mutex
#else
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -196,5 +202,6 @@ WOLFSSL_LOCAL int UnLockMutex(wolfSSL_Mutex*);
} /* extern "C" */ } /* extern "C" */
#endif #endif
#endif /* HAVE_FIPS */
#endif /* WOLF_CRYPT_PORT_H */ #endif /* WOLF_CRYPT_PORT_H */