summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-04-15 15:40:09 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-04-15 15:40:09 +0000
commit5e9d8a61a790b171fb7f5082e81b1b6f26dfd55d (patch)
treea2b7ee629a8c56202192ffdc12397d3edeee3b23
parent562339e5dd1336f903ba3b5fbe380616de05f6f8 (diff)
Move BIO_CONNECT_{new,free}() to internal-only
ok jsing
-rw-r--r--lib/libcrypto/Symbols.list2
-rw-r--r--lib/libcrypto/bio/bss_conn.c10
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/libcrypto/Symbols.list b/lib/libcrypto/Symbols.list
index 9327ca0bfb2..36bf47c4ebb 100644
--- a/lib/libcrypto/Symbols.list
+++ b/lib/libcrypto/Symbols.list
@@ -217,8 +217,6 @@ BF_encrypt
BF_ofb64_encrypt
BF_set_key
BIGNUM_it
-BIO_CONNECT_free
-BIO_CONNECT_new
BIO_accept
BIO_callback_ctrl
BIO_clear_flags
diff --git a/lib/libcrypto/bio/bss_conn.c b/lib/libcrypto/bio/bss_conn.c
index 427bd4b9edf..b4516afa2df 100644
--- a/lib/libcrypto/bio/bss_conn.c
+++ b/lib/libcrypto/bio/bss_conn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bss_conn.c,v 1.39 2023/07/07 19:37:53 beck Exp $ */
+/* $OpenBSD: bss_conn.c,v 1.40 2024/04/15 15:40:08 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -105,8 +105,8 @@ static long conn_callback_ctrl(BIO *h, int cmd, BIO_info_cb *);
static int conn_state(BIO *b, BIO_CONNECT *c);
static void conn_close_socket(BIO *data);
-BIO_CONNECT *BIO_CONNECT_new(void);
-void BIO_CONNECT_free(BIO_CONNECT *a);
+static BIO_CONNECT *BIO_CONNECT_new(void);
+static void BIO_CONNECT_free(BIO_CONNECT *a);
static const BIO_METHOD methods_connectp = {
.type = BIO_TYPE_CONNECT,
@@ -289,7 +289,7 @@ end:
return (ret);
}
-BIO_CONNECT *
+static BIO_CONNECT *
BIO_CONNECT_new(void)
{
BIO_CONNECT *ret;
@@ -310,7 +310,7 @@ BIO_CONNECT_new(void)
return (ret);
}
-void
+static void
BIO_CONNECT_free(BIO_CONNECT *a)
{
if (a == NULL)