Lines Matching refs:req
59 static int add_ocsp_cert(OCSP_REQUEST **req, X509 *cert,
62 static int add_ocsp_serial(OCSP_REQUEST **req, char *serial,
65 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
69 static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req,
223 OCSP_REQUEST *req = NULL;
445 if (!add_ocsp_cert(&req, cert, cert_id_md, issuer, ids))
454 if (!add_ocsp_serial(&req, opt_arg(), cert_id_md, issuer, ids))
554 if (req == NULL && reqin == NULL
562 if (req == NULL && (add_nonce != 2))
565 if (req == NULL && reqin != NULL) {
569 req = d2i_OCSP_REQUEST_bio(derbio, NULL);
571 if (req == NULL) {
577 if (req == NULL && port != NULL) {
659 req = NULL;
660 res = do_responder(&req, &cbio, acbio, port, req_timeout);
664 if (req == NULL) {
675 if (req == NULL
682 if (req != NULL && add_nonce) {
683 if (!OCSP_request_add1_nonce(req, NULL, -1))
705 if (!OCSP_request_sign(req, signer, key, NULL,
712 if (req_text && req != NULL)
713 OCSP_REQUEST_print(out, req, 0);
719 i2d_OCSP_REQUEST_bio(derbio, req);
724 make_ocsp_response(bio_err, &resp, req, rdb, rca_cert, rsigner, rkey,
733 resp = process_responder(req, host, port, path, opt_proxy, opt_no_proxy,
787 OCSP_REQUEST_free(req);
788 req = NULL;
821 if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) {
846 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage))
868 OCSP_REQUEST_free(req);
903 static int add_ocsp_cert(OCSP_REQUEST **req, X509 *cert,
913 if (*req == NULL)
914 *req = OCSP_REQUEST_new();
915 if (*req == NULL)
920 if (!OCSP_request_add0_id(*req, id))
929 static int add_ocsp_serial(OCSP_REQUEST **req, char *serial,
942 if (*req == NULL)
943 *req = OCSP_REQUEST_new();
944 if (*req == NULL)
957 if (!OCSP_request_add0_id(*req, id))
966 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
977 if (req == NULL || !sk_OPENSSL_STRING_num(names))
1028 static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req,
1043 id_count = OCSP_request_onereq_count(req);
1067 one = OCSP_request_onereq_get0(req, i);
1139 OCSP_copy_nonce(bs, req);
1231 OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, const char *host,
1251 (ASN1_VALUE *)req, ASN1_ITEM_rptr(OCSP_REQUEST),