From 2c5808653fa0d563b5f341caa86dd3f3acc8f5cc Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 09:22:41 +0000 Subject: Remove BIO_set() This used to be a dangerous implementation detail of BIO_new() that was never used outside of libcrypto. ok jsing --- src/lib/libcrypto/bio/bio_lib.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/lib/libcrypto/bio/bio_lib.c') diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index c90dd161f8..2f490a42f9 100644 --- a/src/lib/libcrypto/bio/bio_lib.c +++ b/src/lib/libcrypto/bio/bio_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_lib.c,v 1.51 2024/02/17 14:29:07 jsing Exp $ */ +/* $OpenBSD: bio_lib.c,v 1.52 2024/03/02 09:22:41 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -160,14 +160,6 @@ BIO_new(const BIO_METHOD *method) } LCRYPTO_ALIAS(BIO_new); -int -BIO_set(BIO *bio, const BIO_METHOD *method) -{ - BIOerror(ERR_R_DISABLED); - return 0; -} -LCRYPTO_ALIAS(BIO_set); - int BIO_free(BIO *bio) { -- cgit v1.2.3-55-g6feb