]>
Commit | Line | Data |
---|---|---|
7ed0602b | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
7ed0602b | 3 | * |
ca02e0ec AJ |
4 | * Squid software is distributed under GPLv2+ license and includes |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
9 | /* | |
7ed0602b | 10 | * Digest helper API details. |
7ed0602b | 11 | */ |
12 | ||
605f2c3e AJ |
13 | #ifndef SQUID_DIGEST_COMMON_H_ |
14 | #define SQUID_DIGEST_COMMON_H_ | |
7ed0602b | 15 | |
d4d7f6dd AJ |
16 | #include "hash.h" |
17 | #include "rfc2617.h" | |
18 | #include "util.h" | |
19 | ||
074d6a40 AJ |
20 | #include <cctype> |
21 | #include <cstdlib> | |
22 | #include <cstring> | |
7ed0602b | 23 | #if HAVE_UNISTD_H |
24 | #include <unistd.h> | |
25 | #endif | |
7ed0602b | 26 | #if HAVE_SYS_TYPES_H |
27 | #include <sys/types.h> | |
28 | #endif | |
29 | #if HAVE_SYS_STAT_H | |
30 | #include <sys/stat.h> | |
31 | #endif | |
32 | #if HAVE_CRYPT_H | |
33 | #include <crypt.h> | |
34 | #endif | |
35 | ||
7ed0602b | 36 | typedef struct _request_data { |
6cb2818d | 37 | int channelId; |
7ed0602b | 38 | char *user; |
39 | char *realm; | |
40 | char *password; | |
41 | HASHHEX HHA1; | |
42 | int parsed; | |
43 | int error; | |
44 | } RequestData; | |
45 | ||
26ac0430 AJ |
46 | /* to use a backend, include your backend.h file |
47 | * and define thusly: | |
7ed0602b | 48 | * #define ProcessArguments(A, B) MyHandleArguments(A,B) |
49 | * #define GetHHA1(A) MyGetHHA1(A) | |
50 | */ | |
51 | typedef void HandleArguments(int, char **); | |
52 | typedef void HHA1Creator(RequestData *); | |
605f2c3e AJ |
53 | |
54 | #endif /* SQUID_DIGEST_COMMON_H_ */ | |
f53969cc | 55 |