summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ts/ts.h
diff options
context:
space:
mode:
authortb <>2022-07-24 20:02:04 +0000
committertb <>2022-07-24 20:02:04 +0000
commit85f79c66f0901408d7c8da4194b0fbf892a490b6 (patch)
tree0df3bde400a7dd79b930be9f50af9b5fb6bd04d2 /src/lib/libcrypto/ts/ts.h
parentd8527f944e5dcafa2687d0ebff33a09f762af6e8 (diff)
downloadopenbsd-85f79c66f0901408d7c8da4194b0fbf892a490b6.tar.gz
openbsd-85f79c66f0901408d7c8da4194b0fbf892a490b6.tar.bz2
openbsd-85f79c66f0901408d7c8da4194b0fbf892a490b6.zip
Prepare to resurrect TS_RESP_CTX_set_time_cb()
This was removed shortly after the fork since TS is not 2038-ready and since there were no consumers of this API. Now there are consumers and they add it themselves if it's missing from libcrypto. This will no longer be possible with opaque TS structs, so begrudgingly add it back. ok jsing kn
Diffstat (limited to 'src/lib/libcrypto/ts/ts.h')
-rw-r--r--src/lib/libcrypto/ts/ts.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h
index 83bd6829ae..0397fb8b08 100644
--- a/src/lib/libcrypto/ts/ts.h
+++ b/src/lib/libcrypto/ts/ts.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts.h,v 1.17 2022/07/24 19:54:46 tb Exp $ */ 1/* $OpenBSD: ts.h,v 1.18 2022/07/24 20:02:04 tb Exp $ */
2/* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL
3 * project 2002, 2003, 2004. 3 * project 2002, 2003, 2004.
4 */ 4 */
@@ -567,6 +567,11 @@ void TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);
567/* Default callback always returns a constant. */ 567/* Default callback always returns a constant. */
568void TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data); 568void TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data);
569 569
570#if defined(LIBRESSL_INTERNAL)
571/* Default callback uses gettimeofday() and gmtime(). */
572void TS_RESP_CTX_set_time_cb(TS_RESP_CTX *ctx, TS_time_cb cb, void *data);
573#endif
574
570/* Default callback rejects all extensions. The extension callback is called 575/* Default callback rejects all extensions. The extension callback is called
571 * when the TS_TST_INFO object is already set up and not signed yet. */ 576 * when the TS_TST_INFO object is already set up and not signed yet. */
572/* FIXME: extension handling is not tested yet. */ 577/* FIXME: extension handling is not tested yet. */