summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_file.c')
-rw-r--r--src/lib/libcrypto/bio/bss_file.c5
1 files changed, 4 insertions, 1 deletions
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}
140LCRYPTO_ALIAS(BIO_new_file);
140 141
141BIO * 142BIO *
142BIO_new_fp(FILE *stream, int close_flag) 143BIO_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}
153LCRYPTO_ALIAS(BIO_new_fp);
152 154
153const BIO_METHOD * 155const BIO_METHOD *
154BIO_s_file(void) 156BIO_s_file(void)
155{ 157{
156 return (&methods_filep); 158 return (&methods_filep);
157} 159}
160LCRYPTO_ALIAS(BIO_s_file);
158 161
159static int 162static int
160file_new(BIO *bi) 163file_new(BIO *bi)