summaryrefslogtreecommitdiffstats
path: root/apps/ec.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-10-21 00:06:14 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-10-21 00:06:14 +0000
commit58ae65cd1a18a68892b1eb8bb55b7f11a5cf6ea9 (patch)
tree58a798eadb289081909028ea96b66d44b09b324c /apps/ec.c
parent5b0f1f7d1375c31280a68b51d5737f4d95df06bf (diff)
Update ECDSA and ECDH for OPENSSL_NO_ENGINE.
Reported by: Maxim Masiutin Submitted by: Nils Larsch
Diffstat (limited to 'apps/ec.c')
-rw-r--r--apps/ec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/ec.c b/apps/ec.c
index 7d57341cb4..392e6a2ef6 100644
--- a/apps/ec.c
+++ b/apps/ec.c
@@ -84,7 +84,9 @@ int MAIN(int, char **);
int MAIN(int argc, char **argv)
{
+#ifndef OPENSSL_NO_ENGINE
ENGINE *e = NULL;
+#endif
int ret = 1;
EC_KEY *eckey = NULL;
int i, badops = 0;
@@ -249,7 +251,9 @@ bad:
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))
{