Submitted by:
[openssl.git] / apps / gendh.c
index 2790f179fdc30d7174f31d90811c35bcbfb65acd..c69147e3704472842123263cd2f3c922d2aac28b 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include "apps.h"
-#include "bio.h"
-#include "rand.h"
-#include "err.h"
-#include "bn.h"
-#include "dh.h"
-#include "x509.h"
-#include "pem.h"
+#include <openssl/bio.h>
+#include <openssl/rand.h>
+#include <openssl/err.h>
+#include <openssl/bn.h>
+#include <openssl/dh.h>
+#include <openssl/x509.h>
+#include <openssl/pem.h>
 
 #define DEFBITS        512
 #undef PROG
@@ -81,9 +81,7 @@ static void MS_CALLBACK dh_cb();
 static long dh_load_rand();
 #endif
 
-int MAIN(argc, argv)
-int argc;
-char **argv;
+int MAIN(int argc, char **argv)
        {
        char buffer[200];
        DH *dh=NULL;
@@ -191,10 +189,7 @@ end:
        EXIT(ret);
        }
 
-static void MS_CALLBACK dh_cb(p,n,arg)
-int p;
-int n;
-char *arg;
+static void MS_CALLBACK dh_cb(int p, int n, char *arg)
        {
        char c='*';
 
@@ -209,8 +204,7 @@ char *arg;
 #endif
        }
 
-static long dh_load_rand(name)
-char *name;
+static long dh_load_rand(char *name)
        {
        char *p,*n;
        int last;