mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
PKCS7 and SCEP need either AES or 3DES enabled, error out if not
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -3721,6 +3721,16 @@ AS_IF([test "x$ENABLED_PKCS7" = "xyes" && \
|
|||||||
test "x$ENABLED_SHA" = "xno"],
|
test "x$ENABLED_SHA" = "xno"],
|
||||||
[AC_MSG_ERROR([please enable sha if enabling pkcs7.])])
|
[AC_MSG_ERROR([please enable sha if enabling pkcs7.])])
|
||||||
|
|
||||||
|
AS_IF([test "x$ENABLED_PKCS7" = "xyes" && \
|
||||||
|
test "x$ENABLED_AES" = "xno" && \
|
||||||
|
test "x$ENABLED_DES3" = "xno"],
|
||||||
|
[AC_MSG_ERROR([please enable either AES or 3DES if enabling pkcs7.])])
|
||||||
|
|
||||||
|
AS_IF([test "x$ENABLED_WOLFSCEP" = "xyes" && \
|
||||||
|
test "x$ENABLED_AES" = "xno" && \
|
||||||
|
test "x$ENABLED_DES3" = "xno"],
|
||||||
|
[AC_MSG_ERROR([please enable either AES or 3DES if enabling scep.])])
|
||||||
|
|
||||||
AS_IF([test "x$ENABLED_LEANTLS" = "xyes" && \
|
AS_IF([test "x$ENABLED_LEANTLS" = "xyes" && \
|
||||||
test "x$ENABLED_ECC" = "xno"],
|
test "x$ENABLED_ECC" = "xno"],
|
||||||
[AC_MSG_ERROR([please enable ecc if enabling leantls.])])
|
[AC_MSG_ERROR([please enable ecc if enabling leantls.])])
|
||||||
|
@@ -1493,6 +1493,9 @@ extern void uITRON4_free(void *p) ;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_PKCS7
|
#ifdef HAVE_PKCS7
|
||||||
|
#if defined(NO_AES) && defined(NO_DES3)
|
||||||
|
#error PKCS7 needs either AES or 3DES enabled, please enable one
|
||||||
|
#endif
|
||||||
#ifndef HAVE_AES_KEYWRAP
|
#ifndef HAVE_AES_KEYWRAP
|
||||||
#error PKCS7 requires AES key wrap please define HAVE_AES_KEYWRAP
|
#error PKCS7 requires AES key wrap please define HAVE_AES_KEYWRAP
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user