summaryrefslogtreecommitdiff
path: root/apps/req.c
diff options
context:
space:
mode:
authorsteve <steve>2009-04-26 22:18:18 +0000
committersteve <steve>2009-04-26 22:18:18 +0000
commite9850d3b961d7fc433509d8c06f8b33e73ff4764 (patch)
tree414fc90ed13753bc49e78a6112282dcde0770072 /apps/req.c
parentbb83a99fdb62d0d01c69f994c17560cd8b1acc46 (diff)
downloadopenssl-e9850d3b961d7fc433509d8c06f8b33e73ff4764.tar.gz
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 3b4ab28e5..e9b764b90 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;
}