From: tb Date: Tue, 25 Apr 2023 16:41:29 +0000 (+0000) Subject: Remove the no longer used BN_CTX_init() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=36a3f2eb879dda7db365e08bb59b4c604ea10e5e;p=openbsd Remove the no longer used BN_CTX_init() ok jsing --- diff --git a/lib/libcrypto/bn/bn.h b/lib/libcrypto/bn/bn.h index 53b109bd8af..fae8df5d904 100644 --- a/lib/libcrypto/bn/bn.h +++ b/lib/libcrypto/bn/bn.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn.h,v 1.62 2023/04/19 10:51:22 jsing Exp $ */ +/* $OpenBSD: bn.h,v 1.63 2023/04/25 16:41:29 tb Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -341,12 +341,6 @@ void BN_zero_ex(BIGNUM *a); const BIGNUM *BN_value_one(void); char * BN_options(void); BN_CTX *BN_CTX_new(void); -#ifndef OPENSSL_NO_DEPRECATED -/* Remove in next major bump. */ -#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) -void BN_CTX_init(BN_CTX *c); -#endif -#endif void BN_CTX_free(BN_CTX *c); void BN_CTX_start(BN_CTX *ctx); BIGNUM *BN_CTX_get(BN_CTX *ctx); diff --git a/lib/libcrypto/bn/bn_ctx.c b/lib/libcrypto/bn/bn_ctx.c index 5b05e01878d..357eda17834 100644 --- a/lib/libcrypto/bn/bn_ctx.c +++ b/lib/libcrypto/bn/bn_ctx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_ctx.c,v 1.20 2023/01/14 15:23:27 jsing Exp $ */ +/* $OpenBSD: bn_ctx.c,v 1.21 2023/04/25 16:41:29 tb Exp $ */ /* * Copyright (c) 2023 Joel Sing * @@ -71,12 +71,6 @@ BN_CTX_new(void) return calloc(1, sizeof(struct bignum_ctx)); } -void -BN_CTX_init(BN_CTX *bctx) -{ - memset(bctx, 0, sizeof(*bctx)); -} - void BN_CTX_free(BN_CTX *bctx) {