Lines Matching refs:rid
119 static int is_crep_with_waiting(const OSSL_CMP_MSG *resp, int rid) in is_crep_with_waiting() argument
129 crep = ossl_cmp_certrepmessage_get0_certresponse(crepmsg, rid); in is_crep_with_waiting()
282 static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in poll_for_response() argument
292 if ((preq = ossl_cmp_pollReq_new(ctx, rid)) == NULL) in poll_for_response()
310 pollRep = ossl_cmp_pollrepcontent_get0_pollrep(prc, rid); in poll_for_response()
369 } else if (is_crep_with_waiting(prep, rid) 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()
654 static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid, in cert_response() argument
682 crep = ossl_cmp_certrepmessage_get0_certresponse(crepmsg, rid); in cert_response()
687 if (rid == OSSL_CMP_CERTREQID_NONE) { in cert_response()
689 rid = ossl_cmp_asn1_get_int(crep->certReqId); in cert_response()
690 if (rid < OSSL_CMP_CERTREQID_NONE) { in cert_response()
713 if ((ret = poll_for_response(ctx, sleep, rid, resp, checkAfter)) != 0) { in cert_response()
783 if (!ossl_cmp_exchange_certConf(ctx, rid, fail_info, txt)) in cert_response()
825 int rid = is_p10 ? OSSL_CMP_CERTREQID_NONE : OSSL_CMP_CERTREQID; in OSSL_CMP_try_certreq() local
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()
869 int rid = is_p10 ? OSSL_CMP_CERTREQID_NONE : OSSL_CMP_CERTREQID; in OSSL_CMP_exec_certreq() local
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()