summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-25 16:41:29 +0000
committertb <>2023-04-25 16:41:29 +0000
commit766569e18d98adffa5a2bdb21a1e45a921ead53f (patch)
tree14db9b6af740f0f969c5bab117ccbffced715568 /src/lib
parent9a06356d91b9d9bf5d8ff267b7ba5dec486bdc29 (diff)
downloadopenbsd-766569e18d98adffa5a2bdb21a1e45a921ead53f.tar.gz
openbsd-766569e18d98adffa5a2bdb21a1e45a921ead53f.tar.bz2
openbsd-766569e18d98adffa5a2bdb21a1e45a921ead53f.zip
Remove the no longer used BN_CTX_init()
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/bn/bn.h8
-rw-r--r--src/lib/libcrypto/bn/bn_ctx.c8
2 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 53b109bd8a..fae8df5d90 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn.h,v 1.62 2023/04/19 10:51:22 jsing Exp $ */ 1/* $OpenBSD: bn.h,v 1.63 2023/04/25 16:41:29 tb Exp $ */
2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -341,12 +341,6 @@ void BN_zero_ex(BIGNUM *a);
341const BIGNUM *BN_value_one(void); 341const BIGNUM *BN_value_one(void);
342char * BN_options(void); 342char * BN_options(void);
343BN_CTX *BN_CTX_new(void); 343BN_CTX *BN_CTX_new(void);
344#ifndef OPENSSL_NO_DEPRECATED
345/* Remove in next major bump. */
346#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL)
347void BN_CTX_init(BN_CTX *c);
348#endif
349#endif
350void BN_CTX_free(BN_CTX *c); 344void BN_CTX_free(BN_CTX *c);
351void BN_CTX_start(BN_CTX *ctx); 345void BN_CTX_start(BN_CTX *ctx);
352BIGNUM *BN_CTX_get(BN_CTX *ctx); 346BIGNUM *BN_CTX_get(BN_CTX *ctx);
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c
index 5b05e01878..357eda1783 100644
--- a/src/lib/libcrypto/bn/bn_ctx.c
+++ b/src/lib/libcrypto/bn/bn_ctx.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_ctx.c,v 1.20 2023/01/14 15:23:27 jsing Exp $ */ 1/* $OpenBSD: bn_ctx.c,v 1.21 2023/04/25 16:41:29 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2023 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -72,12 +72,6 @@ BN_CTX_new(void)
72} 72}
73 73
74void 74void
75BN_CTX_init(BN_CTX *bctx)
76{
77 memset(bctx, 0, sizeof(*bctx));
78}
79
80void
81BN_CTX_free(BN_CTX *bctx) 75BN_CTX_free(BN_CTX *bctx)
82{ 76{
83 size_t i; 77 size_t i;