]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/gendsa.c
Import of old SSLeay release: SSLeay 0.9.0b
[thirdparty/openssl.git] / apps / gendsa.c
index 35f299a58b187eb618ade523787b15fc8a165b4b..e0e5afa400b0feb84588d201377826287bb710a4 100644 (file)
@@ -1,5 +1,5 @@
 /* apps/gendsa.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -94,7 +94,7 @@ char **argv;
 
        if (bio_err == NULL)
                if ((bio_err=BIO_new(BIO_s_file())) != NULL)
-                       BIO_set_fp(bio_err,stderr,BIO_NOCLOSE);
+                       BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT);
 
        argv++;
        argc--;
@@ -135,7 +135,7 @@ bad:
                }
 
        in=BIO_new(BIO_s_file());
-       if (!(BIO_read_filename(in,"r")))
+       if (!(BIO_read_filename(in,"dsaparams")))
                {
                perror(dsaparams);
                goto end;