Fix rsa_sigalg_set_ctx_params() to return 1 for unknown parameters.

This keeps the code consistent with the changes done for other
algorithms that support sigalg_set_ctx_params().

set_ctx_params() should always return 1 if the parameter is unknown.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25570)
This commit is contained in:
slontis 2024-09-20 10:37:55 +10:00 committed by Tomas Mraz
parent 923baa12e1
commit 349815b57f

View File

@ -2003,11 +2003,8 @@ static int rsa_sigalg_set_ctx_params(void *vprsactx, const OSSL_PARAM params[])
0, &prsactx->siglen))
return 0;
}
return 1;
}
/* Wrong operation */
return 0;
return 1;
}
#define IMPL_RSA_SIGALG(md, MD) \