mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Configure ssl utility library
This commit is contained in:
parent
445d265055
commit
73a765a38b
3 changed files with 21 additions and 5 deletions
19
configure.ac
19
configure.ac
|
|
@ -19,6 +19,11 @@ AS_IF([test "x$enable_acs" = "xno"], [AC_DEFINE(ACS_MULTI)])
|
|||
AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [enable debugging messages])], AC_DEFINE(WITH_CWMP_DEBUG),)
|
||||
AC_ARG_ENABLE(devel, [AS_HELP_STRING([--enable-devel], [enable development messages])], AC_DEFINE(WITH_DEV_DEBUG),)
|
||||
|
||||
AC_ARG_ENABLE(libopenssl, [AS_HELP_STRING([--enable-libopenssl], [enable libopenssl feature])], AC_DEFINE(LOPENSSL),)
|
||||
AM_CONDITIONAL([LOPENSSL],[test "x$enable_libopenssl" = "xyes"])
|
||||
|
||||
AC_ARG_ENABLE(libwolfssl, [AS_HELP_STRING([--enable-libwolfssl], [enable libwolfssl feature])], AC_DEFINE(LWOLFSSL))
|
||||
AM_CONDITIONAL([LWOLFSSL],[test "x$enable_libwolfssl" = "xyes"])
|
||||
# checks for programs
|
||||
AC_PROG_CC
|
||||
AM_PROG_CC_C_O
|
||||
|
|
@ -83,8 +88,18 @@ AC_SUBST([LBLOBMSG_LIBS])
|
|||
LCRYPTO_LIBS='-lcrypto'
|
||||
AC_SUBST([LCRYPTO_LIBS])
|
||||
|
||||
LSSL_LIBS='-lwolfssl'
|
||||
AC_SUBST([LSSL_LIBS])
|
||||
AM_COND_IF([LWOLFSSL], [
|
||||
LSSL_LIBS='-lwolfssl'
|
||||
AC_SUBST([LSSL_LIBS])
|
||||
])
|
||||
|
||||
AM_COND_IF([LOPENSSL], [
|
||||
LSSL_LIBS='-lssl'
|
||||
AC_SUBST([LSSL_LIBS])
|
||||
], [
|
||||
LSSL_LIBS='-lwolfssl'
|
||||
AC_SUBST([LSSL_LIBS])
|
||||
])
|
||||
|
||||
PKG_CHECK_MODULES(LIBCURL, [libcurl])
|
||||
AC_SUBST(LIBCURL_CFLAGS)
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ function build_icwmp()
|
|||
|
||||
# compile icwmp
|
||||
autoreconf -i >/dev/null 2>&1
|
||||
./configure CFLAGS="$COV_CFLAGS -DWC_NO_HARDEN" LDFLAGS="$COV_LDFLAGS" --enable-acs=multi --enable-debug >/dev/null 2>&1
|
||||
./configure CFLAGS="$COV_CFLAGS -DWC_NO_HARDEN" LDFLAGS="$COV_LDFLAGS" --enable-acs=multi --enable-debug --enable-libopenssl >/dev/null 2>&1
|
||||
make CFLAGS="$COV_CFLAGS -DWC_NO_HARDEN" LDFLAGS="$COV_LDFLAGS"
|
||||
check_ret $?
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,9 @@
|
|||
* 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <wolfssl/openssl/ssl.h>
|
||||
#include <wolfssl/openssl/hmac.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/hmac.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#include "common.h"
|
||||
#include "log.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue