| 575 | } |
| 576 | |
| 577 | TS_OCSP_BASICRESP * |
| 578 | TS_OCSP_response_get1_basic(TS_OCSP_RESPONSE *resp) |
| 579 | { |
| 580 | TS_OCSP_RESPBYTES *rb = resp->responseBytes; |
| 581 | |
| 582 | if (rb == nullptr) { |
| 583 | Dbg(dbg_ctl_ssl_ocsp, "No response data"); |
| 584 | return nullptr; |
| 585 | } |
| 586 | if (OBJ_obj2nid(rb->responseType) != NID_id_pkix_OCSP_basic) { |
| 587 | Dbg(dbg_ctl_ssl_ocsp, "Not basic response"); |
| 588 | return nullptr; |
| 589 | } |
| 590 | |
| 591 | return static_cast<TS_OCSP_BASICRESP *>(ASN1_item_unpack(rb->response, ASN1_ITEM_rptr(TS_OCSP_BASICRESP))); |
| 592 | } |
| 593 | |
| 594 | int |
| 595 | TS_OCSP_id_issuer_cmp(const TS_OCSP_CERTID *a, const TS_OCSP_CERTID *b) |
no outgoing calls
no test coverage detected