summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/apps/dsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/apps/dsa.c')
-rw-r--r--crypto/openssl/apps/dsa.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/crypto/openssl/apps/dsa.c b/crypto/openssl/apps/dsa.c
index 4977671..7c4a46f 100644
--- a/crypto/openssl/apps/dsa.c
+++ b/crypto/openssl/apps/dsa.c
@@ -233,7 +233,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)
@@ -281,10 +289,10 @@ bad:
ret=0;
end:
if(in != NULL) BIO_free(in);
- if(out != NULL) BIO_free(out);
+ if(out != NULL) BIO_free_all(out);
if(dsa != NULL) DSA_free(dsa);
- if(passin) Free(passin);
- if(passout) Free(passout);
+ if(passin) OPENSSL_free(passin);
+ if(passout) OPENSSL_free(passout);
EXIT(ret);
}
#endif
OpenPOWER on IntegriCloud