From 7776dc199eae7efeaa750dafcbf39f2947cddb12 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 25 Apr 2023 17:52:54 +0000 Subject: [PATCH] Remove TS_VERIFY_CTX_init() --- lib/libcrypto/ts/ts.h | 5 +---- lib/libcrypto/ts/ts_verify_ctx.c | 8 +------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/lib/libcrypto/ts/ts.h b/lib/libcrypto/ts/ts.h index a7d0131e2df..6021a309f75 100644 --- a/lib/libcrypto/ts/ts.h +++ b/lib/libcrypto/ts/ts.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ts.h,v 1.20 2023/04/16 08:31:54 tb Exp $ */ +/* $OpenBSD: ts.h,v 1.21 2023/04/25 17:52:54 tb Exp $ */ /* Written by Zoltan Glozik (zglozik@opentsa.org) for the OpenSSL * project 2002, 2003, 2004. */ @@ -487,9 +487,6 @@ int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token); /* Set all fields to zero. */ TS_VERIFY_CTX *TS_VERIFY_CTX_new(void); -#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) -void TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx); -#endif void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx); void TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx); diff --git a/lib/libcrypto/ts/ts_verify_ctx.c b/lib/libcrypto/ts/ts_verify_ctx.c index 2a3b1c316d1..a7b90f9e4cf 100644 --- a/lib/libcrypto/ts/ts_verify_ctx.c +++ b/lib/libcrypto/ts/ts_verify_ctx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ts_verify_ctx.c,v 1.12 2023/03/31 17:47:39 tb Exp $ */ +/* $OpenBSD: ts_verify_ctx.c,v 1.13 2023/04/25 17:52:54 tb Exp $ */ /* Written by Zoltan Glozik (zglozik@stones.com) for the OpenSSL * project 2003. */ @@ -75,12 +75,6 @@ TS_VERIFY_CTX_new(void) return ctx; } -void -TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx) -{ - memset(ctx, 0, sizeof(TS_VERIFY_CTX)); -} - void TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx) { -- 2.20.1