Fix error in ce9d85ee
.
I used a size_t out of habit, but |RSA_public_decrypt| is an old-style function. Change-Id: Ibd94d03743fe0099d61578ec15c19fa5333127db
This commit is contained in:
parent
ce9d85eedd
commit
ef7dba6ac7
@ -278,8 +278,8 @@ static int pkey_rsa_verify_recover(EVP_PKEY_CTX *ctx, uint8_t *out,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (rctx->md == NULL) {
|
if (rctx->md == NULL) {
|
||||||
const size_t ret = RSA_public_decrypt(sig_len, sig, rctx->tbuf,
|
const int ret = RSA_public_decrypt(sig_len, sig, rctx->tbuf,
|
||||||
ctx->pkey->pkey.rsa, rctx->pad_mode);
|
ctx->pkey->pkey.rsa, rctx->pad_mode);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user