Lines Matching refs:bs
59 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req,
218 OCSP_BASICRESP *bs = NULL; in ocsp_main() local
812 bs = OCSP_response_get1_basic(resp); in ocsp_main()
813 if (bs == NULL) { in ocsp_main()
821 if (req != NULL && ((i = OCSP_check_nonce(req, bs)) <= 0)) { in ocsp_main()
831 i = OCSP_basic_verify(bs, verify_other, store, verify_flags); in ocsp_main()
833 i = OCSP_basic_verify(bs, issuers, store, OCSP_TRUSTOTHER); in ocsp_main()
846 if (!print_ocsp_summary(out, bs, req, reqnames, ids, nsec, maxage)) in ocsp_main()
870 OCSP_BASICRESP_free(bs); in ocsp_main()
966 static int print_ocsp_summary(BIO *out, OCSP_BASICRESP *bs, OCSP_REQUEST *req, in print_ocsp_summary() argument
980 if (bs == NULL || !sk_OCSP_CERTID_num(ids)) in print_ocsp_summary()
988 if (!OCSP_resp_find_status(bs, id, &status, &reason, in print_ocsp_summary()
1038 OCSP_BASICRESP *bs = NULL; in make_ocsp_response() local
1051 bs = OCSP_BASICRESP_new(); in make_ocsp_response()
1096 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1102 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1106 OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1117 single = OCSP_basic_add1_status(bs, cid, in make_ocsp_response()
1139 OCSP_copy_nonce(bs, req); in make_ocsp_response()
1157 if (!OCSP_basic_sign_ctx(bs, rcert, mctx, rother, flags)) { in make_ocsp_response()
1158 *resp = OCSP_response_create(OCSP_RESPONSE_STATUS_INTERNALERROR, bs); in make_ocsp_response()
1163 const ASN1_OCTET_STRING *sig = OCSP_resp_get0_signature(bs); in make_ocsp_response()
1167 *resp = OCSP_response_create(OCSP_RESPONSE_STATUS_SUCCESSFUL, bs); in make_ocsp_response()
1173 OCSP_BASICRESP_free(bs); in make_ocsp_response()