diff options
Diffstat (limited to 'src/lib/libcrypto/bio')
-rw-r--r-- | src/lib/libcrypto/bio/b_dump.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/b_posix.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/b_print.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bf_buff.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bf_nbio.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bf_null.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_cb.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_err.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 52 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bio_meth.c | 20 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_acpt.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_bio.c | 11 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_conn.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_dgram.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_fd.c | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_file.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_log.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_mem.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_null.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bio/bss_sock.c | 7 |
21 files changed, 149 insertions, 24 deletions
diff --git a/src/lib/libcrypto/bio/b_dump.c b/src/lib/libcrypto/bio/b_dump.c index 61a83fc44b..70bb9882f3 100644 --- a/src/lib/libcrypto/bio/b_dump.c +++ b/src/lib/libcrypto/bio/b_dump.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: b_dump.c,v 1.23 2022/10/17 18:26:41 jsing Exp $ */ | 1 | /* $OpenBSD: b_dump.c,v 1.24 2023/07/05 21:23:37 beck 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 | * |
@@ -75,6 +75,7 @@ BIO_dump_cb(int (*cb)(const void *data, size_t len, void *u), | |||
75 | { | 75 | { |
76 | return BIO_dump_indent_cb(cb, u, s, len, 0); | 76 | return BIO_dump_indent_cb(cb, u, s, len, 0); |
77 | } | 77 | } |
78 | LCRYPTO_ALIAS(BIO_dump_cb); | ||
78 | 79 | ||
79 | int | 80 | int |
80 | BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | 81 | BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), |
@@ -148,6 +149,7 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
148 | #endif | 149 | #endif |
149 | return (ret); | 150 | return (ret); |
150 | } | 151 | } |
152 | LCRYPTO_ALIAS(BIO_dump_indent_cb); | ||
151 | 153 | ||
152 | static int | 154 | static int |
153 | write_fp(const void *data, size_t len, void *fp) | 155 | write_fp(const void *data, size_t len, void *fp) |
@@ -160,12 +162,14 @@ BIO_dump_fp(FILE *fp, const char *s, int len) | |||
160 | { | 162 | { |
161 | return BIO_dump_cb(write_fp, fp, s, len); | 163 | return BIO_dump_cb(write_fp, fp, s, len); |
162 | } | 164 | } |
165 | LCRYPTO_ALIAS(BIO_dump_fp); | ||
163 | 166 | ||
164 | int | 167 | int |
165 | BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent) | 168 | BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent) |
166 | { | 169 | { |
167 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); | 170 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); |
168 | } | 171 | } |
172 | LCRYPTO_ALIAS(BIO_dump_indent_fp); | ||
169 | 173 | ||
170 | static int | 174 | static int |
171 | write_bio(const void *data, size_t len, void *bp) | 175 | write_bio(const void *data, size_t len, void *bp) |
@@ -178,9 +182,11 @@ BIO_dump(BIO *bp, const char *s, int len) | |||
178 | { | 182 | { |
179 | return BIO_dump_cb(write_bio, bp, s, len); | 183 | return BIO_dump_cb(write_bio, bp, s, len); |
180 | } | 184 | } |
185 | LCRYPTO_ALIAS(BIO_dump); | ||
181 | 186 | ||
182 | int | 187 | int |
183 | BIO_dump_indent(BIO *bp, const char *s, int len, int indent) | 188 | BIO_dump_indent(BIO *bp, const char *s, int len, int indent) |
184 | { | 189 | { |
185 | return BIO_dump_indent_cb(write_bio, bp, s, len, indent); | 190 | return BIO_dump_indent_cb(write_bio, bp, s, len, indent); |
186 | } | 191 | } |
192 | LCRYPTO_ALIAS(BIO_dump_indent); | ||
diff --git a/src/lib/libcrypto/bio/b_posix.c b/src/lib/libcrypto/bio/b_posix.c index aed51bd717..d78f25a1f7 100644 --- a/src/lib/libcrypto/bio/b_posix.c +++ b/src/lib/libcrypto/bio/b_posix.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: b_posix.c,v 1.2 2018/03/17 16:20:01 beck Exp $ */ | 1 | /* $OpenBSD: b_posix.c,v 1.3 2023/07/05 21:23:37 beck 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 | * |
@@ -72,11 +72,13 @@ BIO_sock_init(void) | |||
72 | return (0); | 72 | return (0); |
73 | return (1); | 73 | return (1); |
74 | } | 74 | } |
75 | LCRYPTO_ALIAS(BIO_sock_init); | ||
75 | 76 | ||
76 | void | 77 | void |
77 | BIO_sock_cleanup(void) | 78 | BIO_sock_cleanup(void) |
78 | { | 79 | { |
79 | } | 80 | } |
81 | LCRYPTO_ALIAS(BIO_sock_cleanup); | ||
80 | 82 | ||
81 | int | 83 | int |
82 | BIO_socket_nbio(int s, int mode) | 84 | BIO_socket_nbio(int s, int mode) |
@@ -88,3 +90,4 @@ BIO_socket_nbio(int s, int mode) | |||
88 | return (fcntl(s, F_SETFL, flags & ~O_NONBLOCK) != -1); | 90 | return (fcntl(s, F_SETFL, flags & ~O_NONBLOCK) != -1); |
89 | return (1); | 91 | return (1); |
90 | } | 92 | } |
93 | LCRYPTO_ALIAS(BIO_socket_nbio); | ||
diff --git a/src/lib/libcrypto/bio/b_print.c b/src/lib/libcrypto/bio/b_print.c index c9d54809a7..a750ac413f 100644 --- a/src/lib/libcrypto/bio/b_print.c +++ b/src/lib/libcrypto/bio/b_print.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: b_print.c,v 1.26 2019/06/28 05:47:57 deraadt Exp $ */ | 1 | /* $OpenBSD: b_print.c,v 1.27 2023/07/05 21:23:37 beck Exp $ */ |
2 | 2 | ||
3 | /* Theo de Raadt places this file in the public domain. */ | 3 | /* Theo de Raadt places this file in the public domain. */ |
4 | 4 | ||
@@ -15,6 +15,7 @@ BIO_printf(BIO *bio, const char *format, ...) | |||
15 | va_end(args); | 15 | va_end(args); |
16 | return (ret); | 16 | return (ret); |
17 | } | 17 | } |
18 | LCRYPTO_ALIAS(BIO_printf); | ||
18 | 19 | ||
19 | #ifdef HAVE_FUNOPEN | 20 | #ifdef HAVE_FUNOPEN |
20 | static int | 21 | static int |
@@ -39,6 +40,7 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) | |||
39 | fail: | 40 | fail: |
40 | return (ret); | 41 | return (ret); |
41 | } | 42 | } |
43 | LCRYPTO_ALIAS(BIO_vprintf); | ||
42 | 44 | ||
43 | #else /* !HAVE_FUNOPEN */ | 45 | #else /* !HAVE_FUNOPEN */ |
44 | 46 | ||
@@ -55,6 +57,7 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) | |||
55 | free(buf); | 57 | free(buf); |
56 | return (ret); | 58 | return (ret); |
57 | } | 59 | } |
60 | LCRYPTO_ALIAS(BIO_vprintf); | ||
58 | 61 | ||
59 | #endif /* HAVE_FUNOPEN */ | 62 | #endif /* HAVE_FUNOPEN */ |
60 | 63 | ||
@@ -92,6 +95,7 @@ BIO_snprintf(char *buf, size_t n, const char *format, ...) | |||
92 | return (-1); | 95 | return (-1); |
93 | return (ret); | 96 | return (ret); |
94 | } | 97 | } |
98 | LCRYPTO_ALIAS(BIO_snprintf); | ||
95 | 99 | ||
96 | int | 100 | int |
97 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 101 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
@@ -104,3 +108,4 @@ BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | |||
104 | return (-1); | 108 | return (-1); |
105 | return (ret); | 109 | return (ret); |
106 | } | 110 | } |
111 | LCRYPTO_ALIAS(BIO_vsnprintf); | ||
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index 301f73914a..00bbe9c37e 100644 --- a/src/lib/libcrypto/bio/b_sock.c +++ b/src/lib/libcrypto/bio/b_sock.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: b_sock.c,v 1.70 2022/12/22 20:13:45 schwarze Exp $ */ | 1 | /* $OpenBSD: b_sock.c,v 1.71 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2017 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -62,6 +62,7 @@ BIO_get_host_ip(const char *str, unsigned char *ip) | |||
62 | freeaddrinfo(res); | 62 | freeaddrinfo(res); |
63 | return (1); | 63 | return (1); |
64 | } | 64 | } |
65 | LCRYPTO_ALIAS(BIO_get_host_ip); | ||
65 | 66 | ||
66 | int | 67 | int |
67 | BIO_get_port(const char *str, unsigned short *port_ptr) | 68 | BIO_get_port(const char *str, unsigned short *port_ptr) |
@@ -89,6 +90,7 @@ BIO_get_port(const char *str, unsigned short *port_ptr) | |||
89 | freeaddrinfo(res); | 90 | freeaddrinfo(res); |
90 | return (1); | 91 | return (1); |
91 | } | 92 | } |
93 | LCRYPTO_ALIAS(BIO_get_port); | ||
92 | 94 | ||
93 | int | 95 | int |
94 | BIO_sock_error(int sock) | 96 | BIO_sock_error(int sock) |
@@ -101,12 +103,14 @@ BIO_sock_error(int sock) | |||
101 | return (1); | 103 | return (1); |
102 | return (err); | 104 | return (err); |
103 | } | 105 | } |
106 | LCRYPTO_ALIAS(BIO_sock_error); | ||
104 | 107 | ||
105 | struct hostent * | 108 | struct hostent * |
106 | BIO_gethostbyname(const char *name) | 109 | BIO_gethostbyname(const char *name) |
107 | { | 110 | { |
108 | return gethostbyname(name); | 111 | return gethostbyname(name); |
109 | } | 112 | } |
113 | LCRYPTO_ALIAS(BIO_gethostbyname); | ||
110 | 114 | ||
111 | int | 115 | int |
112 | BIO_socket_ioctl(int fd, long type, void *arg) | 116 | BIO_socket_ioctl(int fd, long type, void *arg) |
@@ -118,6 +122,7 @@ BIO_socket_ioctl(int fd, long type, void *arg) | |||
118 | SYSerror(errno); | 122 | SYSerror(errno); |
119 | return (ret); | 123 | return (ret); |
120 | } | 124 | } |
125 | LCRYPTO_ALIAS(BIO_socket_ioctl); | ||
121 | 126 | ||
122 | int | 127 | int |
123 | BIO_get_accept_socket(char *host, int bind_mode) | 128 | BIO_get_accept_socket(char *host, int bind_mode) |
@@ -203,6 +208,7 @@ err: | |||
203 | } | 208 | } |
204 | return (s); | 209 | return (s); |
205 | } | 210 | } |
211 | LCRYPTO_ALIAS(BIO_get_accept_socket); | ||
206 | 212 | ||
207 | int | 213 | int |
208 | BIO_accept(int sock, char **addr) | 214 | BIO_accept(int sock, char **addr) |
@@ -245,9 +251,11 @@ BIO_accept(int sock, char **addr) | |||
245 | end: | 251 | end: |
246 | return (ret); | 252 | return (ret); |
247 | } | 253 | } |
254 | LCRYPTO_ALIAS(BIO_accept); | ||
248 | 255 | ||
249 | int | 256 | int |
250 | BIO_set_tcp_ndelay(int s, int on) | 257 | BIO_set_tcp_ndelay(int s, int on) |
251 | { | 258 | { |
252 | return (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)) == 0); | 259 | return (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)) == 0); |
253 | } | 260 | } |
261 | LCRYPTO_ALIAS(BIO_set_tcp_ndelay); | ||
diff --git a/src/lib/libcrypto/bio/bf_buff.c b/src/lib/libcrypto/bio/bf_buff.c index aa079c5f9e..226c16835a 100644 --- a/src/lib/libcrypto/bio/bf_buff.c +++ b/src/lib/libcrypto/bio/bf_buff.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bf_buff.c,v 1.27 2022/01/14 08:40:57 tb Exp $ */ | 1 | /* $OpenBSD: bf_buff.c,v 1.28 2023/07/05 21:23:37 beck 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 | * |
@@ -93,6 +93,7 @@ BIO_f_buffer(void) | |||
93 | { | 93 | { |
94 | return (&methods_buffer); | 94 | return (&methods_buffer); |
95 | } | 95 | } |
96 | LCRYPTO_ALIAS(BIO_f_buffer); | ||
96 | 97 | ||
97 | static int | 98 | static int |
98 | buffer_new(BIO *bi) | 99 | buffer_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c index 086479ec4c..2aed3b8fb6 100644 --- a/src/lib/libcrypto/bio/bf_nbio.c +++ b/src/lib/libcrypto/bio/bf_nbio.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bf_nbio.c,v 1.22 2022/01/14 08:40:57 tb Exp $ */ | 1 | /* $OpenBSD: bf_nbio.c,v 1.23 2023/07/05 21:23:37 beck 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 | * |
@@ -100,6 +100,7 @@ BIO_f_nbio_test(void) | |||
100 | { | 100 | { |
101 | return (&methods_nbiof); | 101 | return (&methods_nbiof); |
102 | } | 102 | } |
103 | LCRYPTO_ALIAS(BIO_f_nbio_test); | ||
103 | 104 | ||
104 | static int | 105 | static int |
105 | nbiof_new(BIO *bi) | 106 | nbiof_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c index 129def8c99..055daeb7a9 100644 --- a/src/lib/libcrypto/bio/bf_null.c +++ b/src/lib/libcrypto/bio/bf_null.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bf_null.c,v 1.14 2022/01/14 08:40:57 tb Exp $ */ | 1 | /* $OpenBSD: bf_null.c,v 1.15 2023/07/05 21:23:37 beck 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 | * |
@@ -93,6 +93,7 @@ BIO_f_null(void) | |||
93 | { | 93 | { |
94 | return (&methods_nullf); | 94 | return (&methods_nullf); |
95 | } | 95 | } |
96 | LCRYPTO_ALIAS(BIO_f_null); | ||
96 | 97 | ||
97 | static int | 98 | static int |
98 | nullf_new(BIO *bi) | 99 | nullf_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bio_cb.c b/src/lib/libcrypto/bio/bio_cb.c index 2ca411cd26..18e9be8d68 100644 --- a/src/lib/libcrypto/bio/bio_cb.c +++ b/src/lib/libcrypto/bio/bio_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_cb.c,v 1.18 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bio_cb.c,v 1.19 2023/07/05 21:23:37 beck 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 | * |
@@ -153,3 +153,4 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, | |||
153 | fputs(buf, stderr); | 153 | fputs(buf, stderr); |
154 | return (r); | 154 | return (r); |
155 | } | 155 | } |
156 | LCRYPTO_ALIAS(BIO_debug_callback); | ||
diff --git a/src/lib/libcrypto/bio/bio_err.c b/src/lib/libcrypto/bio/bio_err.c index fa5d16aff8..36fabca21c 100644 --- a/src/lib/libcrypto/bio/bio_err.c +++ b/src/lib/libcrypto/bio/bio_err.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_err.c,v 1.19 2022/07/12 14:42:48 kn Exp $ */ | 1 | /* $OpenBSD: bio_err.c,v 1.20 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -117,3 +117,4 @@ ERR_load_BIO_strings(void) | |||
117 | } | 117 | } |
118 | #endif | 118 | #endif |
119 | } | 119 | } |
120 | LCRYPTO_ALIAS(ERR_load_BIO_strings); | ||
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index d14507884b..31127cb444 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.44 2023/03/15 06:14:02 tb Exp $ */ | 1 | /* $OpenBSD: bio_lib.c,v 1.45 2023/07/05 21:23:37 beck 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 | * |
@@ -129,6 +129,7 @@ BIO_get_new_index(void) | |||
129 | 129 | ||
130 | return index; | 130 | return index; |
131 | } | 131 | } |
132 | LCRYPTO_ALIAS(BIO_get_new_index); | ||
132 | 133 | ||
133 | BIO * | 134 | BIO * |
134 | BIO_new(const BIO_METHOD *method) | 135 | BIO_new(const BIO_METHOD *method) |
@@ -147,6 +148,7 @@ BIO_new(const BIO_METHOD *method) | |||
147 | } | 148 | } |
148 | return (ret); | 149 | return (ret); |
149 | } | 150 | } |
151 | LCRYPTO_ALIAS(BIO_new); | ||
150 | 152 | ||
151 | int | 153 | int |
152 | BIO_set(BIO *bio, const BIO_METHOD *method) | 154 | BIO_set(BIO *bio, const BIO_METHOD *method) |
@@ -176,6 +178,7 @@ BIO_set(BIO *bio, const BIO_METHOD *method) | |||
176 | } | 178 | } |
177 | return (1); | 179 | return (1); |
178 | } | 180 | } |
181 | LCRYPTO_ALIAS(BIO_set); | ||
179 | 182 | ||
180 | int | 183 | int |
181 | BIO_free(BIO *a) | 184 | BIO_free(BIO *a) |
@@ -201,12 +204,14 @@ BIO_free(BIO *a) | |||
201 | free(a); | 204 | free(a); |
202 | return (1); | 205 | return (1); |
203 | } | 206 | } |
207 | LCRYPTO_ALIAS(BIO_free); | ||
204 | 208 | ||
205 | void | 209 | void |
206 | BIO_vfree(BIO *a) | 210 | BIO_vfree(BIO *a) |
207 | { | 211 | { |
208 | BIO_free(a); | 212 | BIO_free(a); |
209 | } | 213 | } |
214 | LCRYPTO_ALIAS(BIO_vfree); | ||
210 | 215 | ||
211 | int | 216 | int |
212 | BIO_up_ref(BIO *bio) | 217 | BIO_up_ref(BIO *bio) |
@@ -214,108 +219,126 @@ BIO_up_ref(BIO *bio) | |||
214 | int refs = CRYPTO_add(&bio->references, 1, CRYPTO_LOCK_BIO); | 219 | int refs = CRYPTO_add(&bio->references, 1, CRYPTO_LOCK_BIO); |
215 | return (refs > 1) ? 1 : 0; | 220 | return (refs > 1) ? 1 : 0; |
216 | } | 221 | } |
222 | LCRYPTO_ALIAS(BIO_up_ref); | ||
217 | 223 | ||
218 | void * | 224 | void * |
219 | BIO_get_data(BIO *a) | 225 | BIO_get_data(BIO *a) |
220 | { | 226 | { |
221 | return (a->ptr); | 227 | return (a->ptr); |
222 | } | 228 | } |
229 | LCRYPTO_ALIAS(BIO_get_data); | ||
223 | 230 | ||
224 | void | 231 | void |
225 | BIO_set_data(BIO *a, void *ptr) | 232 | BIO_set_data(BIO *a, void *ptr) |
226 | { | 233 | { |
227 | a->ptr = ptr; | 234 | a->ptr = ptr; |
228 | } | 235 | } |
236 | LCRYPTO_ALIAS(BIO_set_data); | ||
229 | 237 | ||
230 | int | 238 | int |
231 | BIO_get_init(BIO *a) | 239 | BIO_get_init(BIO *a) |
232 | { | 240 | { |
233 | return a->init; | 241 | return a->init; |
234 | } | 242 | } |
243 | LCRYPTO_ALIAS(BIO_get_init); | ||
235 | 244 | ||
236 | void | 245 | void |
237 | BIO_set_init(BIO *a, int init) | 246 | BIO_set_init(BIO *a, int init) |
238 | { | 247 | { |
239 | a->init = init; | 248 | a->init = init; |
240 | } | 249 | } |
250 | LCRYPTO_ALIAS(BIO_set_init); | ||
241 | 251 | ||
242 | int | 252 | int |
243 | BIO_get_shutdown(BIO *a) | 253 | BIO_get_shutdown(BIO *a) |
244 | { | 254 | { |
245 | return (a->shutdown); | 255 | return (a->shutdown); |
246 | } | 256 | } |
257 | LCRYPTO_ALIAS(BIO_get_shutdown); | ||
247 | 258 | ||
248 | void | 259 | void |
249 | BIO_set_shutdown(BIO *a, int shut) | 260 | BIO_set_shutdown(BIO *a, int shut) |
250 | { | 261 | { |
251 | a->shutdown = shut; | 262 | a->shutdown = shut; |
252 | } | 263 | } |
264 | LCRYPTO_ALIAS(BIO_set_shutdown); | ||
253 | 265 | ||
254 | void | 266 | void |
255 | BIO_clear_flags(BIO *b, int flags) | 267 | BIO_clear_flags(BIO *b, int flags) |
256 | { | 268 | { |
257 | b->flags &= ~flags; | 269 | b->flags &= ~flags; |
258 | } | 270 | } |
271 | LCRYPTO_ALIAS(BIO_clear_flags); | ||
259 | 272 | ||
260 | int | 273 | int |
261 | BIO_test_flags(const BIO *b, int flags) | 274 | BIO_test_flags(const BIO *b, int flags) |
262 | { | 275 | { |
263 | return (b->flags & flags); | 276 | return (b->flags & flags); |
264 | } | 277 | } |
278 | LCRYPTO_ALIAS(BIO_test_flags); | ||
265 | 279 | ||
266 | void | 280 | void |
267 | BIO_set_flags(BIO *b, int flags) | 281 | BIO_set_flags(BIO *b, int flags) |
268 | { | 282 | { |
269 | b->flags |= flags; | 283 | b->flags |= flags; |
270 | } | 284 | } |
285 | LCRYPTO_ALIAS(BIO_set_flags); | ||
271 | 286 | ||
272 | BIO_callback_fn | 287 | BIO_callback_fn |
273 | BIO_get_callback(const BIO *b) | 288 | BIO_get_callback(const BIO *b) |
274 | { | 289 | { |
275 | return b->callback; | 290 | return b->callback; |
276 | } | 291 | } |
292 | LCRYPTO_ALIAS(BIO_get_callback); | ||
277 | 293 | ||
278 | void | 294 | void |
279 | BIO_set_callback(BIO *b, BIO_callback_fn cb) | 295 | BIO_set_callback(BIO *b, BIO_callback_fn cb) |
280 | { | 296 | { |
281 | b->callback = cb; | 297 | b->callback = cb; |
282 | } | 298 | } |
299 | LCRYPTO_ALIAS(BIO_set_callback); | ||
283 | 300 | ||
284 | BIO_callback_fn_ex | 301 | BIO_callback_fn_ex |
285 | BIO_get_callback_ex(const BIO *b) | 302 | BIO_get_callback_ex(const BIO *b) |
286 | { | 303 | { |
287 | return b->callback_ex; | 304 | return b->callback_ex; |
288 | } | 305 | } |
306 | LCRYPTO_ALIAS(BIO_get_callback_ex); | ||
289 | 307 | ||
290 | void | 308 | void |
291 | BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex cb) | 309 | BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex cb) |
292 | { | 310 | { |
293 | b->callback_ex = cb; | 311 | b->callback_ex = cb; |
294 | } | 312 | } |
313 | LCRYPTO_ALIAS(BIO_set_callback_ex); | ||
295 | 314 | ||
296 | void | 315 | void |
297 | BIO_set_callback_arg(BIO *b, char *arg) | 316 | BIO_set_callback_arg(BIO *b, char *arg) |
298 | { | 317 | { |
299 | b->cb_arg = arg; | 318 | b->cb_arg = arg; |
300 | } | 319 | } |
320 | LCRYPTO_ALIAS(BIO_set_callback_arg); | ||
301 | 321 | ||
302 | char * | 322 | char * |
303 | BIO_get_callback_arg(const BIO *b) | 323 | BIO_get_callback_arg(const BIO *b) |
304 | { | 324 | { |
305 | return b->cb_arg; | 325 | return b->cb_arg; |
306 | } | 326 | } |
327 | LCRYPTO_ALIAS(BIO_get_callback_arg); | ||
307 | 328 | ||
308 | const char * | 329 | const char * |
309 | BIO_method_name(const BIO *b) | 330 | BIO_method_name(const BIO *b) |
310 | { | 331 | { |
311 | return b->method->name; | 332 | return b->method->name; |
312 | } | 333 | } |
334 | LCRYPTO_ALIAS(BIO_method_name); | ||
313 | 335 | ||
314 | int | 336 | int |
315 | BIO_method_type(const BIO *b) | 337 | BIO_method_type(const BIO *b) |
316 | { | 338 | { |
317 | return b->method->type; | 339 | return b->method->type; |
318 | } | 340 | } |
341 | LCRYPTO_ALIAS(BIO_method_type); | ||
319 | 342 | ||
320 | int | 343 | int |
321 | BIO_read(BIO *b, void *out, int outl) | 344 | BIO_read(BIO *b, void *out, int outl) |
@@ -373,6 +396,7 @@ BIO_read(BIO *b, void *out, int outl) | |||
373 | 396 | ||
374 | return (ret); | 397 | return (ret); |
375 | } | 398 | } |
399 | LCRYPTO_ALIAS(BIO_read); | ||
376 | 400 | ||
377 | int | 401 | int |
378 | BIO_write(BIO *b, const void *in, int inl) | 402 | BIO_write(BIO *b, const void *in, int inl) |
@@ -429,6 +453,7 @@ BIO_write(BIO *b, const void *in, int inl) | |||
429 | 453 | ||
430 | return (ret); | 454 | return (ret); |
431 | } | 455 | } |
456 | LCRYPTO_ALIAS(BIO_write); | ||
432 | 457 | ||
433 | int | 458 | int |
434 | BIO_puts(BIO *b, const char *in) | 459 | BIO_puts(BIO *b, const char *in) |
@@ -473,6 +498,7 @@ BIO_puts(BIO *b, const char *in) | |||
473 | 498 | ||
474 | return (ret); | 499 | return (ret); |
475 | } | 500 | } |
501 | LCRYPTO_ALIAS(BIO_puts); | ||
476 | 502 | ||
477 | int | 503 | int |
478 | BIO_gets(BIO *b, char *in, int inl) | 504 | BIO_gets(BIO *b, char *in, int inl) |
@@ -515,6 +541,7 @@ BIO_gets(BIO *b, char *in, int inl) | |||
515 | 541 | ||
516 | return (ret); | 542 | return (ret); |
517 | } | 543 | } |
544 | LCRYPTO_ALIAS(BIO_gets); | ||
518 | 545 | ||
519 | int | 546 | int |
520 | BIO_indent(BIO *b, int indent, int max) | 547 | BIO_indent(BIO *b, int indent, int max) |
@@ -528,6 +555,7 @@ BIO_indent(BIO *b, int indent, int max) | |||
528 | return 0; | 555 | return 0; |
529 | return 1; | 556 | return 1; |
530 | } | 557 | } |
558 | LCRYPTO_ALIAS(BIO_indent); | ||
531 | 559 | ||
532 | long | 560 | long |
533 | BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg) | 561 | BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg) |
@@ -537,6 +565,7 @@ BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg) | |||
537 | i = iarg; | 565 | i = iarg; |
538 | return (BIO_ctrl(b, cmd, larg, (char *)&i)); | 566 | return (BIO_ctrl(b, cmd, larg, (char *)&i)); |
539 | } | 567 | } |
568 | LCRYPTO_ALIAS(BIO_int_ctrl); | ||
540 | 569 | ||
541 | char * | 570 | char * |
542 | BIO_ptr_ctrl(BIO *b, int cmd, long larg) | 571 | BIO_ptr_ctrl(BIO *b, int cmd, long larg) |
@@ -548,6 +577,7 @@ BIO_ptr_ctrl(BIO *b, int cmd, long larg) | |||
548 | else | 577 | else |
549 | return (p); | 578 | return (p); |
550 | } | 579 | } |
580 | LCRYPTO_ALIAS(BIO_ptr_ctrl); | ||
551 | 581 | ||
552 | long | 582 | long |
553 | BIO_ctrl(BIO *b, int cmd, long larg, void *parg) | 583 | BIO_ctrl(BIO *b, int cmd, long larg, void *parg) |
@@ -577,6 +607,7 @@ BIO_ctrl(BIO *b, int cmd, long larg, void *parg) | |||
577 | 607 | ||
578 | return (ret); | 608 | return (ret); |
579 | } | 609 | } |
610 | LCRYPTO_ALIAS(BIO_ctrl); | ||
580 | 611 | ||
581 | long | 612 | long |
582 | BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) | 613 | BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) |
@@ -607,6 +638,7 @@ BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp) | |||
607 | 638 | ||
608 | return (ret); | 639 | return (ret); |
609 | } | 640 | } |
641 | LCRYPTO_ALIAS(BIO_callback_ctrl); | ||
610 | 642 | ||
611 | /* It is unfortunate to duplicate in functions what the BIO_(w)pending macros | 643 | /* It is unfortunate to duplicate in functions what the BIO_(w)pending macros |
612 | * do; but those macros have inappropriate return type, and for interfacing | 644 | * do; but those macros have inappropriate return type, and for interfacing |
@@ -616,12 +648,14 @@ BIO_ctrl_pending(BIO *bio) | |||
616 | { | 648 | { |
617 | return BIO_ctrl(bio, BIO_CTRL_PENDING, 0, NULL); | 649 | return BIO_ctrl(bio, BIO_CTRL_PENDING, 0, NULL); |
618 | } | 650 | } |
651 | LCRYPTO_ALIAS(BIO_ctrl_pending); | ||
619 | 652 | ||
620 | size_t | 653 | size_t |
621 | BIO_ctrl_wpending(BIO *bio) | 654 | BIO_ctrl_wpending(BIO *bio) |
622 | { | 655 | { |
623 | return BIO_ctrl(bio, BIO_CTRL_WPENDING, 0, NULL); | 656 | return BIO_ctrl(bio, BIO_CTRL_WPENDING, 0, NULL); |
624 | } | 657 | } |
658 | LCRYPTO_ALIAS(BIO_ctrl_wpending); | ||
625 | 659 | ||
626 | 660 | ||
627 | /* | 661 | /* |
@@ -649,6 +683,7 @@ BIO_push(BIO *b, BIO *bio) | |||
649 | BIO_ctrl(b, BIO_CTRL_PUSH, 0, lb); | 683 | BIO_ctrl(b, BIO_CTRL_PUSH, 0, lb); |
650 | return (b); | 684 | return (b); |
651 | } | 685 | } |
686 | LCRYPTO_ALIAS(BIO_push); | ||
652 | 687 | ||
653 | /* Remove the first and return the rest */ | 688 | /* Remove the first and return the rest */ |
654 | BIO * | 689 | BIO * |
@@ -671,6 +706,7 @@ BIO_pop(BIO *b) | |||
671 | b->prev_bio = NULL; | 706 | b->prev_bio = NULL; |
672 | return (ret); | 707 | return (ret); |
673 | } | 708 | } |
709 | LCRYPTO_ALIAS(BIO_pop); | ||
674 | 710 | ||
675 | BIO * | 711 | BIO * |
676 | BIO_get_retry_BIO(BIO *bio, int *reason) | 712 | BIO_get_retry_BIO(BIO *bio, int *reason) |
@@ -690,18 +726,21 @@ BIO_get_retry_BIO(BIO *bio, int *reason) | |||
690 | *reason = last->retry_reason; | 726 | *reason = last->retry_reason; |
691 | return (last); | 727 | return (last); |
692 | } | 728 | } |
729 | LCRYPTO_ALIAS(BIO_get_retry_BIO); | ||
693 | 730 | ||
694 | int | 731 | int |
695 | BIO_get_retry_reason(BIO *bio) | 732 | BIO_get_retry_reason(BIO *bio) |
696 | { | 733 | { |
697 | return (bio->retry_reason); | 734 | return (bio->retry_reason); |
698 | } | 735 | } |
736 | LCRYPTO_ALIAS(BIO_get_retry_reason); | ||
699 | 737 | ||
700 | void | 738 | void |
701 | BIO_set_retry_reason(BIO *bio, int reason) | 739 | BIO_set_retry_reason(BIO *bio, int reason) |
702 | { | 740 | { |
703 | bio->retry_reason = reason; | 741 | bio->retry_reason = reason; |
704 | } | 742 | } |
743 | LCRYPTO_ALIAS(BIO_set_retry_reason); | ||
705 | 744 | ||
706 | BIO * | 745 | BIO * |
707 | BIO_find_type(BIO *bio, int type) | 746 | BIO_find_type(BIO *bio, int type) |
@@ -724,6 +763,7 @@ BIO_find_type(BIO *bio, int type) | |||
724 | } while (bio != NULL); | 763 | } while (bio != NULL); |
725 | return (NULL); | 764 | return (NULL); |
726 | } | 765 | } |
766 | LCRYPTO_ALIAS(BIO_find_type); | ||
727 | 767 | ||
728 | BIO * | 768 | BIO * |
729 | BIO_next(BIO *b) | 769 | BIO_next(BIO *b) |
@@ -732,6 +772,7 @@ BIO_next(BIO *b) | |||
732 | return NULL; | 772 | return NULL; |
733 | return b->next_bio; | 773 | return b->next_bio; |
734 | } | 774 | } |
775 | LCRYPTO_ALIAS(BIO_next); | ||
735 | 776 | ||
736 | /* | 777 | /* |
737 | * Two chains "bio -> oldtail" and "oldhead -> next" become | 778 | * Two chains "bio -> oldtail" and "oldhead -> next" become |
@@ -753,6 +794,7 @@ BIO_set_next(BIO *bio, BIO *next) | |||
753 | if (next != NULL) | 794 | if (next != NULL) |
754 | next->prev_bio = bio; | 795 | next->prev_bio = bio; |
755 | } | 796 | } |
797 | LCRYPTO_ALIAS(BIO_set_next); | ||
756 | 798 | ||
757 | void | 799 | void |
758 | BIO_free_all(BIO *bio) | 800 | BIO_free_all(BIO *bio) |
@@ -770,6 +812,7 @@ BIO_free_all(BIO *bio) | |||
770 | break; | 812 | break; |
771 | } | 813 | } |
772 | } | 814 | } |
815 | LCRYPTO_ALIAS(BIO_free_all); | ||
773 | 816 | ||
774 | BIO * | 817 | BIO * |
775 | BIO_dup_chain(BIO *in) | 818 | BIO_dup_chain(BIO *in) |
@@ -813,6 +856,7 @@ err: | |||
813 | return (NULL); | 856 | return (NULL); |
814 | 857 | ||
815 | } | 858 | } |
859 | LCRYPTO_ALIAS(BIO_dup_chain); | ||
816 | 860 | ||
817 | void | 861 | void |
818 | BIO_copy_next_retry(BIO *b) | 862 | BIO_copy_next_retry(BIO *b) |
@@ -820,6 +864,7 @@ BIO_copy_next_retry(BIO *b) | |||
820 | BIO_set_flags(b, BIO_get_retry_flags(b->next_bio)); | 864 | BIO_set_flags(b, BIO_get_retry_flags(b->next_bio)); |
821 | b->retry_reason = b->next_bio->retry_reason; | 865 | b->retry_reason = b->next_bio->retry_reason; |
822 | } | 866 | } |
867 | LCRYPTO_ALIAS(BIO_copy_next_retry); | ||
823 | 868 | ||
824 | int | 869 | int |
825 | BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | 870 | BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, |
@@ -828,18 +873,21 @@ BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func, | |||
828 | return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, argl, argp, | 873 | return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, argl, argp, |
829 | new_func, dup_func, free_func); | 874 | new_func, dup_func, free_func); |
830 | } | 875 | } |
876 | LCRYPTO_ALIAS(BIO_get_ex_new_index); | ||
831 | 877 | ||
832 | int | 878 | int |
833 | BIO_set_ex_data(BIO *bio, int idx, void *data) | 879 | BIO_set_ex_data(BIO *bio, int idx, void *data) |
834 | { | 880 | { |
835 | return (CRYPTO_set_ex_data(&(bio->ex_data), idx, data)); | 881 | return (CRYPTO_set_ex_data(&(bio->ex_data), idx, data)); |
836 | } | 882 | } |
883 | LCRYPTO_ALIAS(BIO_set_ex_data); | ||
837 | 884 | ||
838 | void * | 885 | void * |
839 | BIO_get_ex_data(BIO *bio, int idx) | 886 | BIO_get_ex_data(BIO *bio, int idx) |
840 | { | 887 | { |
841 | return (CRYPTO_get_ex_data(&(bio->ex_data), idx)); | 888 | return (CRYPTO_get_ex_data(&(bio->ex_data), idx)); |
842 | } | 889 | } |
890 | LCRYPTO_ALIAS(BIO_get_ex_data); | ||
843 | 891 | ||
844 | unsigned long | 892 | unsigned long |
845 | BIO_number_read(BIO *bio) | 893 | BIO_number_read(BIO *bio) |
@@ -848,6 +896,7 @@ BIO_number_read(BIO *bio) | |||
848 | return bio->num_read; | 896 | return bio->num_read; |
849 | return 0; | 897 | return 0; |
850 | } | 898 | } |
899 | LCRYPTO_ALIAS(BIO_number_read); | ||
851 | 900 | ||
852 | unsigned long | 901 | unsigned long |
853 | BIO_number_written(BIO *bio) | 902 | BIO_number_written(BIO *bio) |
@@ -856,3 +905,4 @@ BIO_number_written(BIO *bio) | |||
856 | return bio->num_write; | 905 | return bio->num_write; |
857 | return 0; | 906 | return 0; |
858 | } | 907 | } |
908 | LCRYPTO_ALIAS(BIO_number_written); | ||
diff --git a/src/lib/libcrypto/bio/bio_meth.c b/src/lib/libcrypto/bio/bio_meth.c index d7d100df95..37f866a0c4 100644 --- a/src/lib/libcrypto/bio/bio_meth.c +++ b/src/lib/libcrypto/bio/bio_meth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bio_meth.c,v 1.8 2022/01/14 08:40:57 tb Exp $ */ | 1 | /* $OpenBSD: bio_meth.c,v 1.9 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -34,18 +34,21 @@ BIO_meth_new(int type, const char *name) | |||
34 | 34 | ||
35 | return biom; | 35 | return biom; |
36 | } | 36 | } |
37 | LCRYPTO_ALIAS(BIO_meth_new); | ||
37 | 38 | ||
38 | void | 39 | void |
39 | BIO_meth_free(BIO_METHOD *biom) | 40 | BIO_meth_free(BIO_METHOD *biom) |
40 | { | 41 | { |
41 | free(biom); | 42 | free(biom); |
42 | } | 43 | } |
44 | LCRYPTO_ALIAS(BIO_meth_free); | ||
43 | 45 | ||
44 | int | 46 | int |
45 | (*BIO_meth_get_write(const BIO_METHOD *biom))(BIO *, const char *, int) | 47 | (*BIO_meth_get_write(const BIO_METHOD *biom))(BIO *, const char *, int) |
46 | { | 48 | { |
47 | return biom->bwrite; | 49 | return biom->bwrite; |
48 | } | 50 | } |
51 | LCRYPTO_ALIAS(BIO_meth_get_write); | ||
49 | 52 | ||
50 | int | 53 | int |
51 | BIO_meth_set_write(BIO_METHOD *biom, int (*write)(BIO *, const char *, int)) | 54 | BIO_meth_set_write(BIO_METHOD *biom, int (*write)(BIO *, const char *, int)) |
@@ -53,12 +56,14 @@ BIO_meth_set_write(BIO_METHOD *biom, int (*write)(BIO *, const char *, int)) | |||
53 | biom->bwrite = write; | 56 | biom->bwrite = write; |
54 | return 1; | 57 | return 1; |
55 | } | 58 | } |
59 | LCRYPTO_ALIAS(BIO_meth_set_write); | ||
56 | 60 | ||
57 | int | 61 | int |
58 | (*BIO_meth_get_read(const BIO_METHOD *biom))(BIO *, char *, int) | 62 | (*BIO_meth_get_read(const BIO_METHOD *biom))(BIO *, char *, int) |
59 | { | 63 | { |
60 | return biom->bread; | 64 | return biom->bread; |
61 | } | 65 | } |
66 | LCRYPTO_ALIAS(BIO_meth_get_read); | ||
62 | 67 | ||
63 | int | 68 | int |
64 | BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int)) | 69 | BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int)) |
@@ -66,12 +71,14 @@ BIO_meth_set_read(BIO_METHOD *biom, int (*read)(BIO *, char *, int)) | |||
66 | biom->bread = read; | 71 | biom->bread = read; |
67 | return 1; | 72 | return 1; |
68 | } | 73 | } |
74 | LCRYPTO_ALIAS(BIO_meth_set_read); | ||
69 | 75 | ||
70 | int | 76 | int |
71 | (*BIO_meth_get_puts(const BIO_METHOD *biom))(BIO *, const char *) | 77 | (*BIO_meth_get_puts(const BIO_METHOD *biom))(BIO *, const char *) |
72 | { | 78 | { |
73 | return biom->bputs; | 79 | return biom->bputs; |
74 | } | 80 | } |
81 | LCRYPTO_ALIAS(BIO_meth_get_puts); | ||
75 | 82 | ||
76 | int | 83 | int |
77 | BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)) | 84 | BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)) |
@@ -79,12 +86,14 @@ BIO_meth_set_puts(BIO_METHOD *biom, int (*puts)(BIO *, const char *)) | |||
79 | biom->bputs = puts; | 86 | biom->bputs = puts; |
80 | return 1; | 87 | return 1; |
81 | } | 88 | } |
89 | LCRYPTO_ALIAS(BIO_meth_set_puts); | ||
82 | 90 | ||
83 | int | 91 | int |
84 | (*BIO_meth_get_gets(const BIO_METHOD *biom))(BIO *, char *, int) | 92 | (*BIO_meth_get_gets(const BIO_METHOD *biom))(BIO *, char *, int) |
85 | { | 93 | { |
86 | return biom->bgets; | 94 | return biom->bgets; |
87 | } | 95 | } |
96 | LCRYPTO_ALIAS(BIO_meth_get_gets); | ||
88 | 97 | ||
89 | int | 98 | int |
90 | BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)) | 99 | BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)) |
@@ -92,12 +101,14 @@ BIO_meth_set_gets(BIO_METHOD *biom, int (*gets)(BIO *, char *, int)) | |||
92 | biom->bgets = gets; | 101 | biom->bgets = gets; |
93 | return 1; | 102 | return 1; |
94 | } | 103 | } |
104 | LCRYPTO_ALIAS(BIO_meth_set_gets); | ||
95 | 105 | ||
96 | long | 106 | long |
97 | (*BIO_meth_get_ctrl(const BIO_METHOD *biom))(BIO *, int, long, void *) | 107 | (*BIO_meth_get_ctrl(const BIO_METHOD *biom))(BIO *, int, long, void *) |
98 | { | 108 | { |
99 | return biom->ctrl; | 109 | return biom->ctrl; |
100 | } | 110 | } |
111 | LCRYPTO_ALIAS(BIO_meth_get_ctrl); | ||
101 | 112 | ||
102 | int | 113 | int |
103 | BIO_meth_set_ctrl(BIO_METHOD *biom, long (*ctrl)(BIO *, int, long, void *)) | 114 | BIO_meth_set_ctrl(BIO_METHOD *biom, long (*ctrl)(BIO *, int, long, void *)) |
@@ -105,12 +116,14 @@ BIO_meth_set_ctrl(BIO_METHOD *biom, long (*ctrl)(BIO *, int, long, void *)) | |||
105 | biom->ctrl = ctrl; | 116 | biom->ctrl = ctrl; |
106 | return 1; | 117 | return 1; |
107 | } | 118 | } |
119 | LCRYPTO_ALIAS(BIO_meth_set_ctrl); | ||
108 | 120 | ||
109 | int | 121 | int |
110 | (*BIO_meth_get_create(const BIO_METHOD *biom))(BIO *) | 122 | (*BIO_meth_get_create(const BIO_METHOD *biom))(BIO *) |
111 | { | 123 | { |
112 | return biom->create; | 124 | return biom->create; |
113 | } | 125 | } |
126 | LCRYPTO_ALIAS(BIO_meth_get_create); | ||
114 | 127 | ||
115 | int | 128 | int |
116 | BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)) | 129 | BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)) |
@@ -118,12 +131,14 @@ BIO_meth_set_create(BIO_METHOD *biom, int (*create)(BIO *)) | |||
118 | biom->create = create; | 131 | biom->create = create; |
119 | return 1; | 132 | return 1; |
120 | } | 133 | } |
134 | LCRYPTO_ALIAS(BIO_meth_set_create); | ||
121 | 135 | ||
122 | int | 136 | int |
123 | (*BIO_meth_get_destroy(const BIO_METHOD *biom))(BIO *) | 137 | (*BIO_meth_get_destroy(const BIO_METHOD *biom))(BIO *) |
124 | { | 138 | { |
125 | return biom->destroy; | 139 | return biom->destroy; |
126 | } | 140 | } |
141 | LCRYPTO_ALIAS(BIO_meth_get_destroy); | ||
127 | 142 | ||
128 | int | 143 | int |
129 | BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)) | 144 | BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)) |
@@ -131,12 +146,14 @@ BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy)(BIO *)) | |||
131 | biom->destroy = destroy; | 146 | biom->destroy = destroy; |
132 | return 1; | 147 | return 1; |
133 | } | 148 | } |
149 | LCRYPTO_ALIAS(BIO_meth_set_destroy); | ||
134 | 150 | ||
135 | long | 151 | long |
136 | (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))(BIO *, int, BIO_info_cb *) | 152 | (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))(BIO *, int, BIO_info_cb *) |
137 | { | 153 | { |
138 | return biom->callback_ctrl; | 154 | return biom->callback_ctrl; |
139 | } | 155 | } |
156 | LCRYPTO_ALIAS(BIO_meth_get_callback_ctrl); | ||
140 | 157 | ||
141 | int | 158 | int |
142 | BIO_meth_set_callback_ctrl(BIO_METHOD *biom, | 159 | BIO_meth_set_callback_ctrl(BIO_METHOD *biom, |
@@ -145,3 +162,4 @@ BIO_meth_set_callback_ctrl(BIO_METHOD *biom, | |||
145 | biom->callback_ctrl = callback_ctrl; | 162 | biom->callback_ctrl = callback_ctrl; |
146 | return 1; | 163 | return 1; |
147 | } | 164 | } |
165 | LCRYPTO_ALIAS(BIO_meth_set_callback_ctrl); | ||
diff --git a/src/lib/libcrypto/bio/bss_acpt.c b/src/lib/libcrypto/bio/bss_acpt.c index a619bd7c5d..d74c710a7f 100644 --- a/src/lib/libcrypto/bio/bss_acpt.c +++ b/src/lib/libcrypto/bio/bss_acpt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_acpt.c,v 1.30 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_acpt.c,v 1.31 2023/07/05 21:23:37 beck 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 | * |
@@ -118,6 +118,7 @@ BIO_s_accept(void) | |||
118 | { | 118 | { |
119 | return (&methods_acceptp); | 119 | return (&methods_acceptp); |
120 | } | 120 | } |
121 | LCRYPTO_ALIAS(BIO_s_accept); | ||
121 | 122 | ||
122 | static int | 123 | static int |
123 | acpt_new(BIO *bi) | 124 | acpt_new(BIO *bi) |
@@ -452,4 +453,4 @@ BIO_new_accept(const char *str) | |||
452 | return (NULL); | 453 | return (NULL); |
453 | } | 454 | } |
454 | } | 455 | } |
455 | 456 | LCRYPTO_ALIAS(BIO_new_accept); | |
diff --git a/src/lib/libcrypto/bio/bss_bio.c b/src/lib/libcrypto/bio/bss_bio.c index c92d35d118..0de0b604b3 100644 --- a/src/lib/libcrypto/bio/bss_bio.c +++ b/src/lib/libcrypto/bio/bss_bio.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_bio.c,v 1.25 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_bio.c,v 1.26 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2003 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -112,6 +112,7 @@ BIO_s_bio(void) | |||
112 | { | 112 | { |
113 | return &methods_biop; | 113 | return &methods_biop; |
114 | } | 114 | } |
115 | LCRYPTO_ALIAS(BIO_s_bio); | ||
115 | 116 | ||
116 | struct bio_bio_st { | 117 | struct bio_bio_st { |
117 | BIO *peer; /* NULL if buf == NULL. | 118 | BIO *peer; /* NULL if buf == NULL. |
@@ -795,24 +796,28 @@ BIO_new_bio_pair(BIO **bio1_p, size_t writebuf1, BIO **bio2_p, size_t writebuf2) | |||
795 | *bio2_p = bio2; | 796 | *bio2_p = bio2; |
796 | return ret; | 797 | return ret; |
797 | } | 798 | } |
799 | LCRYPTO_ALIAS(BIO_new_bio_pair); | ||
798 | 800 | ||
799 | size_t | 801 | size_t |
800 | BIO_ctrl_get_write_guarantee(BIO *bio) | 802 | BIO_ctrl_get_write_guarantee(BIO *bio) |
801 | { | 803 | { |
802 | return BIO_ctrl(bio, BIO_C_GET_WRITE_GUARANTEE, 0, NULL); | 804 | return BIO_ctrl(bio, BIO_C_GET_WRITE_GUARANTEE, 0, NULL); |
803 | } | 805 | } |
806 | LCRYPTO_ALIAS(BIO_ctrl_get_write_guarantee); | ||
804 | 807 | ||
805 | size_t | 808 | size_t |
806 | BIO_ctrl_get_read_request(BIO *bio) | 809 | BIO_ctrl_get_read_request(BIO *bio) |
807 | { | 810 | { |
808 | return BIO_ctrl(bio, BIO_C_GET_READ_REQUEST, 0, NULL); | 811 | return BIO_ctrl(bio, BIO_C_GET_READ_REQUEST, 0, NULL); |
809 | } | 812 | } |
813 | LCRYPTO_ALIAS(BIO_ctrl_get_read_request); | ||
810 | 814 | ||
811 | int | 815 | int |
812 | BIO_ctrl_reset_read_request(BIO *bio) | 816 | BIO_ctrl_reset_read_request(BIO *bio) |
813 | { | 817 | { |
814 | return (BIO_ctrl(bio, BIO_C_RESET_READ_REQUEST, 0, NULL) != 0); | 818 | return (BIO_ctrl(bio, BIO_C_RESET_READ_REQUEST, 0, NULL) != 0); |
815 | } | 819 | } |
820 | LCRYPTO_ALIAS(BIO_ctrl_reset_read_request); | ||
816 | 821 | ||
817 | 822 | ||
818 | /* BIO_nread0/nread/nwrite0/nwrite are available only for BIO pairs for now | 823 | /* BIO_nread0/nread/nwrite0/nwrite are available only for BIO pairs for now |
@@ -834,6 +839,7 @@ BIO_nread0(BIO *bio, char **buf) | |||
834 | else | 839 | else |
835 | return (int) ret; | 840 | return (int) ret; |
836 | } | 841 | } |
842 | LCRYPTO_ALIAS(BIO_nread0); | ||
837 | 843 | ||
838 | int | 844 | int |
839 | BIO_nread(BIO *bio, char **buf, int num) | 845 | BIO_nread(BIO *bio, char **buf, int num) |
@@ -850,6 +856,7 @@ BIO_nread(BIO *bio, char **buf, int num) | |||
850 | bio->num_read += ret; | 856 | bio->num_read += ret; |
851 | return ret; | 857 | return ret; |
852 | } | 858 | } |
859 | LCRYPTO_ALIAS(BIO_nread); | ||
853 | 860 | ||
854 | int | 861 | int |
855 | BIO_nwrite0(BIO *bio, char **buf) | 862 | BIO_nwrite0(BIO *bio, char **buf) |
@@ -867,6 +874,7 @@ BIO_nwrite0(BIO *bio, char **buf) | |||
867 | else | 874 | else |
868 | return (int) ret; | 875 | return (int) ret; |
869 | } | 876 | } |
877 | LCRYPTO_ALIAS(BIO_nwrite0); | ||
870 | 878 | ||
871 | int | 879 | int |
872 | BIO_nwrite(BIO *bio, char **buf, int num) | 880 | BIO_nwrite(BIO *bio, char **buf, int num) |
@@ -883,3 +891,4 @@ BIO_nwrite(BIO *bio, char **buf, int num) | |||
883 | bio->num_write += ret; | 891 | bio->num_write += ret; |
884 | return ret; | 892 | return ret; |
885 | } | 893 | } |
894 | LCRYPTO_ALIAS(BIO_nwrite); | ||
diff --git a/src/lib/libcrypto/bio/bss_conn.c b/src/lib/libcrypto/bio/bss_conn.c index 8e30bccd51..ded9c0be6d 100644 --- a/src/lib/libcrypto/bio/bss_conn.c +++ b/src/lib/libcrypto/bio/bss_conn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_conn.c,v 1.37 2022/01/14 08:40:57 tb Exp $ */ | 1 | /* $OpenBSD: bss_conn.c,v 1.38 2023/07/05 21:23:37 beck 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 | * |
@@ -309,6 +309,7 @@ BIO_CONNECT_new(void) | |||
309 | memset((char *)&ret->them, 0, sizeof(ret->them)); | 309 | memset((char *)&ret->them, 0, sizeof(ret->them)); |
310 | return (ret); | 310 | return (ret); |
311 | } | 311 | } |
312 | LCRYPTO_ALIAS(BIO_CONNECT_new); | ||
312 | 313 | ||
313 | void | 314 | void |
314 | BIO_CONNECT_free(BIO_CONNECT *a) | 315 | BIO_CONNECT_free(BIO_CONNECT *a) |
@@ -320,12 +321,14 @@ BIO_CONNECT_free(BIO_CONNECT *a) | |||
320 | free(a->param_port); | 321 | free(a->param_port); |
321 | free(a); | 322 | free(a); |
322 | } | 323 | } |
324 | LCRYPTO_ALIAS(BIO_CONNECT_free); | ||
323 | 325 | ||
324 | const BIO_METHOD * | 326 | const BIO_METHOD * |
325 | BIO_s_connect(void) | 327 | BIO_s_connect(void) |
326 | { | 328 | { |
327 | return (&methods_connectp); | 329 | return (&methods_connectp); |
328 | } | 330 | } |
331 | LCRYPTO_ALIAS(BIO_s_connect); | ||
329 | 332 | ||
330 | static int | 333 | static int |
331 | conn_new(BIO *bi) | 334 | conn_new(BIO *bi) |
@@ -594,4 +597,4 @@ BIO_new_connect(const char *str) | |||
594 | return (NULL); | 597 | return (NULL); |
595 | } | 598 | } |
596 | } | 599 | } |
597 | 600 | LCRYPTO_ALIAS(BIO_new_connect); | |
diff --git a/src/lib/libcrypto/bio/bss_dgram.c b/src/lib/libcrypto/bio/bss_dgram.c index 0d70daa20e..65a8f6fae4 100644 --- a/src/lib/libcrypto/bio/bss_dgram.c +++ b/src/lib/libcrypto/bio/bss_dgram.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_dgram.c,v 1.44 2022/12/26 07:18:51 jmc Exp $ */ | 1 | /* $OpenBSD: bss_dgram.c,v 1.45 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * DTLS implementation written by Nagendra Modadugu | 3 | * DTLS implementation written by Nagendra Modadugu |
4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. | 4 | * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. |
@@ -119,6 +119,7 @@ BIO_s_datagram(void) | |||
119 | { | 119 | { |
120 | return (&methods_dgramp); | 120 | return (&methods_dgramp); |
121 | } | 121 | } |
122 | LCRYPTO_ALIAS(BIO_s_datagram); | ||
122 | 123 | ||
123 | BIO * | 124 | BIO * |
124 | BIO_new_dgram(int fd, int close_flag) | 125 | BIO_new_dgram(int fd, int close_flag) |
@@ -131,6 +132,7 @@ BIO_new_dgram(int fd, int close_flag) | |||
131 | BIO_set_fd(ret, fd, close_flag); | 132 | BIO_set_fd(ret, fd, close_flag); |
132 | return (ret); | 133 | return (ret); |
133 | } | 134 | } |
135 | LCRYPTO_ALIAS(BIO_new_dgram); | ||
134 | 136 | ||
135 | static int | 137 | static int |
136 | dgram_new(BIO *bi) | 138 | dgram_new(BIO *bi) |
@@ -656,5 +658,6 @@ BIO_dgram_non_fatal_error(int err) | |||
656 | } | 658 | } |
657 | return (0); | 659 | return (0); |
658 | } | 660 | } |
661 | LCRYPTO_ALIAS(BIO_dgram_non_fatal_error); | ||
659 | 662 | ||
660 | #endif | 663 | #endif |
diff --git a/src/lib/libcrypto/bio/bss_fd.c b/src/lib/libcrypto/bio/bss_fd.c index 7d7c427913..63eac32329 100644 --- a/src/lib/libcrypto/bio/bss_fd.c +++ b/src/lib/libcrypto/bio/bss_fd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_fd.c,v 1.20 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_fd.c,v 1.21 2023/07/05 21:23:37 beck 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 | * |
@@ -93,6 +93,7 @@ BIO_s_fd(void) | |||
93 | { | 93 | { |
94 | return (&methods_fdp); | 94 | return (&methods_fdp); |
95 | } | 95 | } |
96 | LCRYPTO_ALIAS(BIO_s_fd); | ||
96 | 97 | ||
97 | BIO * | 98 | BIO * |
98 | BIO_new_fd(int fd, int close_flag) | 99 | BIO_new_fd(int fd, int close_flag) |
@@ -104,6 +105,7 @@ BIO_new_fd(int fd, int close_flag) | |||
104 | BIO_set_fd(ret, fd, close_flag); | 105 | BIO_set_fd(ret, fd, close_flag); |
105 | return (ret); | 106 | return (ret); |
106 | } | 107 | } |
108 | LCRYPTO_ALIAS(BIO_new_fd); | ||
107 | 109 | ||
108 | static int | 110 | static int |
109 | fd_new(BIO *bi) | 111 | fd_new(BIO *bi) |
@@ -251,6 +253,7 @@ BIO_fd_should_retry(int i) | |||
251 | } | 253 | } |
252 | return (0); | 254 | return (0); |
253 | } | 255 | } |
256 | LCRYPTO_ALIAS(BIO_fd_should_retry); | ||
254 | 257 | ||
255 | int | 258 | int |
256 | BIO_fd_non_fatal_error(int err) | 259 | BIO_fd_non_fatal_error(int err) |
@@ -267,3 +270,4 @@ BIO_fd_non_fatal_error(int err) | |||
267 | } | 270 | } |
268 | return (0); | 271 | return (0); |
269 | } | 272 | } |
273 | LCRYPTO_ALIAS(BIO_fd_non_fatal_error); | ||
diff --git a/src/lib/libcrypto/bio/bss_file.c b/src/lib/libcrypto/bio/bss_file.c index 0c9b755025..9b6ca2bdd8 100644 --- a/src/lib/libcrypto/bio/bss_file.c +++ b/src/lib/libcrypto/bio/bss_file.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_file.c,v 1.34 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_file.c,v 1.35 2023/07/05 21:23:37 beck 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 | * |
@@ -137,6 +137,7 @@ BIO_new_file(const char *filename, const char *mode) | |||
137 | BIO_set_fp(ret, file, BIO_CLOSE); | 137 | BIO_set_fp(ret, file, BIO_CLOSE); |
138 | return (ret); | 138 | return (ret); |
139 | } | 139 | } |
140 | LCRYPTO_ALIAS(BIO_new_file); | ||
140 | 141 | ||
141 | BIO * | 142 | BIO * |
142 | BIO_new_fp(FILE *stream, int close_flag) | 143 | BIO_new_fp(FILE *stream, int close_flag) |
@@ -149,12 +150,14 @@ BIO_new_fp(FILE *stream, int close_flag) | |||
149 | BIO_set_fp(ret, stream, close_flag); | 150 | BIO_set_fp(ret, stream, close_flag); |
150 | return (ret); | 151 | return (ret); |
151 | } | 152 | } |
153 | LCRYPTO_ALIAS(BIO_new_fp); | ||
152 | 154 | ||
153 | const BIO_METHOD * | 155 | const BIO_METHOD * |
154 | BIO_s_file(void) | 156 | BIO_s_file(void) |
155 | { | 157 | { |
156 | return (&methods_filep); | 158 | return (&methods_filep); |
157 | } | 159 | } |
160 | LCRYPTO_ALIAS(BIO_s_file); | ||
158 | 161 | ||
159 | static int | 162 | static int |
160 | file_new(BIO *bi) | 163 | file_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c index 296c87ff89..9e2e882646 100644 --- a/src/lib/libcrypto/bio/bss_log.c +++ b/src/lib/libcrypto/bio/bss_log.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_log.c,v 1.23 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_log.c,v 1.24 2023/07/05 21:23:37 beck Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -98,6 +98,7 @@ BIO_s_log(void) | |||
98 | { | 98 | { |
99 | return (&methods_slg); | 99 | return (&methods_slg); |
100 | } | 100 | } |
101 | LCRYPTO_ALIAS(BIO_s_log); | ||
101 | 102 | ||
102 | static int | 103 | static int |
103 | slg_new(BIO *bi) | 104 | slg_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bss_mem.c b/src/lib/libcrypto/bio/bss_mem.c index 2d03083235..6d0d54db84 100644 --- a/src/lib/libcrypto/bio/bss_mem.c +++ b/src/lib/libcrypto/bio/bss_mem.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_mem.c,v 1.21 2022/02/19 15:59:12 jsing Exp $ */ | 1 | /* $OpenBSD: bss_mem.c,v 1.22 2023/07/05 21:23:37 beck 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 | * |
@@ -117,6 +117,7 @@ BIO_s_mem(void) | |||
117 | { | 117 | { |
118 | return &mem_method; | 118 | return &mem_method; |
119 | } | 119 | } |
120 | LCRYPTO_ALIAS(BIO_s_mem); | ||
120 | 121 | ||
121 | BIO * | 122 | BIO * |
122 | BIO_new_mem_buf(const void *buf, int buf_len) | 123 | BIO_new_mem_buf(const void *buf, int buf_len) |
@@ -148,6 +149,7 @@ BIO_new_mem_buf(const void *buf, int buf_len) | |||
148 | 149 | ||
149 | return bio; | 150 | return bio; |
150 | } | 151 | } |
152 | LCRYPTO_ALIAS(BIO_new_mem_buf); | ||
151 | 153 | ||
152 | static int | 154 | static int |
153 | mem_new(BIO *bio) | 155 | mem_new(BIO *bio) |
diff --git a/src/lib/libcrypto/bio/bss_null.c b/src/lib/libcrypto/bio/bss_null.c index 8a15b36b31..5f9340967b 100644 --- a/src/lib/libcrypto/bio/bss_null.c +++ b/src/lib/libcrypto/bio/bss_null.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_null.c,v 1.12 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_null.c,v 1.13 2023/07/05 21:23:37 beck 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 | * |
@@ -89,6 +89,7 @@ BIO_s_null(void) | |||
89 | { | 89 | { |
90 | return (&null_method); | 90 | return (&null_method); |
91 | } | 91 | } |
92 | LCRYPTO_ALIAS(BIO_s_null); | ||
92 | 93 | ||
93 | static int | 94 | static int |
94 | null_new(BIO *bi) | 95 | null_new(BIO *bi) |
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c index 3b9a87fd8a..1a13d7fbf7 100644 --- a/src/lib/libcrypto/bio/bss_sock.c +++ b/src/lib/libcrypto/bio/bss_sock.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bss_sock.c,v 1.25 2022/01/07 09:02:17 tb Exp $ */ | 1 | /* $OpenBSD: bss_sock.c,v 1.26 2023/07/05 21:23:37 beck 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 | * |
@@ -91,6 +91,7 @@ BIO_s_socket(void) | |||
91 | { | 91 | { |
92 | return (&methods_sockp); | 92 | return (&methods_sockp); |
93 | } | 93 | } |
94 | LCRYPTO_ALIAS(BIO_s_socket); | ||
94 | 95 | ||
95 | BIO * | 96 | BIO * |
96 | BIO_new_socket(int fd, int close_flag) | 97 | BIO_new_socket(int fd, int close_flag) |
@@ -103,6 +104,7 @@ BIO_new_socket(int fd, int close_flag) | |||
103 | BIO_set_fd(ret, fd, close_flag); | 104 | BIO_set_fd(ret, fd, close_flag); |
104 | return (ret); | 105 | return (ret); |
105 | } | 106 | } |
107 | LCRYPTO_ALIAS(BIO_new_socket); | ||
106 | 108 | ||
107 | static int | 109 | static int |
108 | sock_new(BIO *bi) | 110 | sock_new(BIO *bi) |
@@ -222,6 +224,7 @@ BIO_sock_should_retry(int i) | |||
222 | } | 224 | } |
223 | return (0); | 225 | return (0); |
224 | } | 226 | } |
227 | LCRYPTO_ALIAS(BIO_sock_should_retry); | ||
225 | 228 | ||
226 | int | 229 | int |
227 | BIO_sock_non_fatal_error(int err) | 230 | BIO_sock_non_fatal_error(int err) |
@@ -238,4 +241,4 @@ BIO_sock_non_fatal_error(int err) | |||
238 | } | 241 | } |
239 | return (0); | 242 | return (0); |
240 | } | 243 | } |
241 | 244 | LCRYPTO_ALIAS(BIO_sock_non_fatal_error); | |