Fix seg fault in TS_RESP_verify_response()
authorMatt Caswell <matt@openssl.org>
Fri, 10 Jun 2016 13:25:15 +0000 (14:25 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 10 Jun 2016 14:58:44 +0000 (15:58 +0100)
commite68a780ed698cd7839d38bf3851974fc1d23e00d
tree606a915200f9300e8dacf157d7e1e11589cf660d
parent73159f403e9cea280f83477d0dd1f2b933a7e6c2
Fix seg fault in TS_RESP_verify_response()

The TS_RESP_verify_response() function is used for verifying the response
from a TSA. You can set the provided TS_VERIFY_CTX with different flags
depending on what aspects of the response you wish to verify.

A seg fault will occur if you supply the TS_VFY_SIGNER or TS_VFY_TSA_NAME
flags without also specifying TS_VFY_SIGNATURE.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/ts/ts_rsp_verify.c