218 |
|
memcpy(rm, s + 2, 16); |
219 |
|
*prm_len = 16; |
220 |
|
ret = 1; |
221 |
< |
} else if (memcmp(m, s + 2, 16)) |
221 |
> |
} else if (memcmp(m, s + 2, 16)) { |
222 |
|
RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE); |
223 |
< |
else |
223 |
> |
} else { |
224 |
|
ret = 1; |
225 |
< |
} |
226 |
< |
|
227 |
< |
/* Special case: SSL signature */ |
228 |
< |
if (dtype == NID_md5_sha1) { |
225 |
> |
} |
226 |
> |
} else if (dtype == NID_md5_sha1) { |
227 |
> |
/* Special case: SSL signature */ |
228 |
|
if ((i != SSL_SIG_LENGTH) || memcmp(s, m, SSL_SIG_LENGTH)) |
229 |
|
RSAerr(RSA_F_INT_RSA_VERIFY, RSA_R_BAD_SIGNATURE); |
230 |
|
else |