OSSL_CMP_try_certreq

Start or continue a deferred CMP certificate request (pollReq flow).

Synopsis

Declared in <openssl/cmp.h>

int
OSSL_CMP_try_certreq(
    OSSL_CMP_CTX* ctx,
    int req_type,
    OSSL_CRMF_MSG const* crm,
    int* checkAfter);

Return Value

1 if the certificate is ready, 0 if polling should continue, or -1 on error.

Parameters

NameDescription
ctxCMP client context.
req_typeBody type (OSSL_CMP_IR, OSSL_CMP_CR, OSSL_CMP_KUR, or OSSL_CMP_P10CR).
crmOptional CRMF message for IR/CR/KUR.
checkAfterReceives server-suggested poll interval when the request is pending.