]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2127. [port] Improved OpenSSL 0.9.8 support. [RT #16563]
authorMark Andrews <marka@isc.org>
Mon, 8 Jan 2007 02:03:17 +0000 (02:03 +0000)
committerMark Andrews <marka@isc.org>
Mon, 8 Jan 2007 02:03:17 +0000 (02:03 +0000)
CHANGES
config.h.in
configure
configure.in
lib/dns/openssldh_link.c
lib/dns/openssldsa_link.c

diff --git a/CHANGES b/CHANGES
index 58db759693efe8ba3c9bb56c1a5d82eaac436d33..e43d148191ca72698b3258879896cf46960b1aae 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2127.  [port]          Improved OpenSSL 0.9.8 support. [RT #16563]
+
 2126.  [bug]           Serialise validation of type ANY responses. [RT #16555]
 
 2120.  [doc]           Fix markup on nsupdate man page. [RT #16556]
index 01accfc1cc405632a64559c5ac29cafd65506afd..1185487f53626e460ffdf35abc0227a29181e85c 100644 (file)
@@ -16,7 +16,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.h.in,v 1.47.2.22 2006/07/20 06:06:38 marka Exp $ */
+/* $Id: config.h.in,v 1.47.2.25 2007/01/08 02:03:17 marka Exp $ */
 
 /***
  *** This file is not to be included by any public header files, because
@@ -144,15 +144,9 @@ int sigwait(const unsigned int *set, int *sig);
 /* Define if you cannot bind() before connect() for TCP sockets. */
 #undef BROKEN_TCP_BIND_BEFORE_CONNECT
 
-/* Define if libcrypto has DH_generate_parameters */
-#undef HAVE_DH_GENERATE_PARAMETERS
-
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #undef HAVE_DLFCN_H
 
-/* Define if libcrypto has DSA_generate_parameters */
-#undef HAVE_DSA_GENERATE_PARAMETERS
-
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
@@ -186,9 +180,6 @@ int sigwait(const unsigned int *set, int *sig);
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
-/* Define if libcrypto has RSA_generate_key */
-#undef HAVE_RSA_GENERATE_KEY
-
 /* Define to 1 if you have the <stdint.h> header file. */
 #undef HAVE_STDINT_H
 
index 024ad0f6f2cfed11e11a189160c8d38c17fafe9b..bcede7b5aa50943c47f8a4227fe4ef42a3a191b9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.294.2.73 .
+# From configure.in Revision: 1.294.2.74 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59.
 #
@@ -4925,301 +4925,6 @@ fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 
-               echo "$as_me:$LINENO: checking for DH_generate_parameters" >&5
-echo $ECHO_N "checking for DH_generate_parameters... $ECHO_C" >&6
-if test "${ac_cv_func_DH_generate_parameters+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define DH_generate_parameters to an innocuous variant, in case <limits.h> declares DH_generate_parameters.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define DH_generate_parameters innocuous_DH_generate_parameters
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char DH_generate_parameters (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef DH_generate_parameters
-
-/* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char DH_generate_parameters ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined (__stub_DH_generate_parameters) || defined (__stub___DH_generate_parameters)
-choke me
-#else
-char (*f) () = DH_generate_parameters;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != DH_generate_parameters;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"
-                        || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_DH_generate_parameters=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_func_DH_generate_parameters=no
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_func_DH_generate_parameters" >&5
-echo "${ECHO_T}$ac_cv_func_DH_generate_parameters" >&6
-if test $ac_cv_func_DH_generate_parameters = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_DH_GENERATE_PARAMETERS 1
-_ACEOF
-
-fi
-
-               echo "$as_me:$LINENO: checking for RSA_generate_key" >&5
-echo $ECHO_N "checking for RSA_generate_key... $ECHO_C" >&6
-if test "${ac_cv_func_RSA_generate_key+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define RSA_generate_key to an innocuous variant, in case <limits.h> declares RSA_generate_key.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define RSA_generate_key innocuous_RSA_generate_key
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char RSA_generate_key (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef RSA_generate_key
-
-/* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char RSA_generate_key ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined (__stub_RSA_generate_key) || defined (__stub___RSA_generate_key)
-choke me
-#else
-char (*f) () = RSA_generate_key;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != RSA_generate_key;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"
-                        || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_RSA_generate_key=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_func_RSA_generate_key=no
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_func_RSA_generate_key" >&5
-echo "${ECHO_T}$ac_cv_func_RSA_generate_key" >&6
-if test $ac_cv_func_RSA_generate_key = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_RSA_GENERATE_KEY 1
-_ACEOF
-
-fi
-
-               echo "$as_me:$LINENO: checking for DSA_generate_parameters" >&5
-echo $ECHO_N "checking for DSA_generate_parameters... $ECHO_C" >&6
-if test "${ac_cv_func_DSA_generate_parameters+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define DSA_generate_parameters to an innocuous variant, in case <limits.h> declares DSA_generate_parameters.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define DSA_generate_parameters innocuous_DSA_generate_parameters
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char DSA_generate_parameters (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef DSA_generate_parameters
-
-/* Override any gcc2 internal prototype to avoid an error.  */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
-   builtin and then its argument prototype would still apply.  */
-char DSA_generate_parameters ();
-/* The GNU C library defines this for functions which it implements
-    to always fail with ENOSYS.  Some functions are actually named
-    something starting with __ and the normal name is an alias.  */
-#if defined (__stub_DSA_generate_parameters) || defined (__stub___DSA_generate_parameters)
-choke me
-#else
-char (*f) () = DSA_generate_parameters;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != DSA_generate_parameters;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } &&
-        { ac_try='test -z "$ac_c_werror_flag"
-                        || test ! -s conftest.err'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; } &&
-        { ac_try='test -s conftest$ac_exeext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_DSA_generate_parameters=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_func_DSA_generate_parameters=no
-fi
-rm -f conftest.err conftest.$ac_objext \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_func_DSA_generate_parameters" >&5
-echo "${ECHO_T}$ac_cv_func_DSA_generate_parameters" >&6
-if test $ac_cv_func_DSA_generate_parameters = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_DSA_GENERATE_PARAMETERS 1
-_ACEOF
-
-fi
-
-
 # Check whether --enable-openssl-version-check or --disable-openssl-version-check was given.
 if test "${enable_openssl_version_check+set}" = set; then
   enableval="$enable_openssl_version_check"
@@ -8653,7 +8358,7 @@ ia64-*-hpux*)
   ;;
 *-*-irix6*)
   # Find out which ABI we are using.
-  echo '#line 8656 "configure"' > conftest.$ac_ext
+  echo '#line 8361 "configure"' > conftest.$ac_ext
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
@@ -9650,7 +9355,7 @@ fi
 
 
 # Provide some information about the compiler.
-echo "$as_me:9653:" \
+echo "$as_me:9358:" \
      "checking for Fortran 77 compiler version" >&5
 ac_compiler=`set X $ac_compile; echo $2`
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -10711,11 +10416,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10419: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:10718: \$? = $ac_status" >&5
+   echo "$as_me:10423: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -10954,11 +10659,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:10957: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10662: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:10961: \$? = $ac_status" >&5
+   echo "$as_me:10666: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -11014,11 +10719,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:11017: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:10722: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:11021: \$? = $ac_status" >&5
+   echo "$as_me:10726: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -13199,7 +12904,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 13202 "configure"
+#line 12907 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -13297,7 +13002,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 13300 "configure"
+#line 13005 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -15494,11 +15199,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15497: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15202: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:15501: \$? = $ac_status" >&5
+   echo "$as_me:15206: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -15554,11 +15259,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:15557: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:15262: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:15561: \$? = $ac_status" >&5
+   echo "$as_me:15266: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -16915,7 +16620,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 16918 "configure"
+#line 16623 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -17013,7 +16718,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 17016 "configure"
+#line 16721 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -17850,11 +17555,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17853: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17558: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:17857: \$? = $ac_status" >&5
+   echo "$as_me:17562: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -17910,11 +17615,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:17913: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:17618: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:17917: \$? = $ac_status" >&5
+   echo "$as_me:17622: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -19949,11 +19654,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:19952: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19657: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:19956: \$? = $ac_status" >&5
+   echo "$as_me:19661: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -20192,11 +19897,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:20195: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19900: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>conftest.err)
    ac_status=$?
    cat conftest.err >&5
-   echo "$as_me:20199: \$? = $ac_status" >&5
+   echo "$as_me:19904: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s "$ac_outfile"; then
      # The compiler can only warn and ignore the option if not recognized
      # So say no if there are warnings
@@ -20252,11 +19957,11 @@ else
    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    -e 's:$: $lt_compiler_flag:'`
-   (eval echo "\"\$as_me:20255: $lt_compile\"" >&5)
+   (eval echo "\"\$as_me:19960: $lt_compile\"" >&5)
    (eval "$lt_compile" 2>out/conftest.err)
    ac_status=$?
    cat out/conftest.err >&5
-   echo "$as_me:20259: \$? = $ac_status" >&5
+   echo "$as_me:19964: \$? = $ac_status" >&5
    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    then
      # The compiler can only warn and ignore the option if not recognized
@@ -22437,7 +22142,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 22440 "configure"
+#line 22145 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -22535,7 +22240,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<EOF
-#line 22538 "configure"
+#line 22243 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
index 90335a55cc718ca06ac3cf3c74bf404f772e21a4..b887ba0f9edc36bd7085df995f84f420d332710b 100644 (file)
@@ -13,7 +13,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-AC_REVISION($Revision: 1.294.2.73 $)
+AC_REVISION($Revision: 1.294.2.74 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -413,16 +413,6 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)],
                [AC_MSG_RESULT(assuming it does work on target platform)]
                )
                 
-               AC_CHECK_FUNC(DH_generate_parameters,
-                             AC_DEFINE(HAVE_DH_GENERATE_PARAMETERS, 1,
-                                       [Define if libcrypto has DH_generate_parameters]))
-               AC_CHECK_FUNC(RSA_generate_key,
-                             AC_DEFINE(HAVE_RSA_GENERATE_KEY, 1,
-                                       [Define if libcrypto has RSA_generate_key]))
-               AC_CHECK_FUNC(DSA_generate_parameters,
-                             AC_DEFINE(HAVE_DSA_GENERATE_PARAMETERS, 1,
-                                       [Define if libcrypto has DSA_generate_parameters]))
-
 AC_ARG_ENABLE(openssl-version-check,
 [AC_HELP_STRING([--enable-openssl-version-check],
        [Check OpenSSL Version @<:@default=yes@:>@])])
index 6f3257a8ebfbce6faa2c9d7713df40c3028e0ba8..1001643bcfa76e54635a140d285e42b7a0557bda 100644 (file)
@@ -18,7 +18,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: openssldh_link.c,v 1.1.2.3 2006/03/02 00:37:17 marka Exp $
+ * $Id: openssldh_link.c,v 1.1.2.4 2007/01/08 02:02:28 marka Exp $
  */
 
 #ifdef OPENSSL
@@ -127,81 +127,11 @@ openssldh_paramcompare(const dst_key_t *key1, const dst_key_t *key2) {
        return (ISC_TRUE);
 }
 
-#ifndef HAVE_DH_GENERATE_PARAMETERS
-/* ====================================================================
- * Copyright (c) 1998-2002 The OpenSSL Project.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. All advertising materials mentioning features or use of this
- *    software must display the following acknowledgment:
- *    "This product includes software developed by the OpenSSL Project
- *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
- *
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
- *    endorse or promote products derived from this software without
- *    prior written permission. For written permission, please contact
- *    openssl-core@openssl.org.
- *
- * 5. Products derived from this software may not be called "OpenSSL"
- *    nor may "OpenSSL" appear in their names without prior written
- *    permission of the OpenSSL Project.
- *
- * 6. Redistributions of any form whatsoever must retain the following
- *    acknowledgment:
- *    "This product includes software developed by the OpenSSL Project
- *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
- *
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- * ====================================================================
- *
- * This product includes cryptographic software written by Eric Young
- * (eay@cryptsoft.com).  This product includes software written by Tim
- * Hudson (tjh@cryptsoft.com).
- *
- */
-static DH *
-DH_generate_parameters(int prime_len, int generator,
-                      void (*callback)(int,int,void *), void *cb_arg)
-{
-        BN_GENCB cb;
-        DH *dh = NULL;
-
-       dh = DH_new();
-       if (dh != NULL) {
-               BN_GENCB_set_old(&cb, callback, cb_arg);
-
-               if (DH_generate_parameters_ex(dh, prime_len, generator, &cb))
-                       return (dh);
-               DH_free(dh);
-       }
-        return (NULL);
-}
-#endif
-
 static isc_result_t
 openssldh_generate(dst_key_t *key, int generator) {
+#if OPENSSL_VERSION_NUMBER > 0x00908000L
+        BN_GENCB cb;
+#endif
        DH *dh = NULL;
 
        if (generator == 0) {
@@ -219,9 +149,23 @@ openssldh_generate(dst_key_t *key, int generator) {
                        generator = 2;
        }
 
-       if (generator != 0)
+       if (generator != 0) {
+#if OPENSSL_VERSION_NUMBER > 0x00908000L
+               dh = DH_new();
+               if (dh == NULL)
+                       return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
+
+               BN_GENCB_set_old(&cb, NULL, NULL);
+
+               if (!DH_generate_parameters_ex(dh, prime_len, generator, &cb)) {
+                       DH_free(dh);
+                       return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
+               }
+#else
                dh = DH_generate_parameters(key->key_size, generator,
                                            NULL, NULL);
+#endif
+       }
 
        if (dh == NULL)
                return (DST_R_OPENSSLFAILURE);
index 94c885ef77eba30c87ab71bdad699d9a92121bfa..8c5768210c6a57c9a2c60c3dc23ce2d99bbe9f73 100644 (file)
@@ -16,7 +16,7 @@
  * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: openssldsa_link.c,v 1.1.2.3 2006/03/02 00:37:17 marka Exp $ */
+/* $Id: openssldsa_link.c,v 1.1.2.4 2007/01/08 02:02:28 marka Exp $ */
 
 #ifdef OPENSSL
 
@@ -168,85 +168,11 @@ openssldsa_compare(const dst_key_t *key1, const dst_key_t *key2) {
        return (ISC_TRUE);
 }
 
-#ifndef HAVE_DSA_GENERATE_PARAMETERS
-/* ====================================================================
- * Copyright (c) 1998-2002 The OpenSSL Project.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in
- *    the documentation and/or other materials provided with the
- *    distribution.
- *
- * 3. All advertising materials mentioning features or use of this
- *    software must display the following acknowledgment:
- *    "This product includes software developed by the OpenSSL Project
- *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
- *
- * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
- *    endorse or promote products derived from this software without
- *    prior written permission. For written permission, please contact
- *    openssl-core@openssl.org.
- *
- * 5. Products derived from this software may not be called "OpenSSL"
- *    nor may "OpenSSL" appear in their names without prior written
- *    permission of the OpenSSL Project.
- *
- * 6. Redistributions of any form whatsoever must retain the following
- *    acknowledgment:
- *    "This product includes software developed by the OpenSSL Project
- *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
- *
- * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
- * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
- * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- * ====================================================================
- *
- * This product includes cryptographic software written by Eric Young
- * (eay@cryptsoft.com).  This product includes software written by Tim
- * Hudson (tjh@cryptsoft.com).
- *
- */
-static DSA *
-DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len,
-                       int *counter_ret, unsigned long *h_ret,
-                       void (*callback)(int, int, void *),
-                       void *cb_arg)
-{
-        BN_GENCB cb;
-        DSA *dsa;
-        dsa = DSA_new();
-       if (dsa != NULL) {
-               BN_GENCB_set_old(&cb, callback, cb_arg);
-  
-               if (DSA_generate_parameters_ex(dsa, bits, seed_in, seed_len,  
-                                              counter_ret, h_ret, &cb))
-                       return (dsa);
-               DSA_free(dsa);
-       }
-        return (NULL);
-}
-#endif
-
 static isc_result_t
 openssldsa_generate(dst_key_t *key, int unused) {
+#if OPENSSL_VERSION_NUMBER > 0x00908000L
+       BN_GENCB cb;
+#endif
        DSA *dsa;
        unsigned char rand_array[ISC_SHA1_DIGESTLENGTH];
        isc_result_t result;
@@ -258,12 +184,26 @@ openssldsa_generate(dst_key_t *key, int unused) {
        if (result != ISC_R_SUCCESS)
                return (result);
 
+##if OPENSSL_VERSION_NUMBER > 0x00908000L
+       dsa = DSA_new();
+       if (dsa == NULL)
+               return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
+
+       BN_GENCB_set_old(&cb, callback, cb_arg);
+       
+       if (!DSA_generate_parameters_ex(dsa, bits, seed_in, seed_len,
+                                       counter_ret, h_ret, &cb)) {
+               DSA_free(dsa);
+               return (dst__openssl_toresult(DST_R_OPENSSLFAILURE));
+       }
+#else
        dsa = DSA_generate_parameters(key->key_size, rand_array,
                                      ISC_SHA1_DIGESTLENGTH, NULL, NULL,
                                      NULL, NULL);
 
        if (dsa == NULL)
                return (DST_R_OPENSSLFAILURE);
+#endif
 
        if (DSA_generate_key(dsa) == 0) {
                DSA_free(dsa);
@@ -284,7 +224,7 @@ openssldsa_isprivate(const dst_key_t *key) {
 
 static isc_boolean_t
 openssldsa_issymmetric(void) {
-        return (ISC_FALSE);
+       return (ISC_FALSE);
 }
 
 static void