]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
GOST code enabled by default (RFC 5933)
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Nov 2010 11:24:07 +0000 (11:24 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Nov 2010 11:24:07 +0000 (11:24 +0000)
git-svn-id: file:///svn/unbound/trunk@2323 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac
doc/Changelog

index 4929af35891f58ee0add1870d9bf502a614dd735..ebad525bea802d813ec42f14cafde129ff08742b 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
 
-       use_gost="yes"
-
-$as_echo "#define USE_GOST 1" >>confdefs.h
+        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 :
 
-       ;;
-       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 :
+else
+  as_fn_error "OpenSSL does not support ECC, needed for GOST support" "$LINENO" 5
+fi
 
-         use_gost="yes"
+       use_gost="yes"
 
 $as_echo "#define USE_GOST 1" >>confdefs.h
 
-fi
-
        ;;
 esac
 
index d3e5d17df95fa5d3af49334d5870afcc048c7839..ca74669c5b95f582d40bca0fba75390d128f070e 100644 (file)
@@ -462,21 +462,17 @@ 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)
+       no)
+       ;;
+       *)
        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.])
        ;;
-       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.])])
-       ;;
 esac
 
 # check for libevent
index 17901e0b63b74eac274ed9195b3df26030992997..199d7a4ee181b56ff76dae4d7dafed3f3f8fc878 100644 (file)
@@ -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