ey ID and <i>*pname</i> is set to NULL.</p>

<p>OCSP_resp_get1_id() is the same as OCSP_resp_get0_id() but leaves ownership of <i>*pid</i> and <i>*pname</i> with the caller, who is responsible for freeing them unless the function returns 0.</p>

<p>OCSP_check_validity() checks the validity of its <i>thisupd</i> and <i>nextupd</i> arguments, which will be typically obtained from OCSP_resp_find_status() or OCSP_single_get0_status(). If <i>sec</i> is nonzero it indicates how many seconds leeway should be allow