mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-07 07:19:35 -05:00
GOST code enabled by default (RFC 5933)
git-svn-id: file:///svn/unbound/trunk@2323 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
fcf1157fa4
commit
93ffd44608
3 changed files with 20 additions and 24 deletions
25
configure
vendored
25
configure
vendored
|
|
@ -1542,7 +1542,7 @@ Optional Features:
|
|||
--disable-rpath disable hardcoded rpath (default=enabled)
|
||||
--disable-largefile omit support for large files
|
||||
--disable-sha2 Disable SHA256 and SHA512 RRSIG support
|
||||
--enable-gost Enable GOST support, experimental
|
||||
--disable-gost Disable GOST support
|
||||
--enable-static-exe enable to compile executables statically against
|
||||
event, ldns libs, for debug purposes
|
||||
--enable-lock-checks enable to check lock and unlock calls, for debug
|
||||
|
|
@ -15306,7 +15306,9 @@ fi
|
|||
|
||||
use_gost="no"
|
||||
case "$enable_gost" in
|
||||
yes)
|
||||
no)
|
||||
;;
|
||||
*)
|
||||
ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
|
||||
if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then :
|
||||
:
|
||||
|
|
@ -15314,22 +15316,17 @@ else
|
|||
as_fn_error "OpenSSL 1.0.0 is needed for GOST support" "$LINENO" 5
|
||||
fi
|
||||
|
||||
ac_fn_c_check_func "$LINENO" "EC_KEY_new" "ac_cv_func_EC_KEY_new"
|
||||
if test "x$ac_cv_func_EC_KEY_new" = x""yes; then :
|
||||
|
||||
else
|
||||
as_fn_error "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
|
||||
fi
|
||||
|
||||
use_gost="yes"
|
||||
|
||||
$as_echo "#define USE_GOST 1" >>confdefs.h
|
||||
|
||||
;;
|
||||
no)
|
||||
;;
|
||||
*) ac_fn_c_check_func "$LINENO" "EVP_PKEY_set_type_str" "ac_cv_func_EVP_PKEY_set_type_str"
|
||||
if test "x$ac_cv_func_EVP_PKEY_set_type_str" = x""yes; then :
|
||||
|
||||
use_gost="yes"
|
||||
|
||||
$as_echo "#define USE_GOST 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
16
configure.ac
16
configure.ac
|
|
@ -462,20 +462,16 @@ case "$enable_sha2" in
|
|||
;;
|
||||
esac
|
||||
|
||||
AC_ARG_ENABLE(gost, AC_HELP_STRING([--enable-gost], [Enable GOST support, experimental]))
|
||||
AC_ARG_ENABLE(gost, AC_HELP_STRING([--disable-gost], [Disable GOST support]))
|
||||
use_gost="no"
|
||||
case "$enable_gost" in
|
||||
yes)
|
||||
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [:],[AC_MSG_ERROR([OpenSSL 1.0.0 is needed for GOST support])])
|
||||
use_gost="yes"
|
||||
AC_DEFINE([USE_GOST], [1], [Define this to enable GOST support.])
|
||||
;;
|
||||
no)
|
||||
;;
|
||||
*) dnl default
|
||||
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [
|
||||
use_gost="yes"
|
||||
AC_DEFINE([USE_GOST], [1], [Define this to enable GOST support.])])
|
||||
*)
|
||||
AC_CHECK_FUNC(EVP_PKEY_set_type_str, [:],[AC_MSG_ERROR([OpenSSL 1.0.0 is needed for GOST support])])
|
||||
AC_CHECK_FUNC(EC_KEY_new, [], [AC_MSG_ERROR([OpenSSL does not support ECC, needed for GOST support])])
|
||||
use_gost="yes"
|
||||
AC_DEFINE([USE_GOST], [1], [Define this to enable GOST support.])
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
1 November 2010: Wouter
|
||||
- GOST code enabled by default (RFC 5933).
|
||||
|
||||
27 October 2010: Wouter
|
||||
- Fix uninit value in dump_infra print.
|
||||
- Fix validation failure for parent and child on same server with an
|
||||
|
|
|
|||
Loading…
Reference in a new issue