diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-01-11 14:11:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-01-11 17:50:27 +0000 |
commit | e6b5c341b94d357b0158ad74b12edd51399a4b87 (patch) | |
tree | 0957d4adb18236b4f70e0edf836023d7b39a0d23 /crypto/lhash | |
parent | 8e423bde2561bcddbc1d67f1fcc182d7dfa3f04d (diff) |
Inline LHASH_OF
Make LHASH_OF use static inline functions.
Add new lh_get_down_load and lh_set_down_load functions and their
typesafe inline equivalents.
Make lh_error a function instead of a macro.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/lhash')
-rw-r--r-- | crypto/lhash/lhash.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crypto/lhash/lhash.c b/crypto/lhash/lhash.c index 4018b60556..4642bda322 100644 --- a/crypto/lhash/lhash.c +++ b/crypto/lhash/lhash.c @@ -422,3 +422,18 @@ unsigned long lh_num_items(const _LHASH *lh) { return lh ? lh->num_items : 0; } + +unsigned long lh_get_down_load(const _LHASH *lh) +{ + return lh->down_load; +} + +void lh_set_down_load(_LHASH *lh, unsigned long down_load) +{ + lh->down_load = down_load; +} + +int lh_error(_LHASH *lh) +{ + return lh->error; +} |