ASN1_TIME_check

Check that an ASN1_TIME value has valid UTCTime or GeneralizedTime syntax.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_check(ASN1_TIME const* t);

Return Value

1 if the encoding is syntactically valid, or 0 otherwise.

Parameters

NameDescription
tTime value to validate.