Lines Matching refs:sleep
242 * value if sleep == 0, else it sleeps as long as indicated and retries.
248 * Returns -1 on receiving pollRep if sleep == 0, setting the checkAfter value.
253 static int poll_for_response(OSSL_CMP_CTX *ctx, int sleep, int rid,
290 > (sleep ? ULONG_MAX / 1000 : INT_MAX)) {
333 if (sleep) {
555 * Returns -1 on receiving pollRep if sleep == 0, setting the checkAfter value.
560 static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid,
599 if ((ret = poll_for_response(ctx, sleep, rid, resp, checkAfter)) != 0) {
600 if (ret == -1) /* at this point implies sleep == 0 */
713 res = poll_for_response(ctx, 0 /* no sleep */, rid, &rep, checkAfter);
717 res = cert_response(ctx, 0 /* no sleep */, rid, &rep, checkAfter,
728 * Will sleep as long as indicated by the server (according to checkAfter).
750 if (cert_response(ctx, 1 /* sleep */, rid, &rep, NULL, req_type, rep_type)