From: tb Date: Mon, 15 Apr 2024 15:40:08 +0000 (+0000) Subject: Move BIO_CONNECT_{new,free}() to internal-only X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2054f1f1b3b540d8793bf5efb622237f7fafa1c1;p=openbsd Move BIO_CONNECT_{new,free}() to internal-only ok jsing --- 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)