make sure all lib proper *.c files have config.h then settings.h then checks for defines in case user using settings.h for lib config

This commit is contained in:
toddouska
2013-04-10 11:04:29 -07:00
parent 185331f007
commit 97e0ec073f
36 changed files with 70 additions and 5 deletions

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_AES #ifndef NO_AES
#include <cyassl/ctaocrypt/aes.h> #include <cyassl/ctaocrypt/aes.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_RC4 #ifndef NO_RC4
#include <cyassl/ctaocrypt/arc4.h> #include <cyassl/ctaocrypt/arc4.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
/* /*
* Based on public domain TomsFastMath 0.10 by Tom St Denis, tomstdenis@iahu.ca, * Based on public domain TomsFastMath 0.10 by Tom St Denis, tomstdenis@iahu.ca,
* http://math.libtomcrypt.com * http://math.libtomcrypt.com

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_ASN #ifndef NO_ASN
#ifdef THREADX #ifdef THREADX

View File

@@ -36,6 +36,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_BLAKE2 #ifdef HAVE_BLAKE2
#include <cyassl/ctaocrypt/blake2.h> #include <cyassl/ctaocrypt/blake2.h>

View File

@@ -56,6 +56,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_CAMELLIA #ifdef HAVE_CAMELLIA
#include <cyassl/ctaocrypt/camellia.h> #include <cyassl/ctaocrypt/camellia.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_CODING #ifndef NO_CODING
#include <cyassl/ctaocrypt/coding.h> #include <cyassl/ctaocrypt/coding.h>

View File

@@ -24,6 +24,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_LIBZ #ifdef HAVE_LIBZ

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_DES3 #ifndef NO_DES3
#include <cyassl/ctaocrypt/des3.h> #include <cyassl/ctaocrypt/des3.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_DH #ifndef NO_DH
#include <cyassl/ctaocrypt/dh.h> #include <cyassl/ctaocrypt/dh.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_DSA #ifndef NO_DSA
#include <cyassl/ctaocrypt/dsa.h> #include <cyassl/ctaocrypt/dsa.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/ctaocrypt/error.h> #include <cyassl/ctaocrypt/error.h>
#ifdef _MSC_VER #ifdef _MSC_VER

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_HC128 #ifdef HAVE_HC128
#include <cyassl/ctaocrypt/hc128.h> #include <cyassl/ctaocrypt/hc128.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_HMAC #ifndef NO_HMAC
#include <cyassl/ctaocrypt/hmac.h> #include <cyassl/ctaocrypt/hmac.h>

View File

@@ -23,9 +23,10 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
/* submitted by eof */ /* submitted by eof */
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/ctaocrypt/logging.h> #include <cyassl/ctaocrypt/logging.h>
#include <cyassl/ctaocrypt/error.h> #include <cyassl/ctaocrypt/error.h>

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef CYASSL_MD2 #ifdef CYASSL_MD2
#include <cyassl/ctaocrypt/md2.h> #include <cyassl/ctaocrypt/md2.h>

View File

@@ -23,6 +23,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_MD4 #ifndef NO_MD4

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_MD5 #ifndef NO_MD5
#include <cyassl/ctaocrypt/md5.h> #include <cyassl/ctaocrypt/md5.h>

View File

@@ -23,11 +23,10 @@
#include <config.h> #include <config.h>
#endif #endif
/* submitted by eof */
#include <cyassl/ctaocrypt/settings.h> #include <cyassl/ctaocrypt/settings.h>
/* submitted by eof */
#ifdef USE_CYASSL_MEMORY #ifdef USE_CYASSL_MEMORY
#include <cyassl/ctaocrypt/memory.h> #include <cyassl/ctaocrypt/memory.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/ctaocrypt/misc.h> #include <cyassl/ctaocrypt/misc.h>
/* inlining these functions is a huge speed increase and a small size decrease, /* inlining these functions is a huge speed increase and a small size decrease,

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_PWDBASED #ifndef NO_PWDBASED
#include <cyassl/ctaocrypt/pwdbased.h> #include <cyassl/ctaocrypt/pwdbased.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_RABBIT #ifndef NO_RABBIT
#include <cyassl/ctaocrypt/rabbit.h> #include <cyassl/ctaocrypt/rabbit.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
/* on HPUX 11 you may need to install /dev/random see /* on HPUX 11 you may need to install /dev/random see
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef CYASSL_RIPEMD #ifdef CYASSL_RIPEMD
#include <cyassl/ctaocrypt/ripemd.h> #include <cyassl/ctaocrypt/ripemd.h>

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_RSA #ifndef NO_RSA
#include <cyassl/ctaocrypt/rsa.h> #include <cyassl/ctaocrypt/rsa.h>

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_SHA #ifndef NO_SHA
#include <cyassl/ctaocrypt/sha.h> #include <cyassl/ctaocrypt/sha.h>

View File

@@ -26,6 +26,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_SHA256 #ifndef NO_SHA256
#include <cyassl/ctaocrypt/sha256.h> #include <cyassl/ctaocrypt/sha256.h>

View File

@@ -23,6 +23,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef CYASSL_SHA512 #ifdef CYASSL_SHA512

View File

@@ -23,6 +23,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_CRL #ifdef HAVE_CRL

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/internal.h> #include <cyassl/internal.h>
#include <cyassl/error.h> #include <cyassl/error.h>
#include <cyassl/ctaocrypt/asn.h> #include <cyassl/ctaocrypt/asn.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
/* On WinCE winsock2.h must be included before windows.h for socket stuff */ /* On WinCE winsock2.h must be included before windows.h for socket stuff */
#include <winsock2.h> #include <winsock2.h>

View File

@@ -24,6 +24,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/internal.h> #include <cyassl/internal.h>
#include <cyassl/error.h> #include <cyassl/error.h>
#ifdef SHOW_SECRETS #ifdef SHOW_SECRETS

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_OCSP #ifdef HAVE_OCSP
#ifdef EBSNET #ifdef EBSNET

View File

@@ -20,12 +20,15 @@
*/ */
#ifdef CYASSL_SNIFFER
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef CYASSL_SNIFFER
#include <assert.h> #include <assert.h>
#include <time.h> #include <time.h>

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#ifdef HAVE_ERRNO_H #ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif #endif

View File

@@ -23,6 +23,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h>
#include <cyassl/ssl.h> #include <cyassl/ssl.h>
#include <cyassl/internal.h> #include <cyassl/internal.h>
#include <cyassl/error.h> #include <cyassl/error.h>