PKCS7 and SCEP need either AES or 3DES enabled, error out if not
This commit is contained in:
parent
baf655df23
commit
e3a4f468c1
10
configure.ac
10
configure.ac
@ -3721,6 +3721,16 @@ AS_IF([test "x$ENABLED_PKCS7" = "xyes" && \
|
||||
test "x$ENABLED_SHA" = "xno"],
|
||||
[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" && \
|
||||
test "x$ENABLED_ECC" = "xno"],
|
||||
[AC_MSG_ERROR([please enable ecc if enabling leantls.])])
|
||||
|
@ -1493,6 +1493,9 @@ extern void uITRON4_free(void *p) ;
|
||||
#endif
|
||||
|
||||
#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
|
||||
#error PKCS7 requires AES key wrap please define HAVE_AES_KEYWRAP
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user