TS_time_cb

Callback that supplies the current time for TSTInfo genTime.

Synopsis

Declared in <openssl/ts.h>

typedef int(* TS_time_cb)(TS_resp_ctx*, void*, long*, long*);

Return Value

Nonzero on success, or 0 on failure.

Parameters

NameDescription
ctxResponse context requesting the time.
dataApplication pointer supplied to TS_RESP_CTX_set_time_cb().
secOutput seconds since 1970-01-01 00:00:00 UTC.
usecOutput microseconds in [0, 999999].