In apps/speed.c, lines 226->237 are inside a #ifdef SIGALRM block which causes 
compile errors on any platform that doesn't have SIGALRM.

Also, there's a call to Time_F() at 894 with 2 parameters instead of the 
required 1.

Here's a patch to fix:

Index: speed.c
===================================================================
RCS file: /usr/local/cvs/openssl.org/openssl/apps/speed.c,v
retrieving revision 1.75
diff -u -r1.75 speed.c
--- speed.c     2001/10/25 16:08:17     1.75
+++ speed.c     2001/10/29 01:54:27
@@ -216,12 +216,6 @@
 #ifdef HAVE_FORK
 static int do_multi(int multi);
 #endif
-#ifdef SIGALRM
-#if defined(__STDC__) || defined(sgi) || defined(_AIX)
-#define SIGRETTYPE void
-#else
-#define SIGRETTYPE int
-#endif 
 
 #define ALGOR_NUM      16
 #define SIZE_NUM       5
@@ -236,6 +230,13 @@
 static double rsa_results[RSA_NUM][2];
 static double dsa_results[DSA_NUM][2];
 
+#ifdef SIGALRM
+#if defined(__STDC__) || defined(sgi) || defined(_AIX)
+#define SIGRETTYPE void
+#else
+#define SIGRETTYPE int
+#endif 
+
 static SIGRETTYPE sig_done(int sig);
 static SIGRETTYPE sig_done(int sig)
        {
@@ -891,7 +892,7 @@
        do      {
                long i;
                count*=2;
-               Time_F(START,usertime);
+               Time_F(START);
                for (i=count; i; i--)
                        des_ecb_encrypt(buf_as_des_cblock,buf_as_des_cblock,
                                &sch,DES_ENCRYPT);

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  [EMAIL PROTECTED]  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to