Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
c779a0ef
Commit
c779a0ef
authored
Sep 17, 2014
by
Francis Dupont
Browse files
[trac3482] Check OpenSSL SHA-2 support in configure
parent
c73ef083
Changes
2
Show whitespace changes
Inline
Side-by-side
ChangeLog
View file @
c779a0ef
835. [build] fdupont
The configure script checks if OpenSSL supports SHA-2, in order
to avoid very old (and likely subject to unfixed security bugs)
OpenSSL versions.
(Trac #3482, git xxx)
834. [bug] marcin
834. [bug] marcin
Corrected the definition of the example DHCPv4 and DHCPv6 address
Corrected the definition of the example DHCPv4 and DHCPv6 address
pools in the default kea.conf file.
pools in the default kea.conf file.
...
...
configure.ac
View file @
c779a0ef
...
@@ -817,6 +817,23 @@ EOF
...
@@ -817,6 +817,23 @@ EOF
#CRYPTO_LDFLAGS="-ldl"
#CRYPTO_LDFLAGS="-ldl"
CRYPTO_LDFLAGS=""
CRYPTO_LDFLAGS=""
CRYPTO_RPATH=""
CRYPTO_RPATH=""
dnl Check avaibility of SHA-2
AC_MSG_CHECKING([support of SHA-2])
LIBS_SAVED=${LIBS}
LIBS="$LIBS $CRYPTO_LIBS"
CPPFLAGS_SAVED=${CPPFLAGS}
CPPFLAGS="$CRYPTO_INCLUDES $CPPFLAGS"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([#include <openssl/evp.h>],
[const EVP_MD* h224 = EVP_sha224();
const EVP_MD* h256 = EVP_sha256();
const EVP_MD* h384 = EVP_sha384();
const EVP_MD* h512 = EVP_sha512();
])],
[AC_MSG_RESULT([yes])],
[AC_MSG_ERROR([missing EVP entry for SHA-2])])
LIBS=${LIBS_SAVED}
CPPFLAGS=${CPPFLAGS_SAVED}
fi
fi
AM_CONDITIONAL(HAVE_BOTAN, test "$CRYPTO_NAME" = "Botan")
AM_CONDITIONAL(HAVE_BOTAN, test "$CRYPTO_NAME" = "Botan")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment