OSSL_CRMF_MSG_set0_validity

Set optional validity times in the certTemplate of a CRMF CertReqMsg.

Synopsis

Declared in <openssl/crmf.h>

int
OSSL_CRMF_MSG_set0_validity(
    OSSL_CRMF_MSG* crm,
    ASN1_TIME* notBefore,
    ASN1_TIME* notAfter);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
crmCertReqMsg to update.
notBeforeOptional notBefore time; ownership transfers when non-NULL.
notAfterOptional notAfter time; ownership transfers when non-NULL.