summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-03-12 14:41:45 +0000
committerMatt Caswell <matt@openssl.org>2020-03-19 18:49:12 +0000
commit0f2deef59d13e852a4bde0e853e9b49bab51a108 (patch)
treea5c9ddb9320ccbe0c2d950f1732722d4f9261fd6 /include
parentcb57f42528ea93c908aeff2d2f2a90c478528add (diff)
Use RAND_bytes_ex in crypto/rsa
At various points in crypto/rsa we need to get random numbers. We should ensure that we use the correct libctx when doing so. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11355)
Diffstat (limited to 'include')
-rw-r--r--include/crypto/rsa.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/crypto/rsa.h b/include/crypto/rsa.h
index 51ac0148af..09335fafe4 100644
--- a/include/crypto/rsa.h
+++ b/include/crypto/rsa.h
@@ -21,9 +21,10 @@ int rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes,
STACK_OF(BIGNUM_const) *exps,
STACK_OF(BIGNUM_const) *coeffs);
-int rsa_padding_check_PKCS1_type_2_TLS(unsigned char *to, size_t tlen,
- const unsigned char *from, size_t flen,
- int client_version, int alt_version);
+int rsa_padding_check_PKCS1_type_2_TLS(OPENSSL_CTX *ctx, unsigned char *to,
+ size_t tlen, const unsigned char *from,
+ size_t flen, int client_version,
+ int alt_version);
int rsa_validate_public(const RSA *key);
int rsa_validate_private(const RSA *key);