summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-03-31 17:47:39 +0000
committertb <>2023-03-31 17:47:39 +0000
commit8426f9394fc16a7f7fc4534731737708228335b4 (patch)
tree5c13f551db77d0fd575effa1b5988a53fa3e0b98 /src
parent25a20dbee47e2778717afc53f5d438b40d543256 (diff)
downloadopenbsd-8426f9394fc16a7f7fc4534731737708228335b4.tar.gz
openbsd-8426f9394fc16a7f7fc4534731737708228335b4.tar.bz2
openbsd-8426f9394fc16a7f7fc4534731737708228335b4.zip
Inline only use of TS_VERIFY_CTX_init()
Since TS_VERIFY_CTX is now opaque, the only thing TS_VERIFY_CTX_init() is good for outside the library is memory leaks. Inside the library it's also useless, since as a much more familiar name is memset(). It will soon be able to join all the other nonsense that should never have leaked out of this library.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ts/ts_verify_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_verify_ctx.c b/src/lib/libcrypto/ts/ts_verify_ctx.c
index ef0ec6ca7f..2a3b1c316d 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.11 2022/07/24 19:54:46 tb Exp $ */ 1/* $OpenBSD: ts_verify_ctx.c,v 1.12 2023/03/31 17:47:39 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 */
@@ -111,7 +111,7 @@ TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx)
111 111
112 GENERAL_NAME_free(ctx->tsa_name); 112 GENERAL_NAME_free(ctx->tsa_name);
113 113
114 TS_VERIFY_CTX_init(ctx); 114 memset(ctx, 0, sizeof(*ctx));
115} 115}
116 116
117/* 117/*