diff options
author | beck <> | 2023-07-07 13:40:44 +0000 |
---|---|---|
committer | beck <> | 2023-07-07 13:40:44 +0000 |
commit | 6f5543ad3e9567cbb0c420be9104b1c9a41f8370 (patch) | |
tree | 4ff69f17732c4c2fea8cf75b4552dab0cd48119e /src/lib/libcrypto/lhash/lh_stats.c | |
parent | a9cdc101468391df513beb27c13bf27170418093 (diff) | |
download | openbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.tar.gz openbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.tar.bz2 openbsd-6f5543ad3e9567cbb0c420be9104b1c9a41f8370.zip |
Hide symbols in lhash, pem, and rc2
ok jsing@
Diffstat (limited to 'src/lib/libcrypto/lhash/lh_stats.c')
-rw-r--r-- | src/lib/libcrypto/lhash/lh_stats.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/lhash/lh_stats.c b/src/lib/libcrypto/lhash/lh_stats.c index e7dde47806..123792a2ab 100644 --- a/src/lib/libcrypto/lhash/lh_stats.c +++ b/src/lib/libcrypto/lhash/lh_stats.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: lh_stats.c,v 1.12 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: lh_stats.c,v 1.13 2023/07/07 13:40:44 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 | * |
@@ -96,6 +96,7 @@ lh_stats(LHASH *lh, FILE *out) | |||
96 | fprintf(out, "down_load = %lu\n", lh->down_load); | 96 | fprintf(out, "down_load = %lu\n", lh->down_load); |
97 | #endif | 97 | #endif |
98 | } | 98 | } |
99 | LCRYPTO_ALIAS(lh_stats); | ||
99 | 100 | ||
100 | void | 101 | void |
101 | lh_node_stats(LHASH *lh, FILE *out) | 102 | lh_node_stats(LHASH *lh, FILE *out) |
@@ -109,6 +110,7 @@ lh_node_stats(LHASH *lh, FILE *out) | |||
109 | fprintf(out, "node %6u -> %3u\n", i, num); | 110 | fprintf(out, "node %6u -> %3u\n", i, num); |
110 | } | 111 | } |
111 | } | 112 | } |
113 | LCRYPTO_ALIAS(lh_node_stats); | ||
112 | 114 | ||
113 | void | 115 | void |
114 | lh_node_usage_stats(LHASH *lh, FILE *out) | 116 | lh_node_usage_stats(LHASH *lh, FILE *out) |
@@ -136,6 +138,7 @@ lh_node_usage_stats(LHASH *lh, FILE *out) | |||
136 | (int)(total / n_used), | 138 | (int)(total / n_used), |
137 | (int)((total % n_used) * 100 / n_used)); | 139 | (int)((total % n_used) * 100 / n_used)); |
138 | } | 140 | } |
141 | LCRYPTO_ALIAS(lh_node_usage_stats); | ||
139 | 142 | ||
140 | #else | 143 | #else |
141 | 144 | ||
@@ -152,6 +155,7 @@ lh_stats(const _LHASH *lh, FILE *fp) | |||
152 | BIO_free(bp); | 155 | BIO_free(bp); |
153 | end:; | 156 | end:; |
154 | } | 157 | } |
158 | LCRYPTO_ALIAS(lh_stats); | ||
155 | 159 | ||
156 | void | 160 | void |
157 | lh_node_stats(const _LHASH *lh, FILE *fp) | 161 | lh_node_stats(const _LHASH *lh, FILE *fp) |
@@ -166,6 +170,7 @@ lh_node_stats(const _LHASH *lh, FILE *fp) | |||
166 | BIO_free(bp); | 170 | BIO_free(bp); |
167 | end:; | 171 | end:; |
168 | } | 172 | } |
173 | LCRYPTO_ALIAS(lh_node_stats); | ||
169 | 174 | ||
170 | void | 175 | void |
171 | lh_node_usage_stats(const _LHASH *lh, FILE *fp) | 176 | lh_node_usage_stats(const _LHASH *lh, FILE *fp) |
@@ -180,6 +185,7 @@ lh_node_usage_stats(const _LHASH *lh, FILE *fp) | |||
180 | BIO_free(bp); | 185 | BIO_free(bp); |
181 | end:; | 186 | end:; |
182 | } | 187 | } |
188 | LCRYPTO_ALIAS(lh_node_usage_stats); | ||
183 | 189 | ||
184 | 190 | ||
185 | void | 191 | void |
@@ -210,6 +216,7 @@ lh_stats_bio(const _LHASH *lh, BIO *out) | |||
210 | BIO_printf(out, "down_load = %lu\n", lh->down_load); | 216 | BIO_printf(out, "down_load = %lu\n", lh->down_load); |
211 | #endif | 217 | #endif |
212 | } | 218 | } |
219 | LCRYPTO_ALIAS(lh_stats_bio); | ||
213 | 220 | ||
214 | void | 221 | void |
215 | lh_node_stats_bio(const _LHASH *lh, BIO *out) | 222 | lh_node_stats_bio(const _LHASH *lh, BIO *out) |
@@ -223,6 +230,7 @@ lh_node_stats_bio(const _LHASH *lh, BIO *out) | |||
223 | BIO_printf(out, "node %6u -> %3u\n", i, num); | 230 | BIO_printf(out, "node %6u -> %3u\n", i, num); |
224 | } | 231 | } |
225 | } | 232 | } |
233 | LCRYPTO_ALIAS(lh_node_stats_bio); | ||
226 | 234 | ||
227 | void | 235 | void |
228 | lh_node_usage_stats_bio(const _LHASH *lh, BIO *out) | 236 | lh_node_usage_stats_bio(const _LHASH *lh, BIO *out) |
@@ -250,5 +258,6 @@ lh_node_usage_stats_bio(const _LHASH *lh, BIO *out) | |||
250 | (int)(total / n_used), | 258 | (int)(total / n_used), |
251 | (int)((total % n_used) * 100 / n_used)); | 259 | (int)((total % n_used) * 100 / n_used)); |
252 | } | 260 | } |
261 | LCRYPTO_ALIAS(lh_node_usage_stats_bio); | ||
253 | 262 | ||
254 | #endif | 263 | #endif |