commit | 0446b59427f82d0138abe87fee05b10c696ab621 | [log] [tgz] |
---|---|---|
author | Shelley Vohr <shelley.vohr@gmail.com> | Thu Sep 09 11:25:24 2021 +0200 |
committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 10 15:31:35 2021 +0000 |
tree | dc42ad3c286a8d1b2b8901d57db312f2c8f8f27f | |
parent | ed5f4e82e69d7d171a1b46cffcd7f354ca152c51 [diff] [blame] |
Add maskHash to RSA_PSS_PARAMS for compat This CL adds a maskHash member to the rsa_pss_params_st struct for increased compatibility with OpenSSL: https://source.chromium.org/chromium/chromium/src/+/main:third_party/perl/c/include/openssl/rsa.h;l=282-289 Node.js recently began to make use of this member in https://github.com/nodejs/node/pull/39851 and without this member Electron sees compilation errors. Change-Id: Ibd18a31605b0a715edb279a3bca4b4f05e679767 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/49365 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/include/openssl/rsa.h b/include/openssl/rsa.h index 27bc7bf..95a478a 100644 --- a/include/openssl/rsa.h +++ b/include/openssl/rsa.h
@@ -684,6 +684,11 @@ // on success or zero otherwise. OPENSSL_EXPORT int RSA_print(BIO *bio, const RSA *rsa, int indent); +// RSA_get0_pss_params returns NULL. In OpenSSL, this function retries RSA-PSS +// parameters associated with |RSA| objects, but BoringSSL does not support +// the id-RSASSA-PSS key encoding. +OPENSSL_EXPORT const RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *rsa); + struct rsa_meth_st { struct openssl_method_common_st common;