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/rand.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/rand.c')
-rw-r--r-- | crypto/openssl/apps/rand.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crypto/openssl/apps/rand.c b/crypto/openssl/apps/rand.c index cfbba3075586..04764d7ffb6c 100644 --- a/crypto/openssl/apps/rand.c +++ b/crypto/openssl/apps/rand.c @@ -62,7 +62,7 @@ int MAIN(int argc, char **argv) else badopt = 1; } - else if (isdigit(argv[i][0])) + else if (isdigit((unsigned char)argv[i][0])) { if (num < 0) { @@ -101,7 +101,15 @@ int MAIN(int argc, char **argv) if (outfile != NULL) r = BIO_write_filename(out, outfile); else + { r = BIO_set_fp(out, stdout, BIO_NOCLOSE | BIO_FP_TEXT); +#ifdef VMS + { + BIO *tmpbio = BIO_new(BIO_f_linebuffer()); + out = BIO_push(tmpbio, out); + } +#endif + } if (r <= 0) goto err; |