diff options
author | jwalch <jeremy.walch@gmail.com> | 2020-09-24 11:43:06 -0400 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-09-26 07:31:59 +1000 |
commit | 3786d74868fe440250f902ce1a78974136ca9304 (patch) | |
tree | 14b99e0d58685d1a46482f6f80558113f5b5fa11 /apps/genrsa.c | |
parent | fa9e541d49b812549d56c03852290a86aa1645ff (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/genrsa.c')
-rw-r--r-- | apps/genrsa.c | 2 |
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; } |