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>
#endif
#include <cyassl/ctaocrypt/settings.h>
#ifndef NO_AES
#include <cyassl/ctaocrypt/aes.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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