Lines Matching refs:req
170 const OSSL_CMP_MSG *req) in delayed_delivery() argument
180 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in delayed_delivery()
184 ret = srv_ctx->delayed_delivery(srv_ctx, req); in delayed_delivery()
214 const OSSL_CMP_MSG *req) in process_cert_request() argument
225 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_cert_request()
228 switch (OSSL_CMP_MSG_get_bodytype(req)) { in process_cert_request()
244 if (OSSL_CMP_MSG_get_bodytype(req) == OSSL_CMP_PKIBODY_P10CR) { in process_cert_request()
246 p10cr = req->body->value.p10cr; in process_cert_request()
248 OSSL_CRMF_MSGS *reqs = req->body->value.ir; /* same for cr and kur */ in process_cert_request()
266 if (!ossl_cmp_verify_popo(srv_ctx->ctx, req, srv_ctx->acceptRAVerified)) { in process_cert_request()
274 OSSL_CMP_PKIHEADER *hdr = OSSL_CMP_MSG_get0_header(req); in process_cert_request()
276 si = srv_ctx->process_cert_request(srv_ctx, req, certReqId, crm, p10cr, in process_cert_request()
308 const OSSL_CMP_MSG *req) in process_rr() argument
318 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_rr()
321 if (sk_OSSL_CMP_REVDETAILS_num(req->body->value.rr) != 1) { in process_rr()
325 details = sk_OSSL_CMP_REVDETAILS_value(req->body->value.rr, 0); in process_rr()
337 if ((si = srv_ctx->process_rr(srv_ctx, req, issuer, serial)) == NULL) in process_rr()
355 const OSSL_CMP_MSG *req) in process_genm() argument
360 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_genm()
363 if (!srv_ctx->process_genm(srv_ctx, req, req->body->value.genm, &itavs)) in process_genm()
372 const OSSL_CMP_MSG *req) in process_error() argument
377 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_error()
379 errorContent = req->body->value.error; in process_error()
380 srv_ctx->process_error(srv_ctx, req, errorContent->pKIStatusInfo, in process_error()
389 const OSSL_CMP_MSG *req) in process_certConf() argument
397 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_certConf()
401 ccc = req->body->value.certConf; in process_certConf()
427 if (!srv_ctx->process_certConf(srv_ctx, req, certReqId, certHash, si)) in process_certConf()
448 const OSSL_CMP_MSG *req) in process_non_polling_request() argument
452 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL in process_non_polling_request()
453 && req->body != NULL)) in process_non_polling_request()
456 switch (OSSL_CMP_MSG_get_bodytype(req)) { in process_non_polling_request()
464 rsp = process_cert_request(srv_ctx, req); in process_non_polling_request()
470 rsp = process_rr(srv_ctx, req); in process_non_polling_request()
476 rsp = process_genm(srv_ctx, req); in process_non_polling_request()
482 rsp = process_error(srv_ctx, req); in process_non_polling_request()
488 rsp = process_certConf(srv_ctx, req); in process_non_polling_request()
503 const OSSL_CMP_MSG *req) in process_pollReq() argument
512 if (!ossl_assert(srv_ctx != NULL && srv_ctx->ctx != NULL && req != NULL)) in process_pollReq()
520 prc = req->body->value.pollReq; in process_pollReq()
528 if (!srv_ctx->process_pollReq(srv_ctx, req, certReqId, in process_pollReq()
549 const OSSL_CMP_MSG *req, in unprotected_exception() argument
553 if (!ossl_assert(ctx != NULL && req != NULL)) in unprotected_exception()
561 if (OSSL_CMP_MSG_get_bodytype(req) == OSSL_CMP_PKIBODY_ERROR in unprotected_exception()
573 const OSSL_CMP_MSG *req) in OSSL_CMP_SRV_process_request() argument
583 || req == NULL || req->body == NULL in OSSL_CMP_SRV_process_request()
584 || (hdr = OSSL_CMP_MSG_get0_header(req)) == NULL) { in OSSL_CMP_SRV_process_request()
590 req_type = OSSL_CMP_MSG_get_bodytype(req); in OSSL_CMP_SRV_process_request()
650 req_verified = ossl_cmp_msg_check_update(ctx, req, unprotected_exception, in OSSL_CMP_SRV_process_request()
662 rsp = process_pollReq(srv_ctx, req); in OSSL_CMP_SRV_process_request()
665 && (rsp = delayed_delivery(srv_ctx, req)) != NULL) { in OSSL_CMP_SRV_process_request()
668 rsp = process_non_polling_request(srv_ctx, req); in OSSL_CMP_SRV_process_request()
754 const OSSL_CMP_MSG *req) in OSSL_CMP_CTX_server_perform() argument
758 if (client_ctx == NULL || req == NULL) { in OSSL_CMP_CTX_server_perform()
768 return OSSL_CMP_SRV_process_request(srv_ctx, req); in OSSL_CMP_CTX_server_perform()