"linux-sparc64-gcc" configuration
[openssl.git] / apps / gendh.c
index e3be0827c1284e7b7b7cabaca3854d3455e5f7d2..e5cb646bfb039e733263ea0dfc997e488a085994 100644 (file)
@@ -56,6 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
+#ifndef NO_DH
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
@@ -73,7 +74,7 @@
 #undef PROG
 #define PROG gendh_main
 
-static void MS_CALLBACK dh_cb(int p, int n, char *arg);
+static void MS_CALLBACK dh_cb(int p, int n, void *arg);
 static long dh_load_rand(char *names);
 int MAIN(int argc, char **argv)
        {
@@ -163,7 +164,7 @@ bad:
 
        BIO_printf(bio_err,"Generating DH parameters, %d bit long strong prime, generator of %d\n",num,g);
        BIO_printf(bio_err,"This is going to take a long time\n");
-       dh=DH_generate_parameters(num,g,dh_cb,(char *)bio_err);
+       dh=DH_generate_parameters(num,g,dh_cb,bio_err);
                
        if (dh == NULL) goto end;
 
@@ -183,7 +184,7 @@ end:
        EXIT(ret);
        }
 
-static void MS_CALLBACK dh_cb(int p, int n, char *arg)
+static void MS_CALLBACK dh_cb(int p, int n, void *arg)
        {
        char c='*';
 
@@ -219,5 +220,4 @@ static long dh_load_rand(char *name)
                }
        return(tot);
        }
-
-
+#endif