Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2177)
return 1;
if (algptype == V_ASN1_UNDEF)
return 1;
return 1;
if (algptype == V_ASN1_UNDEF)
return 1;
- if (algptype != V_ASN1_SEQUENCE)
+ if (algptype != V_ASN1_SEQUENCE) {
+ RSAerr(RSA_F_RSA_PARAM_DECODE, RSA_R_INVALID_PSS_PARAMETERS);
rsa->pss = rsa_pss_decode(alg);
if (rsa->pss == NULL)
return 0;
rsa->pss = rsa_pss_decode(alg);
if (rsa->pss == NULL)
return 0;