diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-11-13 01:03:58 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-11-13 01:03:58 +0000 |
commit | ddd58736f08d9acef3606719eba2e38ed611705b (patch) | |
tree | 258f64877cac3711a3434257baddcbae72af2af3 /crypto/openssl/apps/gendh.c | |
parent | 07c567b8ec177822ff1b6e4929662b317ba137b5 (diff) | |
download | src-ddd58736f08d9acef3606719eba2e38ed611705b.tar.gz src-ddd58736f08d9acef3606719eba2e38ed611705b.zip |
Initial import of OpenSSL 0.9.6
Notes
Notes:
svn path=/vendor-crypto/openssl/dist/; revision=68651
Diffstat (limited to 'crypto/openssl/apps/gendh.c')
-rw-r--r-- | crypto/openssl/apps/gendh.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/openssl/apps/gendh.c b/crypto/openssl/apps/gendh.c index caf5e8d736bd..e0c7889a31e1 100644 --- a/crypto/openssl/apps/gendh.c +++ b/crypto/openssl/apps/gendh.c @@ -142,7 +142,15 @@ bad: } if (outfile == NULL) + { BIO_set_fp(out,stdout,BIO_NOCLOSE); +#ifdef VMS + { + BIO *tmpbio = BIO_new(BIO_f_linebuffer()); + out = BIO_push(tmpbio, out); + } +#endif + } else { if (BIO_write_filename(out,outfile) <= 0) @@ -174,7 +182,7 @@ bad: end: if (ret != 0) ERR_print_errors(bio_err); - if (out != NULL) BIO_free(out); + if (out != NULL) BIO_free_all(out); if (dh != NULL) DH_free(dh); EXIT(ret); } |