summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/lhash/lh_stats.c
diff options
context:
space:
mode:
authorbeck <>2023-07-07 13:40:44 +0000
committerbeck <>2023-07-07 13:40:44 +0000
commit6f5543ad3e9567cbb0c420be9104b1c9a41f8370 (patch)
tree4ff69f17732c4c2fea8cf75b4552dab0cd48119e /src/lib/libcrypto/lhash/lh_stats.c
parenta9cdc101468391df513beb27c13bf27170418093 (diff)
downloadopenbsd-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.c11
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}
99LCRYPTO_ALIAS(lh_stats);
99 100
100void 101void
101lh_node_stats(LHASH *lh, FILE *out) 102lh_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}
113LCRYPTO_ALIAS(lh_node_stats);
112 114
113void 115void
114lh_node_usage_stats(LHASH *lh, FILE *out) 116lh_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}
141LCRYPTO_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);
153end:; 156end:;
154} 157}
158LCRYPTO_ALIAS(lh_stats);
155 159
156void 160void
157lh_node_stats(const _LHASH *lh, FILE *fp) 161lh_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);
167end:; 171end:;
168} 172}
173LCRYPTO_ALIAS(lh_node_stats);
169 174
170void 175void
171lh_node_usage_stats(const _LHASH *lh, FILE *fp) 176lh_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);
181end:; 186end:;
182} 187}
188LCRYPTO_ALIAS(lh_node_usage_stats);
183 189
184 190
185void 191void
@@ -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}
219LCRYPTO_ALIAS(lh_stats_bio);
213 220
214void 221void
215lh_node_stats_bio(const _LHASH *lh, BIO *out) 222lh_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}
233LCRYPTO_ALIAS(lh_node_stats_bio);
226 234
227void 235void
228lh_node_usage_stats_bio(const _LHASH *lh, BIO *out) 236lh_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}
261LCRYPTO_ALIAS(lh_node_usage_stats_bio);
253 262
254#endif 263#endif