OLD | NEW |
1 /* crypto/lhash/lhash.h */ | 1 /* crypto/lhash/lhash.h */ |
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 * |
5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
8 * | 8 * |
9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 unsigned long num_comp_calls; | 156 unsigned long num_comp_calls; |
157 unsigned long num_insert; | 157 unsigned long num_insert; |
158 unsigned long num_replace; | 158 unsigned long num_replace; |
159 unsigned long num_delete; | 159 unsigned long num_delete; |
160 unsigned long num_no_delete; | 160 unsigned long num_no_delete; |
161 unsigned long num_retrieve; | 161 unsigned long num_retrieve; |
162 unsigned long num_retrieve_miss; | 162 unsigned long num_retrieve_miss; |
163 unsigned long num_hash_comps; | 163 unsigned long num_hash_comps; |
164 | 164 |
165 int error; | 165 int error; |
| 166 int iteration_state; |
166 } _LHASH; /* Do not use _LHASH directly, use LHASH_OF | 167 } _LHASH; /* Do not use _LHASH directly, use LHASH_OF |
167 * and friends */ | 168 * and friends */ |
168 | 169 |
169 #define LH_LOAD_MULT 256 | 170 #define LH_LOAD_MULT 256 |
170 | 171 |
171 /* Indicates a malloc() error in the last call, this is only bad | 172 /* Indicates a malloc() error in the last call, this is only bad |
172 * in lh_insert(). */ | 173 * in lh_insert(). */ |
173 #define lh_error(lh) ((lh)->error) | 174 #define lh_error(lh) ((lh)->error) |
174 | 175 |
175 _LHASH *lh_new(LHASH_HASH_FN_TYPE h, LHASH_COMP_FN_TYPE c); | 176 _LHASH *lh_new(LHASH_HASH_FN_TYPE h, LHASH_COMP_FN_TYPE c); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 233 |
233 DECLARE_LHASH_OF(OPENSSL_STRING); | 234 DECLARE_LHASH_OF(OPENSSL_STRING); |
234 DECLARE_LHASH_OF(OPENSSL_CSTRING); | 235 DECLARE_LHASH_OF(OPENSSL_CSTRING); |
235 | 236 |
236 #ifdef __cplusplus | 237 #ifdef __cplusplus |
237 } | 238 } |
238 #endif | 239 #endif |
239 | 240 |
240 #endif | 241 #endif |
241 | 242 |
OLD | NEW |