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 13:36:21 +0000 (14:36 +0100)
commitf6186cfba64593d3cefd6851a487a21abd0657a3
tree958999f1aec0b1aa51b7d89a3d0dec283421417b
parente4c4b2766bb97b34ea3479252276ab7c66311809
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