diff options
Diffstat (limited to 'apps/spkac.c')
-rw-r--r-- | apps/spkac.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/apps/spkac.c b/apps/spkac.c index 459d730a70..ad45c2ddb7 100644 --- a/apps/spkac.c +++ b/apps/spkac.c @@ -192,15 +192,7 @@ bad: spkstr = NETSCAPE_SPKI_b64_encode(spki); if (outfile) out = BIO_new_file(outfile, "w"); - else { - out = BIO_new_fp(stdout, BIO_NOCLOSE); -#ifdef VMS - { - BIO *tmpbio = BIO_new(BIO_f_linebuffer()); - out = BIO_push(tmpbio, out); - } -#endif - } + else out = BIO_new_fp(stdout, BIO_NOCLOSE); if(!out) { BIO_printf(bio_err, "Error opening output file\n"); @@ -249,15 +241,7 @@ bad: } if (outfile) out = BIO_new_file(outfile, "w"); - else { - out = BIO_new_fp(stdout, BIO_NOCLOSE); -#ifdef VMS - { - BIO *tmpbio = BIO_new(BIO_f_linebuffer()); - out = BIO_push(tmpbio, out); - } -#endif - } + else out = BIO_new_fp(stdout, BIO_NOCLOSE); if(!out) { BIO_printf(bio_err, "Error opening output file\n"); @@ -284,7 +268,7 @@ end: CONF_free(conf); NETSCAPE_SPKI_free(spki); BIO_free(in); - BIO_free_all(out); + BIO_free(out); BIO_free(key); EVP_PKEY_free(pkey); if(passin) OPENSSL_free(passin); |