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,
225 OCSP_REQUEST *req = NULL; in ocsp_main() local
449 if (!add_ocsp_cert(&req, cert, cert_id_md, issuer, ids)) in ocsp_main()
459 if (!add_ocsp_serial(&req, opt_arg(), cert_id_md, issuer, ids)) in ocsp_main()
558 if (req == NULL && reqin == NULL in ocsp_main()
566 if (req == NULL && (add_nonce != 2)) in ocsp_main()
569 if (req == NULL && reqin != NULL) { in ocsp_main()
573 req = d2i_OCSP_REQUEST_bio(derbio, NULL); in ocsp_main()
575 if (req == NULL) { in ocsp_main()
581 if (req == NULL && port != NULL) { in ocsp_main()
663 req = NULL; in ocsp_main()
664 res = do_responder(&req, &cbio, acbio, req_timeout); in ocsp_main()
668 if (req == NULL) { in ocsp_main()
679 if (req == NULL in ocsp_main()
686 if (req != NULL && add_nonce) { in ocsp_main()
687 if (!OCSP_request_add1_nonce(req, NULL, -1)) in ocsp_main()
709 if (!OCSP_request_sign(req, signer, key, NULL, in ocsp_main()
716 if (req_text && req != NULL) in ocsp_main()
717 OCSP_REQUEST_print(out, req, 0); in ocsp_main()
723 i2d_OCSP_REQUEST_bio(derbio, req); in ocsp_main()
728 make_ocsp_response(bio_err, &resp, req, rdb, rca_cert, rsigner, rkey, in ocsp_main()
735 resp = process_responder(req, host, port, path, opt_proxy, opt_no_proxy, in ocsp_main()
789 OCSP_REQUEST_free(req); in ocsp_main()
790 req = NULL; in ocsp_main()
823 if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) { in ocsp_main()
848 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main()
870 OCSP_REQUEST_free(req); in ocsp_main()
905 static int add_ocsp_cert(OCSP_REQUEST **req, X509 *cert, in add_ocsp_cert() argument
915 if (*req == NULL) in add_ocsp_cert()
916 *req = OCSP_REQUEST_new(); in add_ocsp_cert()
917 if (*req == NULL) in add_ocsp_cert()
922 if (!OCSP_request_add0_id(*req, id)) in add_ocsp_cert()
931 static int add_ocsp_serial(OCSP_REQUEST **req, char *serial, in add_ocsp_serial() argument
944 if (*req == NULL) in add_ocsp_serial()
945 *req = OCSP_REQUEST_new(); in add_ocsp_serial()
946 if (*req == NULL) in add_ocsp_serial()
959 if (!OCSP_request_add0_id(*req, id)) in add_ocsp_serial()
968 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, in print_ocsp_summary() argument
979 if (req == NULL || !sk_OPENSSL_STRING_num(names)) in print_ocsp_summary()
1030 static void make_ocsp_response(BIO *err, OCSP_RESPONSE **resp, OCSP_REQUEST *req, in make_ocsp_response() argument
1045 id_count = OCSP_request_onereq_count(req); in make_ocsp_response()
1069 one = OCSP_request_onereq_get0(req, i); in make_ocsp_response()
1141 OCSP_copy_nonce(bs, req); in make_ocsp_response()
1233 OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, const char *host, in process_responder() argument
1253 (ASN1_VALUE *)req, ASN1_ITEM_rptr(OCSP_REQUEST), in process_responder()