]>
Commit | Line | Data |
---|---|---|
0ff1980a | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 The Squid Software Foundation and contributors |
0ff1980a | 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 | /* | |
0ff1980a | 10 | * Digest helper API details. |
0ff1980a | 11 | */ |
12 | ||
605f2c3e AJ |
13 | #ifndef SQUID_DIGEST_COMMON_H_ |
14 | #define SQUID_DIGEST_COMMON_H_ | |
0ff1980a | 15 | |
54e8823b AJ |
16 | #include "hash.h" |
17 | #include "rfc2617.h" | |
18 | #include "util.h" | |
19 | ||
074d6a40 | 20 | #include <cstring> |
0ff1980a | 21 | #if HAVE_UNISTD_H |
22 | #include <unistd.h> | |
23 | #endif | |
0ff1980a | 24 | #if HAVE_SYS_STAT_H |
25 | #include <sys/stat.h> | |
26 | #endif | |
27 | #if HAVE_CRYPT_H | |
28 | #include <crypt.h> | |
29 | #endif | |
30 | ||
0ff1980a | 31 | typedef struct _request_data { |
6cb2818d | 32 | int channelId; |
0ff1980a | 33 | char *user; |
34 | char *realm; | |
ca6965d0 | 35 | char *password; |
0ff1980a | 36 | HASHHEX HHA1; |
37 | int parsed; | |
38 | int error; | |
39 | } RequestData; | |
40 | ||
26ac0430 AJ |
41 | /* to use a backend, include your backend.h file |
42 | * and define thusly: | |
0ff1980a | 43 | * #define ProcessArguments(A, B) MyHandleArguments(A,B) |
44 | * #define GetHHA1(A) MyGetHHA1(A) | |
45 | */ | |
ca6965d0 | 46 | typedef void HandleArguments(int, char **); |
0ff1980a | 47 | typedef void HHA1Creator(RequestData *); |
605f2c3e AJ |
48 | |
49 | #endif /* SQUID_DIGEST_COMMON_H_ */ | |
f53969cc | 50 |