add check around config.h for non autoconf systems

pull/1/head
Todd A Ouska 2011-08-24 16:37:16 -07:00
parent 9d34e45b71
commit 000ffa54a4
39 changed files with 118 additions and 39 deletions

View File

@ -21,7 +21,9 @@
/* CTaoCrypt benchmark */ /* CTaoCrypt benchmark */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_AES #ifndef NO_AES

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_arc4.h> #include <cyassl/ctaocrypt/ctc_arc4.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef THREADX #ifdef THREADX
#include "os.h" /* dc_rtc_api needs */ #include "os.h" /* dc_rtc_api needs */

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_coding.h> #include <cyassl/ctaocrypt/ctc_coding.h>
#include <cyassl/ctaocrypt/ctc_error.h> #include <cyassl/ctaocrypt/ctc_error.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* /*
* 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,

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_misc.h> #include <cyassl/ctaocrypt/ctc_misc.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* submitted by eof */ /* submitted by eof */

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_DES3 #ifndef NO_DES3

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_DH #ifndef NO_DH

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_DSA #ifndef NO_DSA

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#if HAVE_HC128 #if HAVE_HC128

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_HMAC #ifndef NO_HMAC

View File

@ -26,7 +26,10 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* in case user set USE_FAST_MATH there */ /* in case user set USE_FAST_MATH there */
#include <cyassl/ctaocrypt/ctc_settings.h> #include <cyassl/ctaocrypt/ctc_settings.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* submitted by eof */ /* submitted by eof */

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_MD4 #ifndef NO_MD4

View File

@ -20,7 +20,9 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_md5.h> #include <cyassl/ctaocrypt/ctc_md5.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_PWDBASED #ifndef NO_PWDBASED

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_RABBIT #ifndef NO_RABBIT

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* 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

@ -20,7 +20,9 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef CYASSL_RIPEMD #ifdef CYASSL_RIPEMD

View File

@ -20,7 +20,9 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_rsa.h> #include <cyassl/ctaocrypt/ctc_rsa.h>
#include <cyassl/ctaocrypt/ctc_random.h> #include <cyassl/ctaocrypt/ctc_random.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/ctaocrypt/ctc_sha.h> #include <cyassl/ctaocrypt/ctc_sha.h>
#ifdef NO_INLINE #ifdef NO_INLINE

View File

@ -22,7 +22,9 @@
/* code submitted by raphael.huck@efixo.com */ /* code submitted by raphael.huck@efixo.com */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef NO_SHA256 #ifndef NO_SHA256

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef CYASSL_SHA512 #ifdef CYASSL_SHA512

View File

@ -30,7 +30,9 @@
* to fit CyaSSL's needs. * to fit CyaSSL's needs.
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
/* in case user set USE_FAST_MATH there */ /* in case user set USE_FAST_MATH there */
#include <cyassl/ctaocrypt/ctc_settings.h> #include <cyassl/ctaocrypt/ctc_settings.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/openssl/cyassl_test.h> #include <cyassl/openssl/cyassl_test.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/openssl/cyassl_test.h> #include <cyassl/openssl/cyassl_test.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/openssl/cyassl_test.h> #include <cyassl/openssl/cyassl_test.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/openssl/cyassl_test.h> #include <cyassl/openssl/cyassl_test.h>

View File

@ -20,7 +20,9 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/cyassl_int.h> #include <cyassl/cyassl_int.h>
#include <cyassl/cyassl_error.h> #include <cyassl/cyassl_error.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#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 */

View File

@ -20,7 +20,9 @@
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/cyassl_int.h> #include <cyassl/cyassl_int.h>
#include <cyassl/cyassl_error.h> #include <cyassl/cyassl_error.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <assert.h> #include <assert.h>
#include <time.h> #include <time.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef HAVE_ERRNO_H #ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/cyassl_int.h> #include <cyassl/cyassl_int.h>

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef _WIN32 #ifdef _WIN32
#define CYASSL_SNIFFER #define CYASSL_SNIFFER

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifndef _WIN32 #ifndef _WIN32
#define HAVE_CONFIG_H #define HAVE_CONFIG_H

View File

@ -19,7 +19,9 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <cyassl/openssl/ssl.h> #include <cyassl/openssl/ssl.h>
#include <cyassl/openssl/cyassl_test.h> #include <cyassl/openssl/cyassl_test.h>