X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=apps%2Fgenpkey.c;h=6dfda08b9e09f2d7ca3e4bea10f3ce27e8ffebeb;hb=a09e4d24ada871ed0e6f5e37fadd52a76b29542a;hp=dc69e743b213eadc5959bd7a6b087716dcca12e1;hpb=2e5975285e2b65261ce780fa3f5744277b66db34;p=openssl.git diff --git a/apps/genpkey.c b/apps/genpkey.c index dc69e743b2..6dfda08b9e 100644 --- a/apps/genpkey.c +++ b/apps/genpkey.c @@ -376,8 +376,10 @@ int init_gen_str(BIO *err, EVP_PKEY_CTX **pctx, ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1); +#ifndef OPENSSL_NO_ENGINE if (!ameth && e) ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1); +#endif if (!ameth) {