Add an API to get the signer of an OCSP response
authorBenjamin Kaduk <bkaduk@akamai.com>
Wed, 18 Oct 2017 20:29:18 +0000 (15:29 -0500)
committerBen Kaduk <kaduk@mit.edu>
Sun, 12 Nov 2017 02:03:49 +0000 (20:03 -0600)
commitce5886dda80b6f60fb30762381506d5c6f2d995c
treeedaba1bdce2192f8665da3d2c77bf83acaaca6cf
parent47c07020b7be6f5f8d8ffc7323b54a4ac259c910
Add an API to get the signer of an OCSP response

Add a new function OCSP_resp_get0_signer() that looks in the
certs bundled with the response as well as in additional certificates
provided as a function argument, returning the certificate that signed
the given response (if present).

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4573)
crypto/ocsp/ocsp_vfy.c
doc/man3/OCSP_resp_find_status.pod
include/openssl/ocsp.h