Merge pull request #2525 from tmael/open_coexist

Raise an error when opensslcoexist option is used with openssl[all][extra]
This commit is contained in:
Chris Conlon 2019-11-01 11:32:46 -06:00 committed by GitHub
commit 98a2322dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -512,7 +512,7 @@ AC_ARG_ENABLE([signal],
[ ENABLED_SIGNAL=no ]
)
# OpenSSL Coexist
# OpenSSL Coexist
AC_ARG_ENABLE([opensslcoexist],
[AS_HELP_STRING([--enable-opensslcoexist],[Enable coexistence of wolfssl/openssl (default: disabled)])],
[ ENABLED_OPENSSLCOEXIST=$enableval ],
@ -1068,7 +1068,7 @@ then
fi
# Linux af_alg
# Linux af_alg
AC_ARG_ENABLE([afalg],
[AS_HELP_STRING([--enable-afalg],[Enable Linux af_alg use for crypto (default: disabled)])],
[ ENABLED_AFALG=$enableval ],
@ -3535,14 +3535,14 @@ then
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
fi
fi
# Requires wolfSSL_OBJ_txt2nid
if test "x$ENABLED_CERTEXT" = "xno"
then
ENABLED_CERTEXT="yes"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_CERT_EXT"
fi
# Requires certgen
if test "x$ENABLED_CERTGEN" = "xno"
then
@ -4794,6 +4794,14 @@ AS_IF([test "x$ENABLED_WOLFSSH" = "xyes"],
AS_IF([test "x$ENABLED_SHA512" = "xno"],[AC_MSG_ERROR([cannot enable wolfSSH with SHA-512/384 disabled])])
])
if test "x$ENABLED_OPENSSLCOEXIST" = "xyes"; then
if test "x$ENABLED_OPENSSLALL" = "xyes"; then
AC_MSG_ERROR([Cannot use --enable-opensslcoexist with --enable-opensslall])
fi
if test "x$ENABLED_OPENSSLEXTRA" = "xyes"; then
AC_MSG_ERROR([Cannot use --enable-opensslcoexist with --enable-opensslextra])
fi
fi
################################################################################
# USER SETTINGS