Compute the day and second difference between two ASN.1 time values.
Declared in <openssl/asn1.h>
int
ASN1_TIME_diff(
int* pday,
int* psec,
ASN1_TIME const* from,
ASN1_TIME const* to);
1 on success, or 0 if either time is invalid.
| Name | Description |
|---|---|
| pday | Receives the whole-day difference (to minus from); may be NULL. |
| psec | Receives the remaining seconds difference beyond pday; may be NULL. |
| from | Starting time. |
| to | Ending time. |