mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 05:27:55 +00:00
[3908] Added old HMAC API detection
This commit is contained in:
parent
676d1e6a33
commit
bc1fc8004b
12
configure.ac
12
configure.ac
@ -878,6 +878,18 @@ EOF
|
||||
])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_ERROR([missing EVP entry for SHA-2])])
|
||||
dnl Check HMAC API
|
||||
AC_MSG_CHECKING([HMAC functions returning ints])
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <openssl/hmac.h>],
|
||||
[HMAC_CTX ctx, tmp;
|
||||
int n = HMAC_Init(&ctx, NULL, 0, NULL);
|
||||
n += HMAC_Update(&ctx, NULL, 0);
|
||||
n += HMAC_CTX_copy(&tmp, &ctx);
|
||||
n += HMAC_Final(&tmp, NULL, NULL);
|
||||
])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_ERROR([HMAC functions return void: the OpenSSL version should be too old, please change for >= 1.0.0])])
|
||||
LIBS=${LIBS_SAVED}
|
||||
CPPFLAGS=${CPPFLAGS_SAVED}
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user