diff options
Diffstat (limited to 'src/lib/libcrypto/lhash/lh_stats.c')
-rw-r--r-- | src/lib/libcrypto/lhash/lh_stats.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/lhash/lh_stats.c b/src/lib/libcrypto/lhash/lh_stats.c index ee0600060e..39ea2885f4 100644 --- a/src/lib/libcrypto/lhash/lh_stats.c +++ b/src/lib/libcrypto/lhash/lh_stats.c | |||
@@ -63,12 +63,12 @@ | |||
63 | * and things should work as expected */ | 63 | * and things should work as expected */ |
64 | #include "cryptlib.h" | 64 | #include "cryptlib.h" |
65 | 65 | ||
66 | #ifndef NO_BIO | 66 | #ifndef OPENSSL_NO_BIO |
67 | #include <openssl/bio.h> | 67 | #include <openssl/bio.h> |
68 | #endif | 68 | #endif |
69 | #include <openssl/lhash.h> | 69 | #include <openssl/lhash.h> |
70 | 70 | ||
71 | #ifdef NO_BIO | 71 | #ifdef OPENSSL_NO_BIO |
72 | 72 | ||
73 | void lh_stats(LHASH *lh, FILE *out) | 73 | void lh_stats(LHASH *lh, FILE *out) |
74 | { | 74 | { |
@@ -88,7 +88,7 @@ void lh_stats(LHASH *lh, FILE *out) | |||
88 | fprintf(out,"num_retrieve = %lu\n",lh->num_retrieve); | 88 | fprintf(out,"num_retrieve = %lu\n",lh->num_retrieve); |
89 | fprintf(out,"num_retrieve_miss = %lu\n",lh->num_retrieve_miss); | 89 | fprintf(out,"num_retrieve_miss = %lu\n",lh->num_retrieve_miss); |
90 | fprintf(out,"num_hash_comps = %lu\n",lh->num_hash_comps); | 90 | fprintf(out,"num_hash_comps = %lu\n",lh->num_hash_comps); |
91 | #ifdef DEBUG | 91 | #if 0 |
92 | fprintf(out,"p = %u\n",lh->p); | 92 | fprintf(out,"p = %u\n",lh->p); |
93 | fprintf(out,"pmax = %u\n",lh->pmax); | 93 | fprintf(out,"pmax = %u\n",lh->pmax); |
94 | fprintf(out,"up_load = %lu\n",lh->up_load); | 94 | fprintf(out,"up_load = %lu\n",lh->up_load); |
@@ -138,8 +138,8 @@ void lh_node_usage_stats(LHASH *lh, FILE *out) | |||
138 | 138 | ||
139 | #else | 139 | #else |
140 | 140 | ||
141 | #ifndef NO_FP_API | 141 | #ifndef OPENSSL_NO_FP_API |
142 | void lh_stats(LHASH *lh, FILE *fp) | 142 | void lh_stats(const LHASH *lh, FILE *fp) |
143 | { | 143 | { |
144 | BIO *bp; | 144 | BIO *bp; |
145 | 145 | ||
@@ -151,7 +151,7 @@ void lh_stats(LHASH *lh, FILE *fp) | |||
151 | end:; | 151 | end:; |
152 | } | 152 | } |
153 | 153 | ||
154 | void lh_node_stats(LHASH *lh, FILE *fp) | 154 | void lh_node_stats(const LHASH *lh, FILE *fp) |
155 | { | 155 | { |
156 | BIO *bp; | 156 | BIO *bp; |
157 | 157 | ||
@@ -163,7 +163,7 @@ void lh_node_stats(LHASH *lh, FILE *fp) | |||
163 | end:; | 163 | end:; |
164 | } | 164 | } |
165 | 165 | ||
166 | void lh_node_usage_stats(LHASH *lh, FILE *fp) | 166 | void lh_node_usage_stats(const LHASH *lh, FILE *fp) |
167 | { | 167 | { |
168 | BIO *bp; | 168 | BIO *bp; |
169 | 169 | ||
@@ -177,7 +177,7 @@ end:; | |||
177 | 177 | ||
178 | #endif | 178 | #endif |
179 | 179 | ||
180 | void lh_stats_bio(LHASH *lh, BIO *out) | 180 | void lh_stats_bio(const LHASH *lh, BIO *out) |
181 | { | 181 | { |
182 | char buf[128]; | 182 | char buf[128]; |
183 | 183 | ||
@@ -213,7 +213,7 @@ void lh_stats_bio(LHASH *lh, BIO *out) | |||
213 | BIO_puts(out,buf); | 213 | BIO_puts(out,buf); |
214 | sprintf(buf,"num_hash_comps = %lu\n",lh->num_hash_comps); | 214 | sprintf(buf,"num_hash_comps = %lu\n",lh->num_hash_comps); |
215 | BIO_puts(out,buf); | 215 | BIO_puts(out,buf); |
216 | #ifdef DEBUG | 216 | #if 0 |
217 | sprintf(buf,"p = %u\n",lh->p); | 217 | sprintf(buf,"p = %u\n",lh->p); |
218 | BIO_puts(out,buf); | 218 | BIO_puts(out,buf); |
219 | sprintf(buf,"pmax = %u\n",lh->pmax); | 219 | sprintf(buf,"pmax = %u\n",lh->pmax); |
@@ -225,7 +225,7 @@ void lh_stats_bio(LHASH *lh, BIO *out) | |||
225 | #endif | 225 | #endif |
226 | } | 226 | } |
227 | 227 | ||
228 | void lh_node_stats_bio(LHASH *lh, BIO *out) | 228 | void lh_node_stats_bio(const LHASH *lh, BIO *out) |
229 | { | 229 | { |
230 | LHASH_NODE *n; | 230 | LHASH_NODE *n; |
231 | unsigned int i,num; | 231 | unsigned int i,num; |
@@ -240,7 +240,7 @@ void lh_node_stats_bio(LHASH *lh, BIO *out) | |||
240 | } | 240 | } |
241 | } | 241 | } |
242 | 242 | ||
243 | void lh_node_usage_stats_bio(LHASH *lh, BIO *out) | 243 | void lh_node_usage_stats_bio(const LHASH *lh, BIO *out) |
244 | { | 244 | { |
245 | LHASH_NODE *n; | 245 | LHASH_NODE *n; |
246 | unsigned long num; | 246 | unsigned long num; |