Skip to content

Commit 123384f

Browse files
committed
Add configure check for kdf.h, and include if available.
1 parent 5139d29 commit 123384f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if test "x$have_wolfssl" = "xyes"; then
6868
LDFLAGS="$LDFLAGS $WOLFSSL_LDFLAGS"
6969
fi
7070

71+
AC_CHECK_HEADERS([wolfssl/wolfcrypt/kdf.h])
7172
AC_CHECK_FUNCS([wc_DhSetNamedKey])
7273

7374
# DEBUG

include/wolfengine/we_internal.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979
#include <wolfssl/wolfcrypt/ecc.h>
8080
#include <wolfssl/wolfcrypt/random.h>
8181
#include <wolfssl/wolfcrypt/pwdbased.h>
82-
#include <wolfssl/wolfcrypt/kdf.h>
82+
#ifdef HAVE_WOLFSSL_WOLFCRYPT_KDF_H
83+
#include <wolfssl/wolfcrypt/kdf.h>
84+
#endif
8385

8486
#include <wolfengine/we_openssl_bc.h>
8587
#include <wolfengine/we_logging.h>

0 commit comments

Comments
 (0)