Change the command line options of mkerr.pl so -static is now default and
[openssl.git] / crypto / dh / dhtest.c
index 488f10fd41f7b5e4b58c9fb5eb212e065a5813b7..24e361c3d7daa229671fe6e06a25e8a5705401e4 100644 (file)
 #ifdef WINDOWS
 #include "../bio/bss_file.c" 
 #endif
-#include "crypto.h"
-#include "bio.h"
-#include "bn.h"
-#include "dh.h"
+#include <openssl/crypto.h>
+#include <openssl/bio.h>
+#include <openssl/bn.h>
+#include <openssl/dh.h>
 
 #ifdef WIN16
 #define MS_CALLBACK    _far _loadds
@@ -86,9 +86,7 @@ static void MS_CALLBACK cb();
 
 BIO *out=NULL;
 
-int main(argc,argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
        {
        DH *a,*b;
        char buf[12];
@@ -170,10 +168,7 @@ err:
        return(ret);
        }
 
-static void MS_CALLBACK cb(p, n,arg)
-int p;
-int n;
-char *arg;
+static void MS_CALLBACK cb(int p, int n, char *arg)
        {
        char c='*';
 
@@ -182,6 +177,7 @@ char *arg;
        if (p == 2) c='*';
        if (p == 3) c='\n';
        BIO_write((BIO *)arg,&c,1);
+       BIO_flush((BIO *)arg);
 #ifdef LINT
        p=n;
 #endif