]>
Commit | Line | Data |
---|---|---|
7ed0602b | 1 | /* |
2 | * digest_common.h | |
3 | * | |
4 | * AUTHOR: Robert Collins. | |
5 | * | |
6 | * Digest helper API details. | |
7 | * | |
8 | * Copyright (c) 2003 Robert Collins <robertc@squid-cache.org> | |
9 | */ | |
10 | ||
11 | #ifndef _SQUID_DIGEST_COMMON_H_ | |
12 | #define _SQUID_DIGEST_COMMON_H_ | |
13 | ||
14 | #include "config.h" | |
15 | #if HAVE_STDIO_H | |
16 | #include <stdio.h> | |
17 | #endif | |
18 | #if HAVE_STDLIB_H | |
19 | #include <stdlib.h> | |
20 | #endif | |
21 | #if HAVE_UNISTD_H | |
22 | #include <unistd.h> | |
23 | #endif | |
24 | #if HAVE_STRING_H | |
25 | #include <string.h> | |
26 | #endif | |
27 | #if HAVE_SYS_TYPES_H | |
28 | #include <sys/types.h> | |
29 | #endif | |
30 | #if HAVE_SYS_STAT_H | |
31 | #include <sys/stat.h> | |
32 | #endif | |
33 | #if HAVE_CRYPT_H | |
34 | #include <crypt.h> | |
35 | #endif | |
36 | ||
37 | #include "util.h" | |
38 | #include "hash.h" | |
39 | #include "rfc2617.h" | |
40 | ||
41 | typedef struct _request_data { | |
42 | char *user; | |
43 | char *realm; | |
44 | char *password; | |
45 | HASHHEX HHA1; | |
46 | int parsed; | |
47 | int error; | |
48 | } RequestData; | |
49 | ||
50 | /* to use a backend, include your backend.h file | |
51 | * and define thusly: | |
52 | * #define ProcessArguments(A, B) MyHandleArguments(A,B) | |
53 | * #define GetHHA1(A) MyGetHHA1(A) | |
54 | */ | |
55 | typedef void HandleArguments(int, char **); | |
56 | typedef void HHA1Creator(RequestData *); | |
57 | #endif /* _SQUID_DIGEST_COMMON_H_ */ |