Lines Matching refs:req

53 static int add_ocsp_cert(OCSP_REQUEST **req, X509 *cert,
56 static int add_ocsp_serial(OCSP_REQUEST **req, char *serial,
59 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
63 static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req,
219 OCSP_REQUEST *req = NULL; in ocsp_main() local
443 if (!add_ocsp_cert(&req, cert, cert_id_md, issuer, ids)) in ocsp_main()
453 if (!add_ocsp_serial(&req, opt_arg(), cert_id_md, issuer, ids)) in ocsp_main()
552 if (req == NULL && reqin == NULL in ocsp_main()
560 if (req == NULL && (add_nonce != 2)) in ocsp_main()
563 if (req == NULL && reqin != NULL) { in ocsp_main()
567 req = d2i_OCSP_REQUEST_bio(derbio, NULL); in ocsp_main()
569 if (req == NULL) { in ocsp_main()
575 if (req == NULL && port != NULL) { in ocsp_main()
659 req = NULL; in ocsp_main()
660 res = do_responder(&req, &cbio, acbio, req_timeout); in ocsp_main()
664 if (req == NULL) { in ocsp_main()
675 if (req == NULL in ocsp_main()
682 if (req != NULL && add_nonce) { in ocsp_main()
683 if (!OCSP_request_add1_nonce(req, NULL, -1)) in ocsp_main()
705 if (!OCSP_request_sign(req, signer, key, NULL, in ocsp_main()
712 if (req_text && req != NULL) in ocsp_main()
713 OCSP_REQUEST_print(out, req, 0); in ocsp_main()
719 i2d_OCSP_REQUEST_bio(derbio, req); in ocsp_main()
724 make_ocsp_response(bio_err, &resp, req, rdb, rca_certs, rsigner, rkey, in ocsp_main()
733 resp = process_responder(req, host, port, path, opt_proxy, opt_no_proxy, in ocsp_main()
787 OCSP_REQUEST_free(req); in ocsp_main()
788 req = NULL; in ocsp_main()
821 if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) { in ocsp_main()
846 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main()
868 OCSP_REQUEST_free(req); in ocsp_main()
903 static int add_ocsp_cert(OCSP_REQUEST **req, X509 *cert, in add_ocsp_cert() argument
913 if (*req == NULL) in add_ocsp_cert()
914 *req = OCSP_REQUEST_new(); in add_ocsp_cert()
915 if (*req == NULL) in add_ocsp_cert()
920 if (!OCSP_request_add0_id(*req, id)) in add_ocsp_cert()
929 static int add_ocsp_serial(OCSP_REQUEST **req, char *serial, in add_ocsp_serial() argument
942 if (*req == NULL) in add_ocsp_serial()
943 *req = OCSP_REQUEST_new(); in add_ocsp_serial()
944 if (*req == NULL) in add_ocsp_serial()
957 if (!OCSP_request_add0_id(*req, id)) in add_ocsp_serial()
966 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, in print_ocsp_summary() argument
977 if (req == NULL || !sk_OPENSSL_STRING_num(names)) in print_ocsp_summary()
1028 static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req, in make_ocsp_response() argument
1043 id_count = OCSP_request_onereq_count(req); in make_ocsp_response()
1067 one = OCSP_request_onereq_get0(req, i); in make_ocsp_response()
1139 OCSP_copy_nonce(bs, req); in make_ocsp_response()
1231 OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, const char *host, in process_responder() argument
1251 (ASN1_VALUE *)req, ASN1_ITEM_rptr(OCSP_REQUEST), in process_responder()