diff options
author | Adam Langley <agl@google.com> | 2016-01-27 02:31:23 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2016-01-27 02:31:23 +0300 |
commit | ef7dba6ac7270d9a7ff5081b5e58a88c9780a090 (patch) | |
tree | e8eeadda755bf9a69af59ab2d1381eb316234936 /crypto/evp | |
parent | ce9d85eedd4888848148e3b855e85efb1009224c (diff) |
Fix error in ce9d85ee.
I used a size_t out of habit, but |RSA_public_decrypt| is an old-style
function.
Change-Id: Ibd94d03743fe0099d61578ec15c19fa5333127db
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/p_rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/p_rsa.c b/crypto/evp/p_rsa.c index 5f6db768..e613dac5 100644 --- a/crypto/evp/p_rsa.c +++ b/crypto/evp/p_rsa.c @@ -278,8 +278,8 @@ static int pkey_rsa_verify_recover(EVP_PKEY_CTX *ctx, uint8_t *out, } if (rctx->md == NULL) { - const size_t ret = RSA_public_decrypt(sig_len, sig, rctx->tbuf, - ctx->pkey->pkey.rsa, rctx->pad_mode); + const int ret = RSA_public_decrypt(sig_len, sig, rctx->tbuf, + ctx->pkey->pkey.rsa, rctx->pad_mode); if (ret < 0) { return 0; } |