Lines Matching refs:rep
32 const OSSL_CMP_MSG *rep, in unprotected_exception() argument
36 int rcvd_type = OSSL_CMP_MSG_get_bodytype(rep /* may be NULL */); in unprotected_exception()
39 if (!ossl_assert(ctx != NULL && rep != NULL)) in unprotected_exception()
52 ossl_cmp_revrepcontent_get_pkisi(rep->body->value.rp, in unprotected_exception()
67 OSSL_CMP_CERTREPMESSAGE *crepmsg = rep->body->value.ip; in unprotected_exception()
143 OSSL_CMP_MSG **rep, int expected_type) in send_receive_check() argument
161 *rep = NULL; in send_receive_check()
186 *rep = (*transfer_cb)(ctx, req); in send_receive_check()
189 if (*rep == NULL) { in send_receive_check()
198 bt = OSSL_CMP_MSG_get_bodytype(*rep); in send_receive_check()
205 ossl_cmp_is_error_with_waiting(*rep) ? " (waiting)" : ""); in send_receive_check()
209 && !ossl_cmp_ctx_set1_extraCertsIn(ctx, (*rep)->extraCerts)) in send_receive_check()
212 if (!ossl_cmp_msg_check_update(ctx, *rep, unprotected_exception, in send_receive_check()
226 : ossl_cmp_is_error_with_waiting(*rep))) in send_receive_check()
237 OSSL_CMP_ERRORMSGCONTENT *emc = (*rep)->body->value.error; in send_receive_check()
283 OSSL_CMP_MSG **rep, int *checkAfter) in poll_for_response() argument
290 *rep = NULL; in poll_for_response()
389 *rep = prep; in poll_for_response()
400 const OSSL_CMP_MSG *rep, int rid) in save_senderNonce_if_waiting() argument
407 if ((is_crep_with_waiting(rep, rid) in save_senderNonce_if_waiting()
408 || ossl_cmp_is_error_with_waiting(rep)) in save_senderNonce_if_waiting()
420 OSSL_CMP_MSG **rep, int expected_type) in send_receive_also_delayed() argument
423 if (!send_receive_check(ctx, req, rep, expected_type)) in send_receive_also_delayed()
426 if (ossl_cmp_is_error_with_waiting(*rep)) { in send_receive_also_delayed()
427 if (!save_senderNonce_if_waiting(ctx, *rep, OSSL_CMP_CERTREQID_NONE)) in send_receive_also_delayed()
431 && !save_statusInfo(ctx, (*rep)->body->value.error->pKIStatusInfo)) in send_receive_also_delayed()
434 OSSL_CMP_MSG_free(*rep); in send_receive_also_delayed()
435 *rep = NULL; in send_receive_also_delayed()
438 rep, NULL /* checkAfter */) <= 0) { in send_receive_also_delayed()
443 if (OSSL_CMP_MSG_get_bodytype(*rep) != expected_type) { in send_receive_also_delayed()
823 OSSL_CMP_MSG *rep = NULL; in OSSL_CMP_try_certreq() local
835 if (!initial_certreq(ctx, req_type, crm, &rep, rep_type)) in OSSL_CMP_try_certreq()
838 if (!save_senderNonce_if_waiting(ctx, rep, rid)) in OSSL_CMP_try_certreq()
845 res = poll_for_response(ctx, 0 /* no sleep */, rid, &rep, checkAfter); in OSSL_CMP_try_certreq()
849 res = cert_response(ctx, 0 /* no sleep */, rid, &rep, checkAfter, in OSSL_CMP_try_certreq()
853 OSSL_CMP_MSG_free(rep); in OSSL_CMP_try_certreq()
867 OSSL_CMP_MSG *rep = NULL; in OSSL_CMP_exec_certreq() local
878 if (!initial_certreq(ctx, req_type, crm, &rep, rep_type)) in OSSL_CMP_exec_certreq()
881 if (!save_senderNonce_if_waiting(ctx, rep, rid)) in OSSL_CMP_exec_certreq()
884 if (cert_response(ctx, 1 /* sleep */, rid, &rep, NULL, req_type, rep_type) in OSSL_CMP_exec_certreq()
890 OSSL_CMP_MSG_free(rep); in OSSL_CMP_exec_certreq()