summaryrefslogtreecommitdiff
path: root/crypto/openssl/apps/dsa.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2017-01-26 19:10:29 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2017-01-26 19:10:29 +0000
commit6cf8931a2f9fa26b2d9bdba6f1915f655e6bf25f (patch)
tree38524daaff4806b24b9b140615ce1c3850784d8e /crypto/openssl/apps/dsa.c
parentee80cc1b1cd77939b98079da917464bf2dfaefb4 (diff)
parent5315173646e65b5025be33013edc33eb9658e683 (diff)
Notes
Diffstat (limited to 'crypto/openssl/apps/dsa.c')
-rw-r--r--crypto/openssl/apps/dsa.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/openssl/apps/dsa.c b/crypto/openssl/apps/dsa.c
index dedf8e174a04c..4ed21d891e869 100644
--- a/crypto/openssl/apps/dsa.c
+++ b/crypto/openssl/apps/dsa.c
@@ -106,9 +106,7 @@ int MAIN(int argc, char **argv)
int informat, outformat, text = 0, noout = 0;
int pubin = 0, pubout = 0;
char *infile, *outfile, *prog;
-# ifndef OPENSSL_NO_ENGINE
char *engine;
-# endif
char *passargin = NULL, *passargout = NULL;
char *passin = NULL, *passout = NULL;
int modulus = 0;
@@ -124,9 +122,7 @@ int MAIN(int argc, char **argv)
if (!load_config(bio_err, NULL))
goto end;
-# ifndef OPENSSL_NO_ENGINE
engine = NULL;
-# endif
infile = NULL;
outfile = NULL;
informat = FORMAT_PEM;
@@ -239,9 +235,7 @@ int MAIN(int argc, char **argv)
ERR_load_crypto_strings();
-# ifndef OPENSSL_NO_ENGINE
e = setup_engine(bio_err, engine, 0);
-# endif
if (!app_passwd(bio_err, passargin, passargout, &passin, &passout)) {
BIO_printf(bio_err, "Error getting passwords\n");
@@ -358,6 +352,7 @@ int MAIN(int argc, char **argv)
BIO_free_all(out);
if (dsa != NULL)
DSA_free(dsa);
+ release_engine(e);
if (passin)
OPENSSL_free(passin);
if (passout)