diff options
author | tb <> | 2024-03-02 09:22:41 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:22:41 +0000 |
commit | 2c5808653fa0d563b5f341caa86dd3f3acc8f5cc (patch) | |
tree | 781f27a5e7e92463767b94f1fa6ebcb6e603461c | |
parent | 677a66d025419307bc6e760f1bcd514a0f43a3fd (diff) | |
download | openbsd-2c5808653fa0d563b5f341caa86dd3f3acc8f5cc.tar.gz openbsd-2c5808653fa0d563b5f341caa86dd3f3acc8f5cc.tar.bz2 openbsd-2c5808653fa0d563b5f341caa86dd3f3acc8f5cc.zip |
Remove BIO_set()
This used to be a dangerous implementation detail of BIO_new() that was
never used outside of libcrypto.
ok jsing
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/bio.h | 3 |
5 files changed, 3 insertions, 15 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index be54be2f0b..19f88c6917 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -315,7 +315,6 @@ BIO_s_log | |||
315 | BIO_s_mem | 315 | BIO_s_mem |
316 | BIO_s_null | 316 | BIO_s_null |
317 | BIO_s_socket | 317 | BIO_s_socket |
318 | BIO_set | ||
319 | BIO_set_callback | 318 | BIO_set_callback |
320 | BIO_set_callback_arg | 319 | BIO_set_callback_arg |
321 | BIO_set_callback_ex | 320 | BIO_set_callback_ex |
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace index 430c11636e..e97629108a 100644 --- a/src/lib/libcrypto/Symbols.namespace +++ b/src/lib/libcrypto/Symbols.namespace | |||
@@ -1145,7 +1145,6 @@ _libre_BIO_s_file | |||
1145 | _libre_BIO_new_file | 1145 | _libre_BIO_new_file |
1146 | _libre_BIO_new_fp | 1146 | _libre_BIO_new_fp |
1147 | _libre_BIO_new | 1147 | _libre_BIO_new |
1148 | _libre_BIO_set | ||
1149 | _libre_BIO_free | 1148 | _libre_BIO_free |
1150 | _libre_BIO_up_ref | 1149 | _libre_BIO_up_ref |
1151 | _libre_BIO_get_data | 1150 | _libre_BIO_get_data |
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index bf1be3650c..a50fb16342 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.62 2024/03/02 09:21:24 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.63 2024/03/02 09:22:41 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -534,7 +534,6 @@ const BIO_METHOD *BIO_s_file(void); | |||
534 | BIO *BIO_new_file(const char *filename, const char *mode); | 534 | BIO *BIO_new_file(const char *filename, const char *mode); |
535 | BIO *BIO_new_fp(FILE *stream, int close_flag); | 535 | BIO *BIO_new_fp(FILE *stream, int close_flag); |
536 | BIO *BIO_new(const BIO_METHOD *type); | 536 | BIO *BIO_new(const BIO_METHOD *type); |
537 | int BIO_set(BIO *a, const BIO_METHOD *type); | ||
538 | int BIO_free(BIO *a); | 537 | int BIO_free(BIO *a); |
539 | int BIO_up_ref(BIO *bio); | 538 | int BIO_up_ref(BIO *bio); |
540 | void *BIO_get_data(BIO *a); | 539 | void *BIO_get_data(BIO *a); |
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 @@ | |||
1 | /* $OpenBSD: bio_lib.c,v 1.51 2024/02/17 14:29:07 jsing Exp $ */ | 1 | /* $OpenBSD: bio_lib.c,v 1.52 2024/03/02 09:22:41 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -161,14 +161,6 @@ BIO_new(const BIO_METHOD *method) | |||
161 | LCRYPTO_ALIAS(BIO_new); | 161 | LCRYPTO_ALIAS(BIO_new); |
162 | 162 | ||
163 | int | 163 | int |
164 | BIO_set(BIO *bio, const BIO_METHOD *method) | ||
165 | { | ||
166 | BIOerror(ERR_R_DISABLED); | ||
167 | return 0; | ||
168 | } | ||
169 | LCRYPTO_ALIAS(BIO_set); | ||
170 | |||
171 | int | ||
172 | BIO_free(BIO *bio) | 164 | BIO_free(BIO *bio) |
173 | { | 165 | { |
174 | int ret; | 166 | int ret; |
diff --git a/src/lib/libcrypto/hidden/openssl/bio.h b/src/lib/libcrypto/hidden/openssl/bio.h index 4d7577a2fe..425d1e2941 100644 --- a/src/lib/libcrypto/hidden/openssl/bio.h +++ b/src/lib/libcrypto/hidden/openssl/bio.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio.h,v 1.6 2024/03/02 09:21:24 tb Exp $ */ | 1 | /* $OpenBSD: bio.h,v 1.7 2024/03/02 09:22:41 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -68,7 +68,6 @@ LCRYPTO_USED(BIO_s_file); | |||
68 | LCRYPTO_USED(BIO_new_file); | 68 | LCRYPTO_USED(BIO_new_file); |
69 | LCRYPTO_USED(BIO_new_fp); | 69 | LCRYPTO_USED(BIO_new_fp); |
70 | LCRYPTO_USED(BIO_new); | 70 | LCRYPTO_USED(BIO_new); |
71 | LCRYPTO_USED(BIO_set); | ||
72 | LCRYPTO_USED(BIO_free); | 71 | LCRYPTO_USED(BIO_free); |
73 | LCRYPTO_USED(BIO_up_ref); | 72 | LCRYPTO_USED(BIO_up_ref); |
74 | LCRYPTO_USED(BIO_get_data); | 73 | LCRYPTO_USED(BIO_get_data); |