See ChangeLog: Sun Jan 3 15:28:44 CET 1999 Werner Koch
authorWerner Koch <wk@gnupg.org>
Sun, 3 Jan 1999 14:33:30 +0000 (14:33 +0000)
committerWerner Koch <wk@gnupg.org>
Sun, 3 Jan 1999 14:33:30 +0000 (14:33 +0000)
ChangeLog
THANKS
acinclude.m4
cipher/ChangeLog
cipher/des.c
cipher/rndunix.c
configure.in

index 839ad69..f7a5f88 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan  3 15:28:44 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
+
+       * acinclude.m4 (GNUPG_CHECK_RDYNAMIC): New.
+       * configure.in (DYNLOAD_CFLAGS): Use result from CHECK_RDYNAMIC
+
 Wed Dec 23 13:18:14 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
 
        * README: Replaced the command overview with a short intro.
diff --git a/THANKS b/THANKS
index 5df018e..fb9835f 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -48,6 +48,7 @@ Lars Kellogg-Stedman  lars@bu.edu
 Marco d'Itri            md@linux.it
 Mark Adler             madler@alumni.caltech.edu
 Markus Friedl          Markus.Friedl@informatik.uni-erlangen.de
+Martin Kahlert         martin.kahlert@provi.de
 Martin Schulte         schulte@thp.uni-koeln.de
 Matthew Skala          mskala@ansuz.sooke.bc.ca
 Max Valianskiy         maxcom@maxcom.ml.org
index 13eff5f..ab6fbf3 100644 (file)
@@ -187,6 +187,31 @@ define(GNUPG_CHECK_PIC,
   ])
 
 
+######################################################################
+# Check for rdynamic flag
+# This sets CFLAGS_RDYNAMIC to the required flags
+######################################################################
+dnl GNUPG_CHECK_RDYNAMIC
+dnl
+define(GNUPG_CHECK_RDYNAMIC,
+  [ AC_MSG_CHECKING(how to specify -rdynamic)
+    CFLAGS_RDYNAMIC=
+    if test "$cross_compiling" = yes; then
+        AC_MSG_RESULT(assume none)
+    else
+        case "$host_os" in
+          solaris*)
+            CFLAGS_RDYNAMIC="-Wl,-dy"
+            ;;
+          *)
+            CFLAGS_RDYNAMIC="-Wl,-export-dynamic"
+            ;;
+        esac
+        AC_MSG_RESULT($CFLAGS_RDYNAMIC)
+    fi
+  ])
+
+
 #####################################################################
 # Check for SysV IPC  (from GIMP)
 #   And see whether we have a SHM_LOCK (FreeBSD does not have it).
index edce2b0..328f264 100644 (file)
@@ -1,3 +1,11 @@
+Sun Jan  3 15:28:44 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
+
+       * rndunix.c (start_gatherer): Fixed stupid ==/= bug
+
+1998-12-31  Geoff Keating  <geoffk@ozemail.com.au>
+
+       * des.c (is_weak_key): Rewrite loop end condition.
+
 Tue Dec 29 14:41:47 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
 
        * random.c: add unistd.h for getpid().
index f7187c0..41c7688 100644 (file)
@@ -723,16 +723,13 @@ is_weak_key ( const byte *key )
   /* binary search in the weak key table */
   left = 0;
   right = 63;
-  while(1)
+  while(left <= right)
     {
       middle = (left + right) / 2;
 
       if ( !(cmp_result=memcmp(work, weak_keys[middle], 8)) )
          return -1;
 
-      if ( left == right )
-         break;
-
       if ( cmp_result > 0 )
          left = middle + 1;
       else
index a44d095..c005afb 100644 (file)
@@ -627,7 +627,7 @@ start_gatherer( int pipefd )
            while( write( pipefd, &msg, sizeof(msg) ) != sizeof(msg) ) {
                if( errno == EINTR )
                    continue;
-               if( errno = EAGAIN ) {
+               if( errno == EAGAIN ) {
                    struct timeval tv;
                    tv.tv_sec = 0;
                    tv.tv_usec = 50000;
index 69f8db6..0450817 100644 (file)
@@ -112,6 +112,7 @@ esac
 
 
 GNUPG_CHECK_PIC
+GNUPG_CHECK_RDYNAMIC
 if test "$NO_PIC" = yes; then
     try_dynload=no
 fi
@@ -159,14 +160,14 @@ if test "$try_dynload" = yes ; then
   if test "$ac_cv_lib_dl_dlopen" = "yes"; then
     AC_DEFINE(USE_DYNAMIC_LINKING)
     AC_DEFINE(HAVE_DL_DLOPEN)
-    DYNLINK_LDFLAGS="-Wl,-export-dynamic"
+    DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
     use_gnupg_extensions=yes
   else
     AC_CHECK_LIB(c,dlopen)
     if test "$ac_cv_lib_c_dlopen" = "yes"; then
       AC_DEFINE(USE_DYNAMIC_LINKING)
       AC_DEFINE(HAVE_DL_DLOPEN)
-      DYNLINK_LDFLAGS="-Wl,-export-dynamic"
+      DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
       dnl fixme: this is probably false but it should
       dnl work for freebsd
       AC_DEFINE(DLSYM_NEEDS_UNDERSCORE)
@@ -176,7 +177,7 @@ if test "$try_dynload" = yes ; then
       if test "$ac_cv_lib_dld_dld_link" = "yes"; then
         AC_DEFINE(USE_DYNAMIC_LINKING)
         AC_DEFINE(HAVE_DLD_DLD_LINK)
-        DYNLINK_LDFLAGS="-Wl,-export-dynamic"
+        DYNLINK_LDFLAGS="$CFLAGS_RDYNAMIC"
         use_gnupg_extensions=yes
       fi
     fi