mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
cash the hash for auth cache
This commit is contained in:
1 parent
85c431b96e
commit
62be3c7b5b
3 files changed
+70
-15
No files matched your search
+6
-2
@@ -192,6 +192,9 @@ int
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MAX_HASH_SIZE (16)
|
||||
|
||||
|
||||
extern char* NULLADDR;
|
||||
typedef enum {
|
||||
CLIENT,
|
||||
@@ -585,6 +588,7 @@ struct clientparam {
|
||||
waitserver64,
|
||||
cycles,
|
||||
threadid;
|
||||
uint8_t hash[MAX_HASH_SIZE];
|
||||
|
||||
int redirected,
|
||||
operation,
|
||||
@@ -755,10 +759,10 @@ struct child {
|
||||
unsigned char **argv;
|
||||
};
|
||||
|
||||
#define MAX_HASH_SIZE (16)
|
||||
|
||||
struct hashtable {
|
||||
void (*index2hash)(const struct hashtable *ht, const void *index, uint8_t *hash);
|
||||
void (*index2hash_add)(const struct hashtable *ht, void *index, uint8_t *hash);
|
||||
void (*index2hash_search)(const struct hashtable *ht, void *index, uint8_t *hash);
|
||||
unsigned recsize;
|
||||
unsigned hash_size;
|
||||
unsigned poolsize;
|
||||
|
||||
Reference in new issue
Block a user