diff options
author | Geoff Thorpe <geoff@openssl.org> | 2004-10-21 00:06:14 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2004-10-21 00:06:14 +0000 |
commit | 58ae65cd1a18a68892b1eb8bb55b7f11a5cf6ea9 (patch) | |
tree | 58a798eadb289081909028ea96b66d44b09b324c /apps | |
parent | 5b0f1f7d1375c31280a68b51d5737f4d95df06bf (diff) | |
download | openssl-58ae65cd1a18a68892b1eb8bb55b7f11a5cf6ea9.tar.gz |
Update ECDSA and ECDH for OPENSSL_NO_ENGINE.
Reported by: Maxim Masiutin
Submitted by: Nils Larsch
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ec.c | 4 | ||||
-rw-r--r-- | apps/ecparam.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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)) { diff --git a/apps/ecparam.c b/apps/ecparam.c index ae046f9a8d..29d215e883 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -127,7 +127,9 @@ int MAIN(int argc, char **argv) char *infile = NULL, *outfile = NULL, *prog; BIO *in = NULL, *out = NULL; int informat, outformat, noout = 0, C = 0, ret = 1; +#ifndef OPENSSL_NO_ENGINE ENGINE *e = NULL; +#endif char *engine = NULL; BIGNUM *ec_p = NULL, *ec_a = NULL, *ec_b = NULL, @@ -335,7 +337,9 @@ bad: } } +#ifndef OPENSSL_NO_ENGINE e = setup_engine(bio_err, engine, 0); +#endif if (list_curves) { |