2011-08-03 22:30:22 +04:00
|
|
|
# configure.ac
|
2011-07-27 00:27:22 +04:00
|
|
|
#
|
2014-04-12 01:58:58 +04:00
|
|
|
# Copyright (C) 2006-2014 wolfSSL Inc.
|
2011-07-27 00:27:22 +04:00
|
|
|
#
|
|
|
|
# This file is part of CyaSSL.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
2014-12-05 20:37:19 +03:00
|
|
|
AC_INIT([cyassl],[3.3.0],[https://github.com/cyassl/cyassl/issues],[cyassl],[http://www.wolfssl.com])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2012-10-19 08:30:21 +04:00
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CANONICAL_BUILD
|
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
AM_INIT_AUTOMAKE([1.11 -Wall -Werror -Wno-portability foreign tar-ustar subdir-objects no-define color-tests])
|
2013-04-10 21:21:56 +04:00
|
|
|
AC_PREREQ([2.63])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
AC_ARG_PROGRAM
|
|
|
|
AC_DEFUN([PROTECT_AC_USE_SYSTEM_EXTENSIONS],
|
|
|
|
[AX_SAVE_FLAGS
|
|
|
|
AC_LANG_PUSH([C])
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
AC_LANG_POP([C])
|
|
|
|
AX_RESTORE_FLAGS
|
|
|
|
])
|
|
|
|
#PROTECT_AC_USE_SYSTEM_EXTENSIONS
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2013-09-15 11:13:30 +04:00
|
|
|
AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2011-04-30 00:08:05 +04:00
|
|
|
#shared library versioning
|
2014-09-11 02:46:39 +04:00
|
|
|
CYASSL_LIBRARY_VERSION=6:0:1
|
2011-06-07 20:02:36 +04:00
|
|
|
# | | |
|
|
|
|
# +------+ | +---+
|
|
|
|
# | | |
|
|
|
|
# current:revision:age
|
|
|
|
# | | |
|
|
|
|
# | | +- increment if interfaces have been added
|
2011-06-30 21:07:49 +04:00
|
|
|
# | | set to zero if interfaces have been removed
|
2014-12-01 22:44:32 +03:00
|
|
|
# | | or changed
|
2011-06-07 20:02:36 +04:00
|
|
|
# | +- increment if source code has changed
|
|
|
|
# | set to zero if current is incremented
|
|
|
|
# +- increment if interfaces have been added, removed or changed
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_SUBST([CYASSL_LIBRARY_VERSION])
|
2011-04-30 00:08:05 +04:00
|
|
|
|
2012-10-24 23:01:11 +04:00
|
|
|
# capture user C_EXTRA_FLAGS from ./configure line, CFLAGS may hold -g -O2 even
|
|
|
|
# if user doesn't override, no way to tell
|
|
|
|
USER_C_EXTRA_FLAGS="$C_EXTRA_FLAGS"
|
|
|
|
|
2013-03-23 23:15:02 +04:00
|
|
|
LT_PREREQ([2.2])
|
|
|
|
LT_INIT([disable-static],[win32-dll])
|
2011-08-25 02:54:58 +04:00
|
|
|
LT_LANG([C++])
|
|
|
|
LT_LANG([C])
|
2013-03-23 23:15:02 +04:00
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
gl_VISIBILITY
|
2012-10-21 05:24:28 +04:00
|
|
|
AS_IF([ test -n "$CFLAG_VISIBILITY" ], [
|
|
|
|
AM_CPPFLAGS="$AM_CPPFLAGS $CFLAG_VISIBILITY"
|
|
|
|
CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"
|
|
|
|
])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
|
|
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
AC_CHECK_FUNCS([gethostbyname])
|
2013-04-11 23:30:09 +04:00
|
|
|
AC_CHECK_FUNCS([getaddrinfo])
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CHECK_FUNCS([gettimeofday])
|
|
|
|
AC_CHECK_FUNCS([inet_ntoa])
|
|
|
|
AC_CHECK_FUNCS([memset])
|
|
|
|
AC_CHECK_FUNCS([socket])
|
|
|
|
AC_CHECK_HEADERS([arpa/inet.h])
|
|
|
|
AC_CHECK_HEADERS([fcntl.h])
|
|
|
|
AC_CHECK_HEADERS([limits.h])
|
|
|
|
AC_CHECK_HEADERS([netdb.h])
|
|
|
|
AC_CHECK_HEADERS([netinet/in.h])
|
|
|
|
AC_CHECK_HEADERS([stddef.h])
|
|
|
|
AC_CHECK_HEADERS([sys/ioctl.h])
|
|
|
|
AC_CHECK_HEADERS([sys/socket.h])
|
|
|
|
AC_CHECK_HEADERS([sys/time.h])
|
2012-10-19 08:30:21 +04:00
|
|
|
AC_CHECK_HEADERS([errno.h])
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CHECK_LIB(network,socket)
|
|
|
|
AC_CHECK_SIZEOF(long long, 8)
|
|
|
|
AC_CHECK_SIZEOF(long, 4)
|
2014-07-10 21:18:49 +04:00
|
|
|
AC_CHECK_TYPES(__uint128_t)
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_C_BIGENDIAN
|
2012-10-24 23:09:53 +04:00
|
|
|
# mktime check takes forever on some systems, if time supported it would be
|
|
|
|
# highly unusual for mktime to be missing
|
|
|
|
#AC_FUNC_MKTIME
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC_C_O
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_PROG_CXX
|
2011-02-05 22:14:47 +03:00
|
|
|
AC_PROG_INSTALL
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_TYPE_SIZE_T
|
|
|
|
AC_TYPE_UINT8_T
|
|
|
|
AM_PROG_AS
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
LT_LIB_M
|
2011-04-27 02:41:16 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
|
2013-04-12 20:29:31 +04:00
|
|
|
OPTIMIZE_FAST_CFLAGS="-O2 -fomit-frame-pointer"
|
2013-09-04 00:13:13 +04:00
|
|
|
OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET -DTFM_HUGE_SET"
|
2011-02-05 22:14:47 +03:00
|
|
|
DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
|
|
|
|
|
2014-03-14 05:54:51 +04:00
|
|
|
thread_ls_on=no
|
2013-11-12 05:00:35 +04:00
|
|
|
# Thread local storage
|
2014-03-14 05:54:51 +04:00
|
|
|
AX_TLS([
|
|
|
|
[AM_CFLAGS="$AM_CFLAGS -DHAVE_THREAD_LS"]
|
|
|
|
[thread_ls_on=yes]
|
|
|
|
] , [:])
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# DEBUG
|
2012-10-19 08:30:21 +04:00
|
|
|
AX_DEBUG
|
2012-10-24 22:53:33 +04:00
|
|
|
AS_IF([test "$ax_enable_debug" = "yes"],
|
|
|
|
[AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"],
|
|
|
|
[AM_CFLAGS="$AM_CFLAGS -DNDEBUG"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
# SINGLE THREADED
|
2013-03-13 23:58:50 +04:00
|
|
|
AC_ARG_ENABLE([singlethreaded],
|
|
|
|
[ --enable-singlethreaded Enable CyaSSL single threaded (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_SINGLETHREADED=$enableval ],
|
2012-10-20 07:09:17 +04:00
|
|
|
[ ENABLED_SINGLETHREADED=no ])
|
|
|
|
|
|
|
|
AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xno" ],[
|
|
|
|
AX_PTHREAD([
|
|
|
|
AC_DEFINE([HAVE_PTHREAD], [1], [Define if you have POSIX threads libraries and header files.])
|
2013-04-02 02:50:13 +04:00
|
|
|
AM_CFLAGS="-D_POSIX_THREADS $AM_CFLAGS $PTHREAD_CFLAGS"
|
|
|
|
LIBS="$LIBS $PTHREAD_LIBS"
|
2012-10-20 07:09:17 +04:00
|
|
|
],[
|
|
|
|
ENABLED_SINGLETHREADED=yes
|
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xyes" ],[ AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS" ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
|
|
|
# DTLS
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([dtls],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-dtls Enable CyaSSL DTLS (default: disabled)],
|
|
|
|
[ ENABLED_DTLS=$enableval ],
|
|
|
|
[ ENABLED_DTLS=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_DTLS" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="-DCYASSL_DTLS $AM_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# OPENSSL Extra Compatibility
|
2013-03-13 23:58:50 +04:00
|
|
|
AC_ARG_ENABLE([opensslextra],
|
|
|
|
[ --enable-opensslextra Enable extra OpenSSL API, size+ (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_OPENSSLEXTRA=$enableval ],
|
|
|
|
[ ENABLED_OPENSSLEXTRA=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_OPENSSLEXTRA" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
2011-06-07 20:02:36 +04:00
|
|
|
if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
2013-03-13 23:58:50 +04:00
|
|
|
AC_MSG_ERROR([cannot enable small and opensslextra, only one or the other.])
|
2011-06-07 20:02:36 +04:00
|
|
|
fi
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# IPv6 Test Apps
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([ipv6],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-ipv6 Enable testing of IPV6 (default: disabled)],
|
|
|
|
[ ENABLED_IPV6=$enableval ],
|
|
|
|
[ ENABLED_IPV6=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_IPV6" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-10-27 04:10:44 +04:00
|
|
|
# Fortress build
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([fortress],
|
2011-10-27 04:10:44 +04:00
|
|
|
[ --enable-fortress Enable SSL fortress build (default: disabled)],
|
|
|
|
[ ENABLED_FORTRESS=$enableval ],
|
|
|
|
[ ENABLED_FORTRESS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_FORTRESS" = "yes"
|
|
|
|
then
|
2013-10-15 01:04:26 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DCYASSL_ALWAYS_VERIFY_CB -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN"
|
2011-10-27 04:10:44 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-10-04 23:29:59 +04:00
|
|
|
# ssl bump build
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([bump],
|
2011-10-04 23:29:59 +04:00
|
|
|
[ --enable-bump Enable SSL Bump build (default: disabled)],
|
|
|
|
[ ENABLED_BUMP=$enableval ],
|
|
|
|
[ ENABLED_BUMP=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
2012-05-11 23:21:17 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT"
|
2011-10-04 23:29:59 +04:00
|
|
|
fi
|
|
|
|
|
2012-11-03 03:49:31 +04:00
|
|
|
ENABLED_SLOWMATH="yes"
|
2012-10-30 02:39:42 +04:00
|
|
|
|
|
|
|
# lean psk build
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([leanpsk],
|
2012-10-30 02:39:42 +04:00
|
|
|
[ --enable-leanpsk Enable Lean PSK build (default: disabled)],
|
|
|
|
[ ENABLED_LEANPSK=$enableval ],
|
|
|
|
[ ENABLED_LEANPSK=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
2013-03-12 04:53:38 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_LEANPSK -DHAVE_NULL_CIPHER -DSINGLE_THREADED -DNO_AES -DNO_FILESYSTEM -DNO_RABBIT -DNO_RSA -DNO_DSA -DNO_DH -DNO_CERTS -DNO_PWDBASED -DNO_DES3 -DNO_MD4 -DNO_MD5 -DNO_ERROR_STRINGS -DNO_OLD_TLS -DNO_RC4 -DNO_WRITEV -DNO_SESSION_CACHE -DNO_DEV_RANDOM -DCYASSL_USER_IO -DNO_SHA -DUSE_SLOW_SHA"
|
2012-11-03 03:49:31 +04:00
|
|
|
ENABLED_SLOWMATH="no"
|
2012-12-01 03:45:43 +04:00
|
|
|
ENABLED_SINGLETHREADED="yes"
|
2012-10-30 02:39:42 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_LEANPSK], [test "x$ENABLED_LEANPSK" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# big cache
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([bigcache],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-bigcache Enable big session cache (default: disabled)],
|
|
|
|
[ ENABLED_BIGCACHE=$enableval ],
|
|
|
|
[ ENABLED_BIGCACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BIGCACHE" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# HUGE cache
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([hugecache],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-hugecache Enable huge session cache (default: disabled)],
|
|
|
|
[ ENABLED_HUGECACHE=$enableval ],
|
|
|
|
[ ENABLED_HUGECACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_HUGECACHE" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-09-07 03:23:25 +04:00
|
|
|
# SMALL cache
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([smallcache],
|
2011-09-07 03:23:25 +04:00
|
|
|
[ --enable-smallcache Enable small session cache (default: disabled)],
|
|
|
|
[ ENABLED_SMALLCACHE=$enableval ],
|
|
|
|
[ ENABLED_SMALLCACHE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SMALLCACHE" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-04-24 22:10:23 +04:00
|
|
|
# Persistent session cache
|
|
|
|
AC_ARG_ENABLE([savesession],
|
|
|
|
[ --enable-savesession Enable persistent session cache (default: disabled)],
|
|
|
|
[ ENABLED_SAVESESSION=$enableval ],
|
|
|
|
[ ENABLED_SAVESESSION=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SAVESESSION" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DPERSIST_SESSION_CACHE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-05-02 22:34:26 +04:00
|
|
|
# Persistent cert cache
|
|
|
|
AC_ARG_ENABLE([savecert],
|
|
|
|
[ --enable-savecert Enable persistent cert cache (default: disabled)],
|
|
|
|
[ ENABLED_SAVECERT=$enableval ],
|
|
|
|
[ ENABLED_SAVECERT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SAVECERT" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DPERSIST_CERT_CACHE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-08-10 04:27:15 +04:00
|
|
|
# Atomic User Record Layer
|
|
|
|
AC_ARG_ENABLE([atomicuser],
|
|
|
|
[ --enable-atomicuser Enable Atomic User Record Layer (default: disabled)],
|
|
|
|
[ ENABLED_ATOMICUSER=$enableval ],
|
|
|
|
[ ENABLED_ATOMICUSER=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ATOMICUSER" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DATOMIC_USER"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-08-23 05:19:39 +04:00
|
|
|
# Public Key Callbacks
|
|
|
|
AC_ARG_ENABLE([pkcallbacks],
|
|
|
|
[ --enable-pkcallbacks Enable Public Key Callbacks (default: disabled)],
|
|
|
|
[ ENABLED_PKCALLBACKS=$enableval ],
|
|
|
|
[ ENABLED_PKCALLBACKS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_PKCALLBACKS" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_PK_CALLBACKS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# SNIFFER
|
2013-12-13 02:20:56 +04:00
|
|
|
ENABLED_SNIFFTEST=no
|
2012-10-20 06:00:17 +04:00
|
|
|
AC_ARG_ENABLE([sniffer],
|
2013-12-12 02:59:46 +04:00
|
|
|
[AS_HELP_STRING([--enable-sniffer],[ Enable CyaSSL sniffer support (default: disabled) ])],[
|
|
|
|
ENABLED_SNIFFER=yes
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
|
2013-12-13 02:20:56 +04:00
|
|
|
AS_IF([ test "x$enableval" = "xyes" ],[ AC_CHECK_HEADERS([pcap/pcap.h],[
|
|
|
|
ENABLED_SNIFFTEST=yes
|
|
|
|
],[ AC_MSG_WARN([cannot enable sniffer test without having libpcap available.]) ]) ])
|
2013-12-12 02:59:46 +04:00
|
|
|
],[
|
|
|
|
ENABLED_SNIFFER=no
|
|
|
|
])
|
2012-10-20 06:00:17 +04:00
|
|
|
|
2013-12-13 02:20:56 +04:00
|
|
|
AM_CONDITIONAL([BUILD_SNIFFER], [ test "x$ENABLED_SNIFFER" = "xyes" ])
|
|
|
|
AM_CONDITIONAL([BUILD_SNIFFTEST], [ test "x$ENABLED_SNIFFTEST" = "xyes" ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2012-06-14 08:31:32 +04:00
|
|
|
# AES-GCM
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([aesgcm],
|
2012-06-14 08:31:32 +04:00
|
|
|
[ --enable-aesgcm Enable CyaSSL AES-GCM support (default: disabled)],
|
|
|
|
[ ENABLED_AESGCM=$enableval ],
|
|
|
|
[ ENABLED_AESGCM=no ]
|
|
|
|
)
|
|
|
|
|
2012-07-20 01:44:08 +04:00
|
|
|
if test "$ENABLED_AESGCM" = "word32"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_AESGCM" = "small"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_AESGCM" = "table"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
|
|
|
|
ENABLED_AESGCM=yes
|
|
|
|
fi
|
|
|
|
|
2012-06-14 08:31:32 +04:00
|
|
|
if test "$ENABLED_AESGCM" = "yes"
|
|
|
|
then
|
2013-04-02 01:25:20 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
|
2012-06-14 08:31:32 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_AESGCM], [test "x$ENABLED_AESGCM" = "xyes"])
|
|
|
|
|
2013-01-11 04:46:47 +04:00
|
|
|
|
|
|
|
# AES-CCM
|
|
|
|
AC_ARG_ENABLE([aesccm],
|
|
|
|
[ --enable-aesccm Enable CyaSSL AES-CCM support (default: disabled)],
|
|
|
|
[ ENABLED_AESCCM=$enableval ],
|
|
|
|
[ ENABLED_AESCCM=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_AESCCM" = "yes"
|
|
|
|
then
|
2013-04-02 01:25:20 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_AESCCM"
|
2013-01-11 04:46:47 +04:00
|
|
|
fi
|
|
|
|
|
2013-01-16 03:20:30 +04:00
|
|
|
AM_CONDITIONAL([BUILD_AESCCM], [test "x$ENABLED_AESCCM" = "xyes"])
|
2013-01-11 04:46:47 +04:00
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# AES-NI
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([aesni],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-aesni Enable CyaSSL AES-NI support (default: disabled)],
|
|
|
|
[ ENABLED_AESNI=$enableval ],
|
|
|
|
[ ENABLED_AESNI=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_AESNI" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_AESNI"
|
2011-02-05 22:14:47 +03:00
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
|
|
|
# GCC needs these flags, icc doesn't
|
2013-04-12 20:29:31 +04:00
|
|
|
# opt levels greater than 2 may cause problems on systems w/o aesni
|
2014-07-10 21:18:49 +04:00
|
|
|
if test "$CC" != "icc"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -maes -msse4"
|
|
|
|
fi
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_AESNI], [test "x$ENABLED_AESNI" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-07-02 00:16:44 +04:00
|
|
|
# POLY1305
|
|
|
|
AC_ARG_ENABLE([poly1305],
|
|
|
|
[ --enable-poly1305 Enable CyaSSL POLY1305 support (default: disabled)],
|
|
|
|
[ ENABLED_POLY1305=$enableval ],
|
|
|
|
[ ENABLED_POLY1305=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_POLY1305" = "yes"
|
|
|
|
then
|
2014-09-26 02:19:50 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305 -DHAVE_ONE_TIME_AUTH"
|
2014-07-02 00:16:44 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_POLY1305], [test "x$ENABLED_POLY1305" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-01-18 09:52:31 +04:00
|
|
|
# Camellia
|
|
|
|
AC_ARG_ENABLE([camellia],
|
|
|
|
[ --enable-camellia Enable CyaSSL Camellia support (default: disabled)],
|
|
|
|
[ ENABLED_CAMELLIA=$enableval ],
|
|
|
|
[ ENABLED_CAMELLIA=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CAMELLIA" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CAMELLIA"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CAMELLIA], [test "x$ENABLED_CAMELLIA" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-07-28 01:01:02 +04:00
|
|
|
# MD2
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([md2],
|
2012-07-28 01:01:02 +04:00
|
|
|
[ --enable-md2 Enable CyaSSL MD2 support (default: disabled)],
|
|
|
|
[ ENABLED_MD2=$enableval ],
|
|
|
|
[ ENABLED_MD2=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_MD2="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_MD2" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_MD2"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MD2], [test "x$ENABLED_MD2" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-13 05:49:59 +04:00
|
|
|
# NULL CIPHER
|
|
|
|
AC_ARG_ENABLE([nullcipher],
|
|
|
|
[ --enable-nullcipher Enable CyaSSL NULL cipher support (default: disabled)],
|
|
|
|
[ ENABLED_NULL_CIPHER=$enableval ],
|
|
|
|
[ ENABLED_NULL_CIPHER=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_NULL_CIPHER" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_NULL_CIPHER"
|
|
|
|
fi
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# RIPEMD
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([ripemd],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-ripemd Enable CyaSSL RIPEMD-160 support (default: disabled)],
|
|
|
|
[ ENABLED_RIPEMD=$enableval ],
|
|
|
|
[ ENABLED_RIPEMD=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_RIPEMD" = "yes"
|
|
|
|
then
|
2014-12-19 01:40:09 +03:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_RIPEMD"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RIPEMD], [test "x$ENABLED_RIPEMD" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-01-01 01:10:47 +04:00
|
|
|
# BLAKE2
|
|
|
|
AC_ARG_ENABLE([blake2],
|
|
|
|
[ --enable-blake2 Enable CyaSSL BLAKE2 support (default: disabled)],
|
|
|
|
[ ENABLED_BLAKE2=$enableval ],
|
|
|
|
[ ENABLED_BLAKE2=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BLAKE2" = "yes"
|
|
|
|
then
|
2013-03-23 00:30:44 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2"
|
2013-01-01 01:10:47 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_BLAKE2], [test "x$ENABLED_BLAKE2" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# SHA512
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([sha512],
|
2012-05-19 03:18:53 +04:00
|
|
|
[ --enable-sha512 Enable CyaSSL SHA-512 support (default: disabled)],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ ENABLED_SHA512=$enableval ],
|
|
|
|
[ ENABLED_SHA512=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SHA512" = "yes"
|
|
|
|
then
|
2013-01-30 04:22:49 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
2012-05-08 05:19:48 +04:00
|
|
|
if test "$ENABLED_FORTRESS" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_SHA512="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
AM_CONDITIONAL([BUILD_SHA512], [test "x$ENABLED_SHA512" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
# SESSION CERTS
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([sessioncerts],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-sessioncerts Enable session cert storing (default: disabled)],
|
|
|
|
[ ENABLED_SESSIONCERTS=$enableval ],
|
|
|
|
[ ENABLED_SESSIONCERTS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SESSIONCERTS" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# KEY GENERATION
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([keygen],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-keygen Enable key generation (default: disabled)],
|
|
|
|
[ ENABLED_KEYGEN=$enableval ],
|
|
|
|
[ ENABLED_KEYGEN=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_KEYGEN" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# CERT GENERATION
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([certgen],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --enable-certgen Enable cert generation (default: disabled)],
|
|
|
|
[ ENABLED_CERTGEN=$enableval ],
|
|
|
|
[ ENABLED_CERTGEN=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CERTGEN" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-01-10 23:50:55 +04:00
|
|
|
# CERT REQUEST GENERATION
|
|
|
|
AC_ARG_ENABLE([certreq],
|
|
|
|
[ --enable-certreq Enable cert request generation (default: disabled)],
|
|
|
|
[ ENABLED_CERTREQ=$enableval ],
|
|
|
|
[ ENABLED_CERTREQ=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CERTREQ" = "yes"
|
|
|
|
then
|
|
|
|
if test "$ENABLED_CERTGEN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable certreq without enabling certgen.])
|
|
|
|
fi
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-06-26 03:26:53 +04:00
|
|
|
# SEP
|
|
|
|
AC_ARG_ENABLE([sep],
|
|
|
|
[ --enable-sep Enable sep extensions (default: disabled)],
|
|
|
|
[ ENABLED_SEP=$enableval ],
|
|
|
|
[ ENABLED_SEP=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_SEP" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="-DCYASSL_SEP -DKEEP_PEER_CERT $AM_CFLAGS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-11-01 05:03:00 +04:00
|
|
|
# HKDF
|
|
|
|
AC_ARG_ENABLE([hkdf],
|
|
|
|
[ --enable-hkdf Enable HKDF (HMAC-KDF) support (default: disabled)],
|
|
|
|
[ ENABLED_HKDF=$enableval ],
|
|
|
|
[ ENABLED_HKDF=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_HKDF" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_HKDF"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 00:03:42 +04:00
|
|
|
# DSA
|
|
|
|
AC_ARG_ENABLE([dsa],
|
|
|
|
[ --enable-dsa Enable DSA (default: disabled)],
|
|
|
|
[ ENABLED_DSA=$enableval ],
|
|
|
|
[ ENABLED_DSA=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_DSA" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_DSA"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_DSA], [test "x$ENABLED_DSA" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
# ECC
|
|
|
|
AC_ARG_ENABLE([ecc],
|
|
|
|
[ --enable-ecc Enable ECC (default: disabled)],
|
|
|
|
[ ENABLED_ECC=$enableval ],
|
|
|
|
[ ENABLED_ECC=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ECC" = "yes"
|
|
|
|
then
|
2013-09-05 00:13:10 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
|
2013-03-13 00:03:42 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable ecc and small, ecc requires TLS which small turns off.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-09-07 01:24:31 +04:00
|
|
|
# FP ECC, Fixed Point cache ECC
|
|
|
|
AC_ARG_ENABLE([fpecc],
|
|
|
|
[ --enable-fpecc Enable Fixed Point cache ECC (default: disabled)],
|
|
|
|
[ ENABLED_FPECC=$enableval ],
|
|
|
|
[ ENABLED_FPECC=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_FPECC" = "yes"
|
|
|
|
then
|
2013-11-08 03:59:31 +04:00
|
|
|
if test "$ENABLED_ECC" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable fpecc without enabling ecc.])
|
|
|
|
fi
|
2013-09-07 01:24:31 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DFP_ECC"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-11-08 03:59:31 +04:00
|
|
|
# ECC encrypt
|
|
|
|
AC_ARG_ENABLE([eccencrypt],
|
|
|
|
[ --enable-eccencrypt Enable ECC encrypt (default: disabled)],
|
|
|
|
[ ENABLED_ECC_ENCRYPT=$enableval ],
|
|
|
|
[ ENABLED_ECC_ENCRYPT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ECC_ENCRYPT" = "yes"
|
|
|
|
then
|
|
|
|
if test "$ENABLED_ECC" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable eccencrypt without enabling ecc.])
|
|
|
|
fi
|
|
|
|
if test "$ENABLED_HKDF" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable eccencrypt without enabling hkdf.])
|
|
|
|
fi
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_ENCRYPT"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-12 23:48:41 +04:00
|
|
|
# PSK
|
|
|
|
AC_ARG_ENABLE([psk],
|
|
|
|
[ --enable-psk Enable PSK (default: disabled)],
|
|
|
|
[ ENABLED_PSK=$enableval ],
|
|
|
|
[ ENABLED_PSK=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_PSK=yes
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 22:27:14 +04:00
|
|
|
# ERROR STRINGS
|
|
|
|
AC_ARG_ENABLE([errorstrings],
|
|
|
|
[ --enable-errorstrings Enable error strings table (default: enabled)],
|
|
|
|
[ ENABLED_ERROR_STRINGS=$enableval ],
|
|
|
|
[ ENABLED_ERROR_STRINGS=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ERROR_STRINGS" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
|
|
|
|
else
|
|
|
|
# turn off error strings if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_ERROR_STRINGS"
|
|
|
|
ENABLED_ERROR_STRINGS=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 22:49:11 +04:00
|
|
|
# OLD TLS
|
|
|
|
AC_ARG_ENABLE([oldtls],
|
|
|
|
[ --enable-oldtls Enable old TLS versions < 1.2 (default: enabled)],
|
|
|
|
[ ENABLED_OLD_TLS=$enableval ],
|
|
|
|
[ ENABLED_OLD_TLS=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_OLD_TLS" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
|
|
|
|
else
|
|
|
|
# turn off old if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_OLD_TLS"
|
|
|
|
ENABLED_OLD_TLS=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-28 22:28:38 +04:00
|
|
|
# STACK SIZE info for examples
|
|
|
|
AC_ARG_ENABLE([stacksize],
|
|
|
|
[ --enable-stacksize Enable stack size info on examples (default: disabled)],
|
|
|
|
[ ENABLED_STACKSIZE=$enableval ],
|
|
|
|
[ ENABLED_STACKSIZE=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_STACKSIZE" = "yes"
|
|
|
|
then
|
|
|
|
AC_CHECK_FUNC([posix_memalign], [], [AC_MSG_ERROR(stacksize needs posix_memalign)])
|
2013-06-20 00:04:43 +04:00
|
|
|
AC_CHECK_FUNC([pthread_attr_setstack], [], AC_CHECK_LIB([pthread],[pthread_attr_setstack]))
|
2013-03-28 22:38:27 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_STACK_SIZE -DCYASSL_LOW_MEMORY"
|
2013-03-28 22:28:38 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 00:31:14 +04:00
|
|
|
# MEMORY
|
|
|
|
AC_ARG_ENABLE([memory],
|
|
|
|
[ --enable-memory Enable memory callbacks (default: enabled)],
|
|
|
|
[ ENABLED_MEMORY=$enableval ],
|
|
|
|
[ ENABLED_MEMORY=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_MEMORY" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_CYASSL_MEMORY"
|
|
|
|
else
|
|
|
|
# turn off memory cb if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
# but don't turn on NO_CYASSL_MEMORY because using own
|
|
|
|
ENABLED_MEMORY=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MEMORY], [test "x$ENABLED_MEMORY" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-11 23:49:59 +04:00
|
|
|
# RSA
|
|
|
|
AC_ARG_ENABLE([rsa],
|
|
|
|
[ --enable-rsa Enable RSA (default: enabled)],
|
|
|
|
[ ENABLED_RSA=$enableval ],
|
|
|
|
[ ENABLED_RSA=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_RSA" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
|
|
|
|
else
|
|
|
|
# turn off RSA if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RSA"
|
|
|
|
ENABLED_RSA=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RSA], [test "x$ENABLED_RSA" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-13 00:03:42 +04:00
|
|
|
# DH
|
|
|
|
AC_ARG_ENABLE([dh],
|
2014-07-10 21:18:49 +04:00
|
|
|
[ --enable-dh Enable DH (default: disabled)],
|
2013-03-13 00:03:42 +04:00
|
|
|
[ ENABLED_DH=$enableval ],
|
2014-07-10 21:18:49 +04:00
|
|
|
[ ENABLED_DH=no ]
|
2013-03-13 00:03:42 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_DH" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_DH"
|
|
|
|
else
|
|
|
|
# turn off DH if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_DH"
|
|
|
|
ENABLED_DH=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_DH], [test "x$ENABLED_DH" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-12-01 22:44:32 +03:00
|
|
|
# Anonymous
|
|
|
|
AC_ARG_ENABLE([anon],
|
|
|
|
[AS_HELP_STRING([--enable-anon],[Enable Anonymous (default: disabled)])],
|
|
|
|
[ ENABLED_ANON=$enableval ],
|
|
|
|
[ ENABLED_ANON=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$ENABLED_ANON" = "xyes"
|
|
|
|
then
|
|
|
|
if test "x$ENABLED_DH" != "xyes"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([Anonymous suite requires DH.])
|
|
|
|
fi
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ANON"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-12 23:48:41 +04:00
|
|
|
# ASN
|
2013-03-13 02:14:03 +04:00
|
|
|
# turn off asn, which means no certs, no rsa, no dh, no dsa, no ecc,
|
|
|
|
# and no big int, use this to disable all public key stuff
|
2013-03-12 23:48:41 +04:00
|
|
|
AC_ARG_ENABLE([asn],
|
|
|
|
[ --enable-asn Enable ASN (default: enabled)],
|
|
|
|
[ ENABLED_ASN=$enableval ],
|
|
|
|
[ ENABLED_ASN=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
2013-03-13 02:14:03 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
|
2013-03-12 23:48:41 +04:00
|
|
|
else
|
|
|
|
# turn off ASN if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
2013-03-13 02:14:03 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_ASN -DNO_CERTS -DNO_BIG_INT"
|
2013-03-12 23:48:41 +04:00
|
|
|
ENABLED_ASN=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_RSA" = "yes" && test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please disable rsa if disabling asn.])
|
|
|
|
fi
|
|
|
|
|
2013-03-13 00:03:42 +04:00
|
|
|
if test "$ENABLED_DSA" = "yes" && test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please disable dsa if disabling asn.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_DH" = "yes" && test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please disable dh if disabling asn.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_ECC" = "yes" && test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please disable ecc if disabling asn.])
|
|
|
|
fi
|
|
|
|
|
2013-03-12 23:48:41 +04:00
|
|
|
if test "$ENABLED_PSK" = "no" && test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please enable psk if disabling asn.])
|
|
|
|
fi
|
|
|
|
|
2013-03-13 02:14:03 +04:00
|
|
|
if test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
ENABLED_FASTMATH=no
|
|
|
|
ENABLED_SLOWMATH=no
|
|
|
|
fi
|
|
|
|
|
2013-03-12 23:48:41 +04:00
|
|
|
AM_CONDITIONAL([BUILD_ASN], [test "x$ENABLED_ASN" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 04:07:37 +04:00
|
|
|
# AES
|
|
|
|
AC_ARG_ENABLE([aes],
|
|
|
|
[ --enable-aes Enable AES (default: enabled)],
|
|
|
|
[ ENABLED_AES=$enableval ],
|
|
|
|
[ ENABLED_AES=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_AES" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_AES"
|
|
|
|
else
|
|
|
|
# turn off AES if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_AES"
|
|
|
|
ENABLED_AES=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_AES], [test "x$ENABLED_AES" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-13 00:12:10 +04:00
|
|
|
# CODING
|
|
|
|
AC_ARG_ENABLE([coding],
|
|
|
|
[ --enable-coding Enable Coding base 16/64 (default: enabled)],
|
|
|
|
[ ENABLED_CODING=$enableval ],
|
|
|
|
[ ENABLED_CODING=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CODING" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
|
|
|
|
else
|
|
|
|
# turn off CODING if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_CODING"
|
|
|
|
ENABLED_CODING=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CODING], [test "x$ENABLED_CODING" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 20:46:15 +04:00
|
|
|
# DES3
|
|
|
|
AC_ARG_ENABLE([des3],
|
|
|
|
[ --enable-des3 Enable DES3 (default: enabled)],
|
|
|
|
[ ENABLED_DES3=$enableval ],
|
|
|
|
[ ENABLED_DES3=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_DES3" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
|
|
|
|
else
|
|
|
|
# turn off DES3 if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_DES3"
|
|
|
|
ENABLED_DES3=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_DES3], [test "x$ENABLED_DES3" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 04:13:24 +04:00
|
|
|
# ARC4
|
|
|
|
AC_ARG_ENABLE([arc4],
|
|
|
|
[ --enable-arc4 Enable ARC4 (default: enabled)],
|
|
|
|
[ ENABLED_ARC4=$enableval ],
|
|
|
|
[ ENABLED_ARC4=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_ARC4" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
|
|
|
|
else
|
|
|
|
# turn off ARC4 if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RC4"
|
|
|
|
ENABLED_ARC4=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RC4], [test "x$ENABLED_ARC4" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 04:37:08 +04:00
|
|
|
# MD5
|
|
|
|
AC_ARG_ENABLE([md5],
|
|
|
|
[ --enable-md5 Enable MD5 (default: enabled)],
|
|
|
|
[ ENABLED_MD5=$enableval ],
|
|
|
|
[ ENABLED_MD5=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_MD5" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
|
|
|
|
else
|
|
|
|
# turn off MD5 if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_MD5 -DNO_OLD_TLS"
|
|
|
|
ENABLED_MD5=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MD5], [test "x$ENABLED_MD5" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 04:53:38 +04:00
|
|
|
# SHA
|
|
|
|
AC_ARG_ENABLE([sha],
|
|
|
|
[ --enable-sha Enable SHA (default: enabled)],
|
|
|
|
[ ENABLED_SHA=$enableval ],
|
|
|
|
[ ENABLED_SHA=yes ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_SHA" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
|
|
|
|
else
|
|
|
|
# turn off SHA if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
|
|
|
|
ENABLED_SHA=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_SHA], [test "x$ENABLED_SHA" = "xyes"])
|
|
|
|
|
|
|
|
|
2013-03-12 03:26:08 +04:00
|
|
|
# MD4
|
|
|
|
AC_ARG_ENABLE([md4],
|
|
|
|
[ --enable-md4 Enable MD4 (default: disabled)],
|
|
|
|
[ ENABLED_MD4=$enableval ],
|
|
|
|
[ ENABLED_MD4=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_MD4" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_MD4"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MD4], [test "x$ENABLED_MD4" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-03-04 00:18:26 +04:00
|
|
|
# Web Server Build
|
|
|
|
AC_ARG_ENABLE([webserver],
|
|
|
|
[ --enable-webserver Enable Web Server (default: disabled)],
|
|
|
|
[ ENABLED_WEBSERVER=$enableval ],
|
|
|
|
[ ENABLED_WEBSERVER=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_WEBSERVER" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-12 04:01:05 +04:00
|
|
|
# PWDBASED
|
|
|
|
AC_ARG_ENABLE([pwdbased],
|
|
|
|
[ --enable-pwdbased Enable PWDBASED (default: disabled)],
|
|
|
|
[ ENABLED_PWDBASED=$enableval ],
|
|
|
|
[ ENABLED_PWDBASED=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_PWDBASED" = "no"
|
|
|
|
then
|
2014-03-04 00:18:26 +04:00
|
|
|
if test "$ENABLED_OPENSSLEXTRA" = "yes" || test "$ENABLED_WEBSERVER" = "yes"
|
2013-03-12 04:01:05 +04:00
|
|
|
then
|
2014-03-04 00:18:26 +04:00
|
|
|
# opensslextra and webserver needs pwdbased
|
2013-03-12 04:01:05 +04:00
|
|
|
ENABLED_PWDBASED=yes
|
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_PWDBASED"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_PWDBASED], [test "x$ENABLED_PWDBASED" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-08-25 04:39:23 +04:00
|
|
|
# HC128
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([hc128],
|
2011-09-29 00:19:05 +04:00
|
|
|
[ --enable-hc128 Enable HC-128 (default: disabled)],
|
2011-08-25 04:39:23 +04:00
|
|
|
[ ENABLED_HC128=$enableval ],
|
|
|
|
[ ENABLED_HC128=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_HC128" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
|
2011-09-29 00:19:05 +04:00
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
|
2011-08-25 04:39:23 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_HC128], [test "x$ENABLED_HC128" = "xyes"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
2012-10-23 04:28:46 +04:00
|
|
|
# RABBIT
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([rabbit],
|
2012-10-23 04:28:46 +04:00
|
|
|
[ --enable-rabbit Enable RABBIT (default: disabled)],
|
|
|
|
[ ENABLED_RABBIT=$enableval ],
|
|
|
|
[ ENABLED_RABBIT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_RABBIT" = "no"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_RABBIT"
|
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_RABBIT"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_RABBIT], [test "x$ENABLED_RABBIT" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-07-02 00:16:44 +04:00
|
|
|
# CHACHA
|
|
|
|
AC_ARG_ENABLE([chacha],
|
|
|
|
[ --enable-chacha Enable CHACHA (default: disabled)],
|
|
|
|
[ ENABLED_CHACHA=$enableval ],
|
|
|
|
[ ENABLED_CHACHA=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CHACHA" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CHACHA"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CHACHA], [test "x$ENABLED_CHACHA" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-03-19 20:43:57 +04:00
|
|
|
# FIPS
|
|
|
|
AC_ARG_ENABLE([fips],
|
2014-03-19 21:19:08 +04:00
|
|
|
[ --enable-fips Enable FIPS 140-2 (default: disabled)],
|
2014-03-19 20:43:57 +04:00
|
|
|
[ ENABLED_FIPS=$enableval ],
|
|
|
|
[ ENABLED_FIPS=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_FIPS" = "xyes"
|
|
|
|
then
|
2014-03-28 01:03:12 +04:00
|
|
|
# requires thread local storage
|
2014-03-19 21:19:08 +04:00
|
|
|
if test "$thread_ls_on" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([FIPS requires Thread Local Storage])
|
|
|
|
fi
|
2014-03-28 01:03:12 +04:00
|
|
|
# requires SHA512
|
|
|
|
if test "x$ENABLED_SHA512" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_SHA512="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512 -DCYASSL_SHA384"
|
|
|
|
AM_CONDITIONAL([BUILD_SHA512], [test "x$ENABLED_SHA512" = "xyes"])
|
|
|
|
fi
|
2014-10-28 01:52:22 +03:00
|
|
|
# requires AESGCM
|
|
|
|
if test "x$ENABLED_AESGCM" != "xyes"
|
|
|
|
then
|
|
|
|
ENABLED_AESGCM="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM"
|
|
|
|
AM_CONDITIONAL([BUILD_SHA512], [test "x$ENABLED_SHA512" = "xyes"])
|
|
|
|
fi
|
2014-03-19 20:43:57 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_FIPS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_FIPS], [test "x$ENABLED_FIPS" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-05-07 22:54:12 +04:00
|
|
|
# Hash DRBG
|
|
|
|
AC_ARG_ENABLE([hashdrbg],
|
2014-12-01 20:12:26 +03:00
|
|
|
[ --enable-hashdrbg Enable Hash DRBG support (default: enabled)],
|
2014-05-07 22:54:12 +04:00
|
|
|
[ ENABLED_HASHDRBG=$enableval ],
|
2014-12-01 20:12:26 +03:00
|
|
|
[ ENABLED_HASHDRBG=yes ]
|
2014-05-07 22:54:12 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_HASHDRBG" = "xyes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
|
|
|
|
else
|
|
|
|
# turn on Hash DRBG if FIPS is on or ARC4 is off
|
|
|
|
if test "x$ENABLED_FIPS" = "xyes" || test "x$ENABLED_ARC4" = "xno"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_HASHDRBG"
|
|
|
|
ENABLED_HASHDRBG=yes
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 23:14:05 +04:00
|
|
|
# Filesystem Build
|
|
|
|
AC_ARG_ENABLE([filesystem],
|
2013-06-01 04:57:08 +04:00
|
|
|
[ --enable-filesystem Enable Filesystem support (default: enabled)],
|
2013-03-13 23:14:05 +04:00
|
|
|
[ ENABLED_FILESYSTEM=$enableval ],
|
|
|
|
[ ENABLED_FILESYSTEM=yes ]
|
2011-06-30 21:07:49 +04:00
|
|
|
)
|
|
|
|
|
2013-03-13 23:14:05 +04:00
|
|
|
if test "$ENABLED_FILESYSTEM" = "no"
|
2011-06-30 21:07:49 +04:00
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
|
2013-03-13 23:14:05 +04:00
|
|
|
else
|
|
|
|
# turn off filesystem if leanpsk on
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
|
|
|
|
ENABLED_FILESYSTEM=no
|
|
|
|
fi
|
2011-06-30 21:07:49 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-03-13 23:25:34 +04:00
|
|
|
# inline Build
|
|
|
|
AC_ARG_ENABLE([inline],
|
2013-05-10 23:34:00 +04:00
|
|
|
[ --enable-inline Enable inline functions (default: enabled)],
|
2013-03-13 23:25:34 +04:00
|
|
|
[ ENABLED_INLINE=$enableval ],
|
|
|
|
[ ENABLED_INLINE=yes ]
|
2011-08-03 21:59:08 +04:00
|
|
|
)
|
|
|
|
|
2013-03-13 23:25:34 +04:00
|
|
|
if test "$ENABLED_INLINE" = "no"
|
2011-08-03 21:59:08 +04:00
|
|
|
then
|
2011-08-25 22:41:14 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
|
2011-08-03 21:59:08 +04:00
|
|
|
fi
|
|
|
|
|
2013-03-13 23:25:34 +04:00
|
|
|
AM_CONDITIONAL([BUILD_INLINE], [test "x$ENABLED_INLINE" = "xyes"])
|
2011-06-07 20:02:36 +04:00
|
|
|
|
|
|
|
|
2012-04-13 20:39:19 +04:00
|
|
|
# OCSP
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([ocsp],
|
2012-04-13 20:39:19 +04:00
|
|
|
[ --enable-ocsp Enable OCSP (default: disabled)],
|
|
|
|
[ ENABLED_OCSP=$enableval ],
|
|
|
|
[ ENABLED_OCSP=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_OCSP" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_OCSP], [test "x$ENABLED_OCSP" = "xyes"])
|
|
|
|
|
|
|
|
|
2014-01-31 22:37:11 +04:00
|
|
|
if test "$ENABLED_OCSP" = "yes"
|
|
|
|
then
|
|
|
|
# check openssl command tool for testing ocsp
|
|
|
|
AC_CHECK_PROG([HAVE_OPENSSL_CMD],[openssl],[yes],[no])
|
|
|
|
|
|
|
|
if test "$HAVE_OPENSSL_CMD" = "yes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_OPENSSL_CMD"
|
|
|
|
else
|
|
|
|
AC_MSG_WARN([openssl command line tool not available for testing ocsp])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-05-11 23:22:16 +04:00
|
|
|
# CRL
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([crl],
|
2012-05-11 23:22:16 +04:00
|
|
|
[ --enable-crl Enable CRL (default: disabled)],
|
|
|
|
[ ENABLED_CRL=$enableval ],
|
|
|
|
[ ENABLED_CRL=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CRL" = "yes"
|
|
|
|
then
|
2012-06-05 22:31:00 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
|
2012-05-11 23:22:16 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CRL], [test "x$ENABLED_CRL" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-06-05 22:31:00 +04:00
|
|
|
# CRL Monitor
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([crl-monitor],
|
2012-06-05 22:31:00 +04:00
|
|
|
[ --enable-crl-monitor Enable CRL Monitor (default: disabled)],
|
|
|
|
[ ENABLED_CRL_MONITOR=$enableval ],
|
|
|
|
[ ENABLED_CRL_MONITOR=no ],
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_CRL_MONITOR" = "yes"
|
|
|
|
then
|
2012-11-16 22:47:13 +04:00
|
|
|
case $host_os in
|
2012-11-17 01:25:45 +04:00
|
|
|
*linux* | *darwin* | *freebsd*)
|
2012-11-16 22:47:13 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR" ;;
|
|
|
|
*)
|
2012-11-17 01:25:45 +04:00
|
|
|
AC_MSG_ERROR([crl monitor only allowed on linux, OS X, or freebsd]) ;;
|
2012-11-16 22:47:13 +04:00
|
|
|
esac
|
2012-06-05 22:31:00 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_CRL_MONITOR], [test "x$ENABLED_CRL_MONITOR" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# NTRU
|
2014-07-10 21:18:49 +04:00
|
|
|
ENABLED_NTRU="no"
|
|
|
|
tryntrudir=""
|
|
|
|
AC_ARG_WITH([ntru],
|
|
|
|
[ --with-ntru=PATH Path to NTRU install (default /usr/) ],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for NTRU])
|
|
|
|
CPPFLAGS="$CPPFLAGS -DHAVE_NTRU"
|
|
|
|
LIBS="$LIBS -lNTRUEncrypt"
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2014-07-10 21:18:49 +04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <ntru_crypto_drbg.h>]], [[ ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0); ]])], [ ntru_linked=yes ],[ ntru_linked=no ])
|
|
|
|
|
|
|
|
if test "x$ntru_linked" == "xno" ; then
|
|
|
|
if test "x$withval" != "xno" ; then
|
|
|
|
tryntrudir=$withval
|
|
|
|
fi
|
|
|
|
if test "x$withval" == "xyes" ; then
|
|
|
|
tryntrudir="/usr"
|
|
|
|
fi
|
|
|
|
|
|
|
|
LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$tryntrudir/include"
|
|
|
|
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <ntru_crypto_drbg.h>]], [[ ntru_crypto_drbg_instantiate(0, 0, 0, 0, 0); ]])], [ ntru_linked=yes ],[ ntru_linked=no ])
|
|
|
|
|
|
|
|
if test "x$ntru_linked" == "xno" ; then
|
|
|
|
AC_MSG_ERROR([NTRU isn't found.
|
|
|
|
If it's already installed, specify its path using --with-ntru=/dir/])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
AM_LDFLAGS="$AM_LDFLAGS -L$tryntrudir/lib"
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU"
|
|
|
|
ENABLED_NTRU="yes"
|
|
|
|
]
|
|
|
|
)
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_NTRU], [test "x$ENABLED_NTRU" = "xyes"])
|
|
|
|
|
2011-06-07 20:02:36 +04:00
|
|
|
if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
|
|
|
|
then
|
2011-10-04 23:29:59 +04:00
|
|
|
AC_MSG_ERROR([cannot enable ntru and small, ntru requires TLS which small turns off.])
|
2011-06-07 20:02:36 +04:00
|
|
|
fi
|
|
|
|
|
2013-05-22 01:37:50 +04:00
|
|
|
# SNI
|
|
|
|
AC_ARG_ENABLE([sni],
|
|
|
|
[ --enable-sni Enable SNI (default: disabled)],
|
|
|
|
[ ENABLED_SNI=$enableval ],
|
|
|
|
[ ENABLED_SNI=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_SNI" = "xyes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI"
|
|
|
|
fi
|
|
|
|
|
2013-06-19 22:45:06 +04:00
|
|
|
# Maximum Fragment Length
|
|
|
|
AC_ARG_ENABLE([maxfragment],
|
2013-06-26 03:26:53 +04:00
|
|
|
[ --enable-maxfragment Enable Maximum Fragment Length (default: disabled)],
|
2013-06-19 22:45:06 +04:00
|
|
|
[ ENABLED_MAX_FRAGMENT=$enableval ],
|
|
|
|
[ ENABLED_MAX_FRAGMENT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_MAX_FRAGMENT" = "xyes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_MAX_FRAGMENT"
|
|
|
|
fi
|
|
|
|
|
2013-07-23 22:42:43 +04:00
|
|
|
# Truncated HMAC
|
|
|
|
AC_ARG_ENABLE([truncatedhmac],
|
|
|
|
[ --enable-truncatedhmac Enable Truncated HMAC (default: disabled)],
|
|
|
|
[ ENABLED_TRUNCATED_HMAC=$enableval ],
|
|
|
|
[ ENABLED_TRUNCATED_HMAC=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_TRUNCATED_HMAC" = "xyes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_TRUNCATED_HMAC"
|
|
|
|
fi
|
|
|
|
|
2014-09-17 03:33:17 +04:00
|
|
|
# Renegotiation Indication - (FAKE Secure Renegotiation)
|
2014-01-21 18:36:06 +04:00
|
|
|
AC_ARG_ENABLE([renegotiation-indication],
|
|
|
|
[ --enable-renegotiation-indication Enable Renegotiation Indication (default: disabled)],
|
|
|
|
[ ENABLED_RENEGOTIATION_INDICATION=$enableval ],
|
|
|
|
[ ENABLED_RENEGOTIATION_INDICATION=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
|
|
|
|
then
|
2014-09-06 01:29:18 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_RENEGOTIATION_INDICATION"
|
2014-01-21 18:36:06 +04:00
|
|
|
fi
|
|
|
|
|
2014-09-17 03:33:17 +04:00
|
|
|
# Secure Renegotiation
|
|
|
|
AC_ARG_ENABLE([secure-renegotiation],
|
|
|
|
[ --enable-secure-renegotiation Enable Secure Renegotiation (default: disabled)],
|
|
|
|
[ ENABLED_SECURE_RENEGOTIATION=$enableval ],
|
|
|
|
[ ENABLED_SECURE_RENEGOTIATION=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_SECURE_RENEGOTIATION" = "xyes"
|
|
|
|
then
|
2014-10-02 21:18:11 +04:00
|
|
|
if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([cannot enable renegotiation-indication and secure-renegotiation.])
|
|
|
|
fi
|
2014-09-17 03:33:17 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SECURE_RENEGOTIATION"
|
|
|
|
fi
|
|
|
|
|
2014-02-03 23:11:57 +04:00
|
|
|
# Supported Elliptic Curves Extensions
|
|
|
|
AC_ARG_ENABLE([supportedcurves],
|
|
|
|
[ --enable-supportedcurves Enable Supported Elliptic Curves (default: disabled)],
|
|
|
|
[ ENABLED_SUPPORTED_CURVES=$enableval ],
|
|
|
|
[ ENABLED_SUPPORTED_CURVES=no ]
|
2013-08-26 19:44:50 +04:00
|
|
|
)
|
|
|
|
|
2014-02-03 23:11:57 +04:00
|
|
|
if test "x$ENABLED_SUPPORTED_CURVES" = "xyes"
|
2013-08-26 19:44:50 +04:00
|
|
|
then
|
2014-02-03 23:11:57 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SUPPORTED_CURVES"
|
2013-08-26 19:44:50 +04:00
|
|
|
fi
|
|
|
|
|
2014-09-29 23:43:28 +04:00
|
|
|
# Session Ticket Extension
|
|
|
|
AC_ARG_ENABLE([session-ticket],
|
|
|
|
[ --enable-session-ticket Enable Session Ticket (default: disabled)],
|
|
|
|
[ ENABLED_SESSION_TICKET=$enableval ],
|
|
|
|
[ ENABLED_SESSION_TICKET=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_SESSION_TICKET" = "xyes"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SESSION_TICKET"
|
|
|
|
fi
|
|
|
|
|
2013-06-19 22:45:06 +04:00
|
|
|
# TLS Extensions
|
|
|
|
AC_ARG_ENABLE([tlsx],
|
|
|
|
[ --enable-tlsx Enable all TLS Extensions (default: disabled)],
|
|
|
|
[ ENABLED_TLSX=$enableval ],
|
|
|
|
[ ENABLED_TLSX=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_TLSX" = "xyes"
|
|
|
|
then
|
2013-07-23 22:42:43 +04:00
|
|
|
ENABLED_SNI=yes
|
|
|
|
ENABLED_MAX_FRAGMENT=yes
|
2013-12-02 23:01:55 +04:00
|
|
|
ENABLED_TRUNCATED_HMAC=yes
|
2014-02-03 23:11:57 +04:00
|
|
|
ENABLED_SUPPORTED_CURVES=yes
|
2014-09-17 03:33:17 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SNI -DHAVE_MAX_FRAGMENT -DHAVE_TRUNCATED_HMAC -DHAVE_SUPPORTED_CURVES"
|
2013-06-19 22:45:06 +04:00
|
|
|
fi
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2014-01-11 03:11:17 +04:00
|
|
|
# PKCS7
|
2014-01-11 02:17:03 +04:00
|
|
|
AC_ARG_ENABLE([pkcs7],
|
|
|
|
[ --enable-pkcs7 Enable PKCS7 (default: disabled)],
|
|
|
|
[ ENABLED_PKCS7=$enableval ],
|
2014-01-11 03:11:17 +04:00
|
|
|
[ ENABLED_PKCS7=no ],
|
2014-01-11 02:17:03 +04:00
|
|
|
)
|
|
|
|
|
2014-01-11 03:11:17 +04:00
|
|
|
if test "$ENABLED_PKCS7" = "yes"
|
2014-01-11 02:17:03 +04:00
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_PKCS7], [test "x$ENABLED_PKCS7" = "xyes"])
|
|
|
|
|
2014-01-27 23:35:43 +04:00
|
|
|
|
|
|
|
# Simple Certificate Enrollment Protocol (SCEP)
|
|
|
|
AC_ARG_ENABLE([scep],
|
|
|
|
[ --enable-scep Enable wolfSCEP (default: disabled)],
|
|
|
|
[ ENABLED_WOLFSCEP=$enableval ],
|
|
|
|
[ ENABLED_WOLFSCEP=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_WOLFSCEP" = "yes"
|
|
|
|
then
|
|
|
|
# Enable prereqs if not already enabled
|
|
|
|
if test "x$ENABLED_KEYGEN" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_KEYGEN="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLED_CERTGEN" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_CERTGEN="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLED_CERTREQ" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_CERTREQ="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_REQ"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLED_PKCS7" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_PKCS7="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_PKCS7"
|
|
|
|
AM_CONDITIONAL([BUILD_PKCS7], [test "x$ENABLED_PKCS7" = "xyes"])
|
|
|
|
fi
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_WOLFSCEP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-04-15 19:46:43 +04:00
|
|
|
# Small Stack
|
|
|
|
AC_ARG_ENABLE([smallstack],
|
2014-05-12 15:34:19 +04:00
|
|
|
[ --enable-smallstack Enable Small Stack Usage (default: disabled)],
|
2014-04-15 19:46:43 +04:00
|
|
|
[ ENABLED_SMALL_STACK=$enableval ],
|
2014-05-12 15:34:19 +04:00
|
|
|
[ ENABLED_SMALL_STACK=no ]
|
2014-04-15 19:46:43 +04:00
|
|
|
)
|
|
|
|
|
2014-04-16 20:25:51 +04:00
|
|
|
if test "x$ENABLED_SMALL_STACK" = "xyes"
|
2014-04-15 19:46:43 +04:00
|
|
|
then
|
2014-12-17 20:28:35 +03:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SMALL_STACK"
|
2014-04-15 19:46:43 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2012-12-05 09:28:18 +04:00
|
|
|
#valgrind
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([valgrind],
|
2012-12-05 09:28:18 +04:00
|
|
|
[ --enable-valgrind Enable valgrind for unit tests (default: disabled)],
|
|
|
|
[ ENABLED_VALGRIND=$enableval ],
|
|
|
|
[ ENABLED_VALGRIND=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_VALGRIND" = "yes"
|
|
|
|
then
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_CHECK_PROG([HAVE_VALGRIND],[valgrind],[yes],[no])
|
2012-12-05 09:28:18 +04:00
|
|
|
|
2013-05-17 03:20:51 +04:00
|
|
|
if test "$HAVE_VALGRIND" = "no"
|
|
|
|
then
|
2012-12-05 09:28:18 +04:00
|
|
|
AC_MSG_ERROR([Valgrind not found.])
|
|
|
|
fi
|
|
|
|
enable_shared=no
|
2013-03-28 02:17:21 +04:00
|
|
|
enable_static=yes
|
2013-01-05 03:52:46 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_VALGRIND"
|
2012-12-05 09:28:18 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([USE_VALGRIND], [test "x$ENABLED_VALGRIND" = "xyes"])
|
|
|
|
|
|
|
|
|
2011-06-04 00:01:45 +04:00
|
|
|
# Test certs, use internal cert functions for extra testing
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([testcert],
|
2011-06-04 00:01:45 +04:00
|
|
|
[ --enable-testcert Enable Test Cert (default: disabled)],
|
|
|
|
[ ENABLED_TESTCERT=$enableval ],
|
|
|
|
[ ENABLED_TESTCERT=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_TESTCERT" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_TEST_CERT"
|
2011-06-04 00:01:45 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-03-14 05:54:51 +04:00
|
|
|
# I/O Pool, an example to show user how to override memory handler and use
|
|
|
|
# a pool for the input/output buffer requests
|
|
|
|
AC_ARG_ENABLE([iopool],
|
|
|
|
[ --enable-iopool Enable I/O Pool example (default: disabled)],
|
|
|
|
[ ENABLED_IOPOOL=$enableval ],
|
|
|
|
[ ENABLED_IOPOOL=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_IOPOOL" = "yes"
|
|
|
|
then
|
|
|
|
if test "$thread_ls_on" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([I/O Pool example requires Thread Local Storage])
|
|
|
|
fi
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_IO_POOL -DXMALLOC_USER"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2014-02-12 01:08:12 +04:00
|
|
|
# Certificate Service Support
|
|
|
|
AC_ARG_ENABLE([certservice],
|
|
|
|
[ --enable-certservice Enable cert service (default: disabled)],
|
|
|
|
[ ENABLED_CERT_SERVICE=$enableval ],
|
|
|
|
[ ENABLED_CERT_SERVICE=no ]
|
|
|
|
)
|
|
|
|
if test "$ENABLED_CERT_SERVICE" = "yes"
|
|
|
|
then
|
2014-02-13 20:53:12 +04:00
|
|
|
# Requires ecc,certgen, and opensslextra make sure on
|
2014-02-12 01:08:12 +04:00
|
|
|
if test "x$ENABLED_CERTGEN" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_CERTGEN="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
|
|
|
|
fi
|
|
|
|
if test "x$ENABLED_ECC" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_ECC="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256 -DECC_SHAMIR"
|
|
|
|
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
|
|
|
|
fi
|
2014-02-13 20:53:12 +04:00
|
|
|
if test "x$ENABLED_OPENSSLEXTRA" = "xno"
|
|
|
|
then
|
|
|
|
ENABLED_OPENSSLEXTRA="yes"
|
|
|
|
AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
|
|
|
|
fi
|
2014-02-12 01:08:12 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DCYASSL_HAVE_CERT_SERVICE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-07-01 23:10:59 +04:00
|
|
|
# set fastmath default
|
|
|
|
FASTMATH_DEFAULT=no
|
|
|
|
|
2014-02-13 21:33:30 +04:00
|
|
|
if test "$host_cpu" = "x86_64"
|
2013-07-01 23:10:59 +04:00
|
|
|
then
|
|
|
|
FASTMATH_DEFAULT=yes
|
|
|
|
fi
|
|
|
|
|
2013-03-13 02:14:03 +04:00
|
|
|
# fastmath
|
|
|
|
AC_ARG_ENABLE([fastmath],
|
2013-07-01 23:10:59 +04:00
|
|
|
[ --enable-fastmath Enable fast math ops (default: enabled on x86_64)],
|
2013-03-13 02:14:03 +04:00
|
|
|
[ ENABLED_FASTMATH=$enableval ],
|
2013-07-01 23:10:59 +04:00
|
|
|
[ ENABLED_FASTMATH=$FASTMATH_DEFAULT]
|
2013-03-13 02:14:03 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
if test "x$ENABLED_FASTMATH" = "xyes"
|
|
|
|
then
|
2013-03-19 02:32:04 +04:00
|
|
|
# turn off fastmth if leanpsk on or asn off
|
|
|
|
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_ASN" = "no"
|
|
|
|
then
|
|
|
|
ENABLED_FASTMATH=no
|
|
|
|
else
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
|
|
|
|
ENABLED_SLOWMATH="no"
|
|
|
|
fi
|
2013-03-13 02:14:03 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# fast HUGE math
|
|
|
|
AC_ARG_ENABLE([fasthugemath],
|
|
|
|
[ --enable-fasthugemath Enable fast math + huge code (default: disabled)],
|
|
|
|
[ ENABLED_FASTHUGEMATH=$enableval ],
|
|
|
|
[ ENABLED_FASTHUGEMATH=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_BUMP" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_FASTHUGEMATH="yes"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_FASTHUGEMATH" = "yes"
|
|
|
|
then
|
|
|
|
ENABLED_FASTMATH="yes"
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
|
|
|
|
ENABLED_SLOWMATH="no"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_FASTMATH], [test "x$ENABLED_FASTMATH" = "xyes"])
|
|
|
|
AM_CONDITIONAL([BUILD_SLOWMATH], [test "x$ENABLED_SLOWMATH" = "xyes"])
|
|
|
|
|
|
|
|
|
2012-11-29 23:31:57 +04:00
|
|
|
# Enable Examples, used to disable examples
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_ENABLE([examples],
|
2012-11-29 23:31:57 +04:00
|
|
|
[ --enable-examples Enable Examples (default: enabled)],
|
|
|
|
[ ENABLED_EXAMPLES=$enableval ],
|
|
|
|
[ ENABLED_EXAMPLES=yes ]
|
|
|
|
)
|
|
|
|
|
2013-03-13 23:14:05 +04:00
|
|
|
AS_IF([test "x$ENABLED_FILESYSTEM" = "xno"], [ENABLED_EXAMPLES="no"])
|
2013-03-13 23:25:34 +04:00
|
|
|
AS_IF([test "x$ENABLED_INLINE" = "xno"], [ENABLED_EXAMPLES="no"])
|
2013-03-12 04:53:38 +04:00
|
|
|
# certs still have sha signatures for now
|
|
|
|
AS_IF([test "x$ENABLED_SHA" = "xno"], [ENABLED_EXAMPLES="no"])
|
2012-11-29 23:31:57 +04:00
|
|
|
AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$ENABLED_EXAMPLES" = "xyes"])
|
|
|
|
|
2013-01-30 04:22:49 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# LIBZ
|
2013-03-21 01:37:05 +04:00
|
|
|
ENABLED_LIBZ="no"
|
2011-02-05 22:14:47 +03:00
|
|
|
trylibzdir=""
|
2012-12-13 02:33:21 +04:00
|
|
|
AC_ARG_WITH([libz],
|
2011-02-05 22:14:47 +03:00
|
|
|
[ --with-libz=PATH PATH to libz install (default /usr/) ],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for libz])
|
|
|
|
CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
|
|
|
|
LIBS="$LIBS -lz"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <zlib.h>]], [[ deflateInit(0, 8); ]])],[ libz_linked=yes ],[ libz_linked=no ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
if test "x$libz_linked" == "xno" ; then
|
|
|
|
if test "x$withval" != "xno" ; then
|
|
|
|
trylibzdir=$withval
|
|
|
|
fi
|
|
|
|
if test "x$withval" == "xyes" ; then
|
|
|
|
trylibzdir="/usr"
|
|
|
|
fi
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
|
2011-02-05 22:14:47 +03:00
|
|
|
CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
|
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <zlib.h>]], [[ deflateInit(0, 8); ]])],[ libz_linked=yes ],[ libz_linked=no ])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
if test "x$libz_linked" == "xno" ; then
|
|
|
|
AC_MSG_ERROR([libz isn't found.
|
|
|
|
If it's already installed, specify its path using --with-libz=/dir/])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
fi
|
2013-03-20 03:25:58 +04:00
|
|
|
ENABLED_LIBZ="yes"
|
2011-02-05 22:14:47 +03:00
|
|
|
]
|
|
|
|
)
|
2013-03-20 03:25:58 +04:00
|
|
|
AM_CONDITIONAL([BUILD_LIBZ], [test "x$ENABLED_LIBZ" = "xyes"])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
|
2013-01-30 04:22:49 +04:00
|
|
|
# cavium
|
|
|
|
trycaviumdir=""
|
|
|
|
AC_ARG_WITH([cavium],
|
|
|
|
[ --with-cavium=PATH PATH to cavium/software dir ],
|
|
|
|
[
|
|
|
|
AC_MSG_CHECKING([for cavium])
|
|
|
|
CPPFLAGS="$CPPFLAGS -DHAVE_CAVIUM"
|
|
|
|
|
|
|
|
if test "x$withval" == "xyes" ; then
|
|
|
|
AC_MSG_ERROR([need a PATH for --with-cavium])
|
|
|
|
fi
|
|
|
|
if test "x$withval" != "xno" ; then
|
|
|
|
trycaviumdir=$withval
|
|
|
|
fi
|
|
|
|
|
|
|
|
LDFLAGS="$AM_LDFLAGS $trycaviumdir/api/cavium_common.o"
|
|
|
|
CPPFLAGS="$CPPFLAGS -I$trycaviumdir/include"
|
|
|
|
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "cavium_common.h"]], [[ CspShutdown(CAVIUM_DEV_ID); ]])],[ cavium_linked=yes ],[ cavium_linked=no ])
|
|
|
|
|
|
|
|
if test "x$cavium_linked" == "xno" ; then
|
|
|
|
AC_MSG_ERROR([cavium isn't found.
|
|
|
|
If it's already installed, specify its path using --with-cavium=/dir/])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([yes])
|
|
|
|
enable_shared=no
|
2013-03-28 02:17:21 +04:00
|
|
|
enable_static=yes
|
2013-01-30 04:22:49 +04:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2013-03-21 01:37:05 +04:00
|
|
|
# microchip api
|
|
|
|
AC_ARG_ENABLE([mcapi],
|
|
|
|
[ --enable-mcapi Enable Microchip API (default: disabled)],
|
|
|
|
[ ENABLED_MCAPI=$enableval ],
|
|
|
|
[ ENABLED_MCAPI=no ]
|
|
|
|
)
|
|
|
|
|
|
|
|
if test "$ENABLED_MCAPI" = "yes"
|
|
|
|
then
|
2013-03-21 19:49:12 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -DHAVE_MCAPI -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT"
|
2013-03-21 01:37:05 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_SHA512" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please enable sha512 if enabling mcapi.])
|
|
|
|
fi
|
|
|
|
|
2013-03-22 00:20:23 +04:00
|
|
|
if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_ECC" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please enable ecc if enabling mcapi.])
|
|
|
|
fi
|
|
|
|
|
2013-03-21 01:37:05 +04:00
|
|
|
if test "$ENABLED_MCAPI" = "yes" && test "$ENABLED_LIBZ" = "no"
|
|
|
|
then
|
|
|
|
AC_MSG_ERROR([please use --with-libz if enabling mcapi.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AM_CONDITIONAL([BUILD_MCAPI], [test "x$ENABLED_MCAPI" = "xyes"])
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
# OPTIMIZE FLAGS
|
|
|
|
if test "$GCC" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
|
2012-10-22 22:37:46 +04:00
|
|
|
if test "$ax_enable_debug" = "no"
|
2011-02-05 22:14:47 +03:00
|
|
|
then
|
|
|
|
if test "$ENABLED_FASTMATH" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
if test "$ENABLED_FASTHUGEMATH" = "yes"
|
|
|
|
then
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
else
|
2011-08-25 02:54:58 +04:00
|
|
|
AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
|
2011-02-05 22:14:47 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2014-07-10 21:18:49 +04:00
|
|
|
# ICC command line warning for non supported warning flags
|
|
|
|
if test "$CC" = "icc"
|
|
|
|
then
|
|
|
|
AM_CFLAGS="$AM_CFLAGS -wd10006"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
LIB_SOCKET_NSL
|
2014-02-18 03:33:07 +04:00
|
|
|
AX_HARDEN_CC_COMPILER_FLAGS
|
2011-02-05 22:14:47 +03:00
|
|
|
|
2013-05-02 00:17:11 +04:00
|
|
|
# link to ws2_32 if on mingw
|
|
|
|
case $host_os in
|
|
|
|
*mingw32)
|
|
|
|
LDFLAGS="$LDFLAGS -lws2_32" ;;
|
|
|
|
esac
|
|
|
|
|
2012-10-24 23:01:11 +04:00
|
|
|
# add user C_EXTRA_FLAGS back
|
|
|
|
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
|
2013-04-12 22:21:38 +04:00
|
|
|
OPTION_FLAGS="$USER_C_EXTRA_FLAGS $AM_CFLAGS"
|
2012-10-24 23:01:11 +04:00
|
|
|
|
2011-08-25 02:54:58 +04:00
|
|
|
CREATE_HEX_VERSION
|
2012-10-24 22:53:33 +04:00
|
|
|
AC_SUBST([AM_CPPFLAGS])
|
|
|
|
AC_SUBST([AM_CFLAGS])
|
|
|
|
AC_SUBST([AM_LDFLAGS])
|
2011-02-05 22:14:47 +03:00
|
|
|
|
|
|
|
# FINAL
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
|
2011-04-27 23:36:39 +04:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2011-08-25 02:54:58 +04:00
|
|
|
AC_CONFIG_FILES([cyassl/version.h])
|
2013-04-12 22:21:38 +04:00
|
|
|
AC_CONFIG_FILES([cyassl/options.h])
|
2013-08-06 22:29:37 +04:00
|
|
|
AC_CONFIG_FILES([support/cyassl.pc])
|
2012-10-20 12:42:34 +04:00
|
|
|
AC_CONFIG_FILES([rpm/spec])
|
2011-08-25 02:54:58 +04:00
|
|
|
|
2012-10-26 10:06:06 +04:00
|
|
|
AX_CREATE_GENERIC_CONFIG
|
2012-10-27 02:38:37 +04:00
|
|
|
AX_AM_JOBSERVER([yes])
|
2012-10-26 08:35:52 +04:00
|
|
|
|
2011-02-05 22:14:47 +03:00
|
|
|
AC_OUTPUT
|
|
|
|
|
2013-04-12 22:21:38 +04:00
|
|
|
|
|
|
|
# force make clean
|
2012-11-29 23:31:57 +04:00
|
|
|
echo "---"
|
|
|
|
echo "Running make clean..."
|
2012-11-30 00:05:34 +04:00
|
|
|
make clean >/dev/null 2>&1
|
2014-05-08 21:26:31 +04:00
|
|
|
# Touch files that may not be in repository
|
|
|
|
echo "Touching File..."
|
|
|
|
touch ctaocrypt/src/fips.c
|
|
|
|
touch ctaocrypt/src/fips_test.c
|
2012-11-29 23:31:57 +04:00
|
|
|
echo
|
|
|
|
|
2013-04-12 22:21:38 +04:00
|
|
|
# generate user options header
|
|
|
|
echo "---"
|
|
|
|
echo "Generating user options header..."
|
|
|
|
OPTION_FILE="cyassl/options.h"
|
|
|
|
rm -f $OPTION_FILE
|
|
|
|
|
2014-07-17 00:55:38 +04:00
|
|
|
echo "/* cyassl options.h" > $OPTION_FILE
|
2013-04-13 03:50:16 +04:00
|
|
|
echo " * generated from configure options" >> $OPTION_FILE
|
2013-04-12 23:56:44 +04:00
|
|
|
echo " *" >> $OPTION_FILE
|
2014-04-12 01:58:58 +04:00
|
|
|
echo " * Copyright (C) 2006-2014 wolfSSL Inc." >> $OPTION_FILE
|
2013-04-12 23:56:44 +04:00
|
|
|
echo " *" >> $OPTION_FILE
|
|
|
|
echo " * This file is part of CyaSSL." >> $OPTION_FILE
|
|
|
|
echo " *" >> $OPTION_FILE
|
|
|
|
echo " */" >> $OPTION_FILE
|
|
|
|
|
2013-04-12 22:21:38 +04:00
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
echo "#pragma once" >> $OPTION_FILE
|
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
echo "#ifdef __cplusplus" >> $OPTION_FILE
|
|
|
|
echo "extern \"C\" {" >> $OPTION_FILE
|
|
|
|
echo "#endif" >> $OPTION_FILE
|
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
|
|
|
|
for option in $OPTION_FLAGS; do
|
|
|
|
defonly=`echo $option | sed 's/-D//'`
|
|
|
|
if test "$defonly" != "$option"
|
|
|
|
then
|
2013-05-30 02:03:27 +04:00
|
|
|
noequalsign=`echo $defonly | sed 's/=/ /'`
|
|
|
|
echo "#undef $noequalsign" >> $OPTION_FILE
|
|
|
|
echo "#define $noequalsign" >> $OPTION_FILE
|
2013-04-12 22:21:38 +04:00
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
else
|
|
|
|
echo "option w/o begin -D is $option, not saving to $OPTION_FILE"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
echo "#ifdef __cplusplus" >> $OPTION_FILE
|
|
|
|
echo "}" >> $OPTION_FILE
|
|
|
|
echo "#endif" >> $OPTION_FILE
|
|
|
|
echo "" >> $OPTION_FILE
|
|
|
|
echo
|
|
|
|
|
|
|
|
# output config summary
|
2012-09-20 10:38:41 +04:00
|
|
|
echo "---"
|
|
|
|
echo "Configuration summary for $PACKAGE_NAME version $VERSION"
|
|
|
|
echo ""
|
|
|
|
echo " * Installation prefix: $prefix"
|
|
|
|
echo " * System type: $host_vendor-$host_os"
|
|
|
|
echo " * Host CPU: $host_cpu"
|
2014-02-18 03:33:07 +04:00
|
|
|
echo " * C Compiler: $CC"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo " * C Flags: $CFLAGS"
|
2014-02-18 03:33:07 +04:00
|
|
|
echo " * C++ Compiler: $CXX"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo " * C++ Flags: $CXXFLAGS"
|
|
|
|
echo " * CPP Flags: $CPPFLAGS"
|
2012-10-21 04:07:30 +04:00
|
|
|
echo " * LIB Flags: $LIB"
|
2012-10-22 22:37:46 +04:00
|
|
|
echo " * Debug enabled: $ax_enable_debug"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo " * Warnings as failure: $ac_cv_warnings_as_errors"
|
2012-10-26 08:35:52 +04:00
|
|
|
echo " * make -j: $enable_jobserver"
|
|
|
|
echo " * VCS checkout: $ac_cv_vcs_checkout"
|
2012-10-20 06:00:17 +04:00
|
|
|
echo
|
|
|
|
echo " Features "
|
|
|
|
echo " * Single threaded: $ENABLED_SINGLETHREADED"
|
2013-03-13 23:14:05 +04:00
|
|
|
echo " * Filesystem: $ENABLED_FILESYSTEM"
|
|
|
|
echo " * OpenSSL Extra API: $ENABLED_OPENSSLEXTRA"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * fastmath: $ENABLED_FASTMATH"
|
|
|
|
echo " * sniffer: $ENABLED_SNIFFER"
|
2013-12-13 02:20:56 +04:00
|
|
|
echo " * snifftest: $ENABLED_SNIFFTEST"
|
2013-03-12 04:13:24 +04:00
|
|
|
echo " * ARC4: $ENABLED_ARC4"
|
2013-03-12 04:07:37 +04:00
|
|
|
echo " * AES: $ENABLED_AES"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * AES-NI: $ENABLED_AESNI"
|
|
|
|
echo " * AES-GCM: $ENABLED_AESGCM"
|
2013-01-11 04:46:47 +04:00
|
|
|
echo " * AES-CCM: $ENABLED_AESCCM"
|
2013-03-12 20:46:15 +04:00
|
|
|
echo " * DES3: $ENABLED_DES3"
|
2013-01-18 09:52:31 +04:00
|
|
|
echo " * Camellia: $ENABLED_CAMELLIA"
|
2013-03-13 05:49:59 +04:00
|
|
|
echo " * NULL Cipher: $ENABLED_NULL_CIPHER"
|
2013-03-12 04:37:08 +04:00
|
|
|
echo " * MD5: $ENABLED_MD5"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * RIPEMD: $ENABLED_RIPEMD"
|
2013-03-12 04:53:38 +04:00
|
|
|
echo " * SHA: $ENABLED_SHA"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * SHA-512: $ENABLED_SHA512"
|
2013-02-23 03:52:20 +04:00
|
|
|
echo " * BLAKE2: $ENABLED_BLAKE2"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * keygen: $ENABLED_KEYGEN"
|
|
|
|
echo " * certgen: $ENABLED_CERTGEN"
|
2014-01-10 23:50:55 +04:00
|
|
|
echo " * certreq: $ENABLED_CERTREQ"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * HC-128: $ENABLED_HC128"
|
|
|
|
echo " * RABBIT: $ENABLED_RABBIT"
|
2014-07-02 00:16:44 +04:00
|
|
|
echo " * CHACHA: $ENABLED_CHACHA"
|
2014-05-07 22:54:12 +04:00
|
|
|
echo " * Hash DRBG: $ENABLED_HASHDRBG"
|
2013-03-12 04:01:05 +04:00
|
|
|
echo " * PWDBASED: $ENABLED_PWDBASED"
|
2013-11-08 03:59:31 +04:00
|
|
|
echo " * HKDF: $ENABLED_HKDF"
|
2013-03-12 03:26:08 +04:00
|
|
|
echo " * MD4: $ENABLED_MD4"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * PSK: $ENABLED_PSK"
|
2014-07-02 00:16:44 +04:00
|
|
|
echo " * Poly1305: $ENABLED_POLY1305"
|
2012-10-30 02:39:42 +04:00
|
|
|
echo " * LEANPSK: $ENABLED_LEANPSK"
|
2013-03-11 23:49:59 +04:00
|
|
|
echo " * RSA: $ENABLED_RSA"
|
2013-03-13 00:03:42 +04:00
|
|
|
echo " * DSA: $ENABLED_DSA"
|
|
|
|
echo " * DH: $ENABLED_DH"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * ECC: $ENABLED_ECC"
|
2013-09-07 04:08:57 +04:00
|
|
|
echo " * FPECC: $ENABLED_FPECC"
|
2013-11-08 03:59:31 +04:00
|
|
|
echo " * ECC_ENCRYPT: $ENABLED_ECC_ENCRYPT"
|
2013-03-12 23:48:41 +04:00
|
|
|
echo " * ASN: $ENABLED_ASN"
|
2014-12-01 22:44:32 +03:00
|
|
|
echo " * Anonymous cipher: $ENABLED_ANON"
|
2013-03-13 00:12:10 +04:00
|
|
|
echo " * CODING: $ENABLED_CODING"
|
2013-03-13 00:31:14 +04:00
|
|
|
echo " * MEMORY: $ENABLED_MEMORY"
|
2014-03-14 05:54:51 +04:00
|
|
|
echo " * I/O POOL: $ENABLED_IOPOOL"
|
2013-03-13 22:27:14 +04:00
|
|
|
echo " * ERROR_STRINGS: $ENABLED_ERROR_STRINGS"
|
2013-03-13 22:49:11 +04:00
|
|
|
echo " * DTLS: $ENABLED_DTLS"
|
|
|
|
echo " * Old TLS Versions: $ENABLED_OLD_TLS"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * OCSP: $ENABLED_OCSP"
|
|
|
|
echo " * CRL: $ENABLED_CRL"
|
2012-11-17 01:25:45 +04:00
|
|
|
echo " * CRL-MONITOR: $ENABLED_CRL_MONITOR"
|
2013-04-24 22:10:23 +04:00
|
|
|
echo " * Persistent session cache: $ENABLED_SAVESESSION"
|
2013-05-02 22:34:26 +04:00
|
|
|
echo " * Persistent cert cache: $ENABLED_SAVECERT"
|
2013-08-10 04:27:15 +04:00
|
|
|
echo " * Atomic User Record Layer: $ENABLED_ATOMICUSER"
|
2013-08-23 05:19:39 +04:00
|
|
|
echo " * Public Key Callbacks: $ENABLED_PKCALLBACKS"
|
2012-10-23 04:39:50 +04:00
|
|
|
echo " * NTRU: $ENABLED_NTRU"
|
2013-05-22 01:37:50 +04:00
|
|
|
echo " * SNI: $ENABLED_SNI"
|
2013-06-19 22:45:06 +04:00
|
|
|
echo " * Maximum Fragment Length: $ENABLED_MAX_FRAGMENT"
|
2013-07-23 22:42:43 +04:00
|
|
|
echo " * Truncated HMAC: $ENABLED_TRUNCATED_HMAC"
|
2014-01-21 18:36:06 +04:00
|
|
|
echo " * Renegotiation Indication: $ENABLED_RENEGOTIATION_INDICATION"
|
2014-09-17 03:33:17 +04:00
|
|
|
echo " * Secure Renegotiation: $ENABLED_SECURE_RENEGOTIATION"
|
2014-02-03 23:11:57 +04:00
|
|
|
echo " * Supported Elliptic Curves: $ENABLED_SUPPORTED_CURVES"
|
2014-09-29 23:43:28 +04:00
|
|
|
echo " * Session Ticket: $ENABLED_SESSION_TICKET"
|
2013-06-19 22:45:06 +04:00
|
|
|
echo " * All TLS Extensions: $ENABLED_TLSX"
|
2014-01-11 02:17:03 +04:00
|
|
|
echo " * PKCS#7 $ENABLED_PKCS7"
|
2014-01-27 23:35:43 +04:00
|
|
|
echo " * wolfSCEP $ENABLED_WOLFSCEP"
|
2014-04-15 19:46:43 +04:00
|
|
|
echo " * Small Stack: $ENABLED_SMALL_STACK"
|
2012-12-05 22:50:04 +04:00
|
|
|
echo " * valgrind unit tests: $ENABLED_VALGRIND"
|
2013-03-20 03:25:58 +04:00
|
|
|
echo " * LIBZ: $ENABLED_LIBZ"
|
2012-11-29 23:31:57 +04:00
|
|
|
echo " * Examples: $ENABLED_EXAMPLES"
|
2012-09-20 10:38:41 +04:00
|
|
|
echo ""
|
|
|
|
echo "---"
|
2012-11-29 23:31:57 +04:00
|
|
|
|