summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ts/ts.h')
-rw-r--r--src/lib/libcrypto/ts/ts.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h
index 085e062b96..eb160b0e4d 100644
--- a/src/lib/libcrypto/ts/ts.h
+++ b/src/lib/libcrypto/ts/ts.h
@@ -473,7 +473,7 @@ typedef ASN1_INTEGER *(*TS_serial_cb)(struct TS_resp_ctx *, void *);
473/* This must return the seconds and microseconds since Jan 1, 1970 in 473/* This must return the seconds and microseconds since Jan 1, 1970 in
474 the sec and usec variables allocated by the caller. 474 the sec and usec variables allocated by the caller.
475 Return non-zero for success and zero for failure. */ 475 Return non-zero for success and zero for failure. */
476typedef int (*TS_time_cb)(struct TS_resp_ctx *, void *, long *sec, long *usec); 476typedef int (*TS_time_cb)(struct TS_resp_ctx *, void *, time_t *sec, long *usec);
477 477
478/* This must process the given extension. 478/* This must process the given extension.
479 * It can modify the TS_TST_INFO object of the context. 479 * It can modify the TS_TST_INFO object of the context.
@@ -556,9 +556,6 @@ void TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);
556/* Default callback always returns a constant. */ 556/* Default callback always returns a constant. */
557void TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data); 557void TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data);
558 558
559/* Default callback uses the gettimeofday() and gmtime() system calls. */
560void TS_RESP_CTX_set_time_cb(TS_RESP_CTX *ctx, TS_time_cb cb, void *data);
561
562/* Default callback rejects all extensions. The extension callback is called 559/* Default callback rejects all extensions. The extension callback is called
563 * when the TS_TST_INFO object is already set up and not signed yet. */ 560 * when the TS_TST_INFO object is already set up and not signed yet. */
564/* FIXME: extension handling is not tested yet. */ 561/* FIXME: extension handling is not tested yet. */