On Tue, Mar 05, 2013, Geoff Swan wrote:

> Hi,
> 
> I have an ocsp response in memory. The response may contain 1 or more
> (probably about 20) ocsp responses for certificates based on the same
> issuer name and issuer key.
> 
> I need to locate the response that is relevant for the certificate of
> interest. Is the usual method to parse each response and match the cert
> serial number to find the index to the correct ocsp response?
> 

The usual way is to call OCSP_resp_find_status() using the certificate id from
the request. Alternatively you can use OCSP_resp_find to find the index of a
matching OCSP_SINGLERESP structure and OCSP_resp_get0() to retreive the
structure itself.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to