diff options
author | beck <> | 2023-07-05 21:23:37 +0000 |
---|---|---|
committer | beck <> | 2023-07-05 21:23:37 +0000 |
commit | f02026f6f76299e13e86d72eda1292aed8790474 (patch) | |
tree | 3cafd04134ea26f8b5da5e120671d9a01bff9156 /src/lib/libcrypto/bio/b_dump.c | |
parent | f84ae72d736cf133007e9416282403a5c00bae5d (diff) | |
download | openbsd-f02026f6f76299e13e86d72eda1292aed8790474.tar.gz openbsd-f02026f6f76299e13e86d72eda1292aed8790474.tar.bz2 openbsd-f02026f6f76299e13e86d72eda1292aed8790474.zip |
Hide symbols in asn1 and bio
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/bio/b_dump.c')
-rw-r--r-- | src/lib/libcrypto/bio/b_dump.c | 8 |
1 files changed, 7 insertions, 1 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); | ||