ASN1_TIME_diff

Compute the day and second difference between two ASN.1 time values.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TIME_diff(
    int* pday,
    int* psec,
    ASN1_TIME const* from,
    ASN1_TIME const* to);

Return Value

1 on success, or 0 if either time is invalid.

Parameters

NameDescription
pdayReceives the whole-day difference (to minus from); may be NULL.
psecReceives the remaining seconds difference beyond pday; may be NULL.
fromStarting time.
toEnding time.