summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-25 17:52:54 +0000
committertb <>2023-04-25 17:52:54 +0000
commitc21d6e0b7e6ae815e6d53394e30671234a4f9864 (patch)
tree1be7feda66d288d739314a29c9374897df43917a
parent2f8f1e0023bc4ce676a027be79712b1001d283bc (diff)
downloadopenbsd-c21d6e0b7e6ae815e6d53394e30671234a4f9864.tar.gz
openbsd-c21d6e0b7e6ae815e6d53394e30671234a4f9864.tar.bz2
openbsd-c21d6e0b7e6ae815e6d53394e30671234a4f9864.zip
Remove TS_VERIFY_CTX_init()
-rw-r--r--src/lib/libcrypto/ts/ts.h5
-rw-r--r--src/lib/libcrypto/ts/ts_verify_ctx.c8
2 files changed, 2 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ts/ts.h b/src/lib/libcrypto/ts/ts.h
index a7d0131e2d..6021a309f7 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.20 2023/04/16 08:31:54 tb Exp $ */ 1/* $OpenBSD: ts.h,v 1.21 2023/04/25 17:52:54 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 */
@@ -487,9 +487,6 @@ int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token);
487 487
488/* Set all fields to zero. */ 488/* Set all fields to zero. */
489TS_VERIFY_CTX *TS_VERIFY_CTX_new(void); 489TS_VERIFY_CTX *TS_VERIFY_CTX_new(void);
490#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
491void TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx);
492#endif
493void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx); 490void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx);
494void TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx); 491void TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx);
495 492
diff --git a/src/lib/libcrypto/ts/ts_verify_ctx.c b/src/lib/libcrypto/ts/ts_verify_ctx.c
index 2a3b1c316d..a7b90f9e4c 100644
--- a/src/lib/libcrypto/ts/ts_verify_ctx.c
+++ b/src/lib/libcrypto/ts/ts_verify_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ts_verify_ctx.c,v 1.12 2023/03/31 17:47:39 tb Exp $ */ 1/* $OpenBSD: ts_verify_ctx.c,v 1.13 2023/04/25 17:52:54 tb Exp $ */
2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL 2/* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL
3 * project 2003. 3 * project 2003.
4 */ 4 */
@@ -76,12 +76,6 @@ TS_VERIFY_CTX_new(void)
76} 76}
77 77
78void 78void
79TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx)
80{
81 memset(ctx, 0, sizeof(TS_VERIFY_CTX));
82}
83
84void
85TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx) 79TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx)
86{ 80{
87 if (!ctx) 81 if (!ctx)