]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/digest_auth/file/digest_common.h
Sync with trunk rev.13542
[thirdparty/squid.git] / helpers / digest_auth / file / digest_common.h
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 "hash.h"
15 #include "rfc2617.h"
16 #include "util.h"
17
18 #include <cstring>
19 #if HAVE_UNISTD_H
20 #include <unistd.h>
21 #endif
22 #if HAVE_SYS_STAT_H
23 #include <sys/stat.h>
24 #endif
25 #if HAVE_CRYPT_H
26 #include <crypt.h>
27 #endif
28
29 typedef struct _request_data {
30 int channelId;
31 char *user;
32 char *realm;
33 char *password;
34 HASHHEX HHA1;
35 int parsed;
36 int error;
37 } RequestData;
38
39 /* to use a backend, include your backend.h file
40 * and define thusly:
41 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
42 * #define GetHHA1(A) MyGetHHA1(A)
43 */
44 typedef void HandleArguments(int, char **);
45 typedef void HHA1Creator(RequestData *);
46
47 #endif /* SQUID_DIGEST_COMMON_H_ */