diff options
Diffstat (limited to 'src/lib/libcrypto/lhash/lhash.c')
-rw-r--r-- | src/lib/libcrypto/lhash/lhash.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/lhash/lhash.c b/src/lib/libcrypto/lhash/lhash.c index 81660419c7..cd69f6fec1 100644 --- a/src/lib/libcrypto/lhash/lhash.c +++ b/src/lib/libcrypto/lhash/lhash.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: lhash.c,v 1.21 2024/01/24 14:02:52 jsing Exp $ */ | 1 | /* $OpenBSD: lhash.c,v 1.22 2024/03/02 11:11:11 tb 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 | * |
@@ -103,6 +103,8 @@ | |||
103 | #include <openssl/crypto.h> | 103 | #include <openssl/crypto.h> |
104 | #include <openssl/lhash.h> | 104 | #include <openssl/lhash.h> |
105 | 105 | ||
106 | #include "lhash_local.h" | ||
107 | |||
106 | #undef MIN_NODES | 108 | #undef MIN_NODES |
107 | #define MIN_NODES 16 | 109 | #define MIN_NODES 16 |
108 | #define UP_LOAD (2*LH_LOAD_MULT) /* load times 256 (default 2) */ | 110 | #define UP_LOAD (2*LH_LOAD_MULT) /* load times 256 (default 2) */ |
@@ -157,6 +159,13 @@ lh_free(_LHASH *lh) | |||
157 | } | 159 | } |
158 | LCRYPTO_ALIAS(lh_free); | 160 | LCRYPTO_ALIAS(lh_free); |
159 | 161 | ||
162 | int | ||
163 | lh_error(_LHASH *lh) | ||
164 | { | ||
165 | return lh->error; | ||
166 | } | ||
167 | LCRYPTO_ALIAS(lh_error); | ||
168 | |||
160 | void * | 169 | void * |
161 | lh_insert(_LHASH *lh, void *data) | 170 | lh_insert(_LHASH *lh, void *data) |
162 | { | 171 | { |