mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to check openssl version number only for OpenSSL.
git-svn-id: file:///svn/unbound/trunk@3179 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6712f6c511
commit
5b1b660e94
3 changed files with 17 additions and 5 deletions
6
configure
vendored
6
configure
vendored
|
|
@ -17065,6 +17065,7 @@ fi
|
||||||
# see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
|
# see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if openssl supports SHA2 and ECDSA with EVP" >&5
|
||||||
$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
|
$as_echo_n "checking if openssl supports SHA2 and ECDSA with EVP... " >&6; }
|
||||||
|
if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
|
||||||
if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
|
if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
$as_echo "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
|
|
@ -17075,6 +17076,11 @@ _ACEOF
|
||||||
|
|
||||||
else
|
else
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
|
$as_echo "yes" >&6; }
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
# not OpenSSL, thus likely LibreSSL, which supports it
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
$as_echo "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -721,12 +721,17 @@ case "$enable_ecdsa" in
|
||||||
])
|
])
|
||||||
# see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
|
# see if OPENSSL 1.0.0 or later (has EVP MD and Verify independency)
|
||||||
AC_MSG_CHECKING([if openssl supports SHA2 and ECDSA with EVP])
|
AC_MSG_CHECKING([if openssl supports SHA2 and ECDSA with EVP])
|
||||||
|
if grep OPENSSL_VERSION_TEXT $ssldir/include/openssl/opensslv.h | grep "OpenSSL" >/dev/null; then
|
||||||
if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
|
if grep OPENSSL_VERSION_NUMBER $ssldir/include/openssl/opensslv.h | grep 0x0 >/dev/null; then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
AC_DEFINE_UNQUOTED([USE_ECDSA_EVP_WORKAROUND], [1], [Define this to enable an EVP workaround for older openssl])
|
AC_DEFINE_UNQUOTED([USE_ECDSA_EVP_WORKAROUND], [1], [Define this to enable an EVP workaround for older openssl])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
# not OpenSSL, thus likely LibreSSL, which supports it
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# we now know we have ECDSA and the required curves.
|
# we now know we have ECDSA and the required curves.
|
||||||
AC_DEFINE_UNQUOTED([USE_ECDSA], [1], [Define this to enable ECDSA support.])
|
AC_DEFINE_UNQUOTED([USE_ECDSA], [1], [Define this to enable ECDSA support.])
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
12 July 2014: Wouter
|
12 July 2014: Wouter
|
||||||
- Fix getentropy compat code, function refs were not portable.
|
- Fix getentropy compat code, function refs were not portable.
|
||||||
|
- Fix to check openssl version number only for OpenSSL.
|
||||||
|
|
||||||
11 July 2014: Matthijs
|
11 July 2014: Matthijs
|
||||||
- fake-rfc2553 patch (thanks Benjamin Baier).
|
- fake-rfc2553 patch (thanks Benjamin Baier).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue