summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorjwalch <jeremy.walch@gmail.com>2020-09-24 11:43:06 -0400
committerShane Lontis <shane.lontis@oracle.com>2020-09-26 07:31:59 +1000
commit3786d74868fe440250f902ce1a78974136ca9304 (patch)
tree14b99e0d58685d1a46482f6f80558113f5b5fa11 /apps
parentfa9e541d49b812549d56c03852290a86aa1645ff (diff)
en EVP_PKEY_CTX_set_rsa_keygen_pubexp() BIGNUM management
Fixes #12635 As discussed in the issue, supporting the set0-like semantics long-term is not necessarily desirable, although necessary for short-term compatibility concerns. So I've deprecated the original method and added an equivalent that is explicitly labelled as set1. I tried to audit existing usages of the (now-deprecated) API and update them to use set1 if that appeared to align with their expectations. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12917)
Diffstat (limited to 'apps')
-rw-r--r--apps/genrsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c
index 04315a559b..f471814e08 100644
--- a/apps/genrsa.c
+++ b/apps/genrsa.c
@@ -188,7 +188,7 @@ opthelp:
BIO_printf(bio_err, "Error allocating RSA public exponent\n");
goto end;
}
- if (EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, bn) <= 0) {
+ if (EVP_PKEY_CTX_set1_rsa_keygen_pubexp(ctx, bn) <= 0) {
BIO_printf(bio_err, "Error setting RSA public exponent\n");
goto end;
}