summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-04-26 22:18:22 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-04-26 22:18:22 +0000
commitd4f0339c66eace1b7f90f07f43b6d8595342cce3 (patch)
tree9d747a5557303d6ac558c0f5a3c96e553a13e9c0 /apps/req.c
parent127186bf574430546ef48bf3a82d5b3697c522c1 (diff)
Update from 1.0.0-stable.
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c
index 3b4ab28e5d..e9b764b90c 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -1715,7 +1715,7 @@ static EVP_PKEY_CTX *set_keygen_ctx(BIO *err, const char *gstr, int *pkey_type,
ERR_print_errors(err);
return NULL;
}
-
+#ifndef OPENSSL_NO_RSA
if ((*pkey_type == EVP_PKEY_RSA) && (keylen != -1))
{
if (EVP_PKEY_CTX_set_rsa_keygen_bits(gctx, keylen) <= 0)
@@ -1726,6 +1726,7 @@ static EVP_PKEY_CTX *set_keygen_ctx(BIO *err, const char *gstr, int *pkey_type,
return NULL;
}
}
+#endif
return gctx;
}