On 5/03/2013 10:56 PM, Dr. Stephen Henson wrote:
> 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

Thanks. In this case I only have the request, but this code does not
generate the request so I don't have the cert_id component that would
usually be used to build the request. I don't suppose there's a function
anywhere to extract the cert_id from an ocsp request is there?





______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to