]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/digest_auth/eDirectory/digest_common.h
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / digest_auth / eDirectory / 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 #if HAVE_STDIO_H
15 #include <stdio.h>
16 #endif
17 #if HAVE_STDLIB_H
18 #include <stdlib.h>
19 #endif
20 #if HAVE_CTYPE_H
21 #include <ctype.h>
22 #endif
23 #if HAVE_UNISTD_H
24 #include <unistd.h>
25 #endif
26 #if HAVE_STRING_H
27 #include <string.h>
28 #endif
29 #if HAVE_STRINGS_H
30 #include <strings.h>
31 #endif
32 #if HAVE_SYS_TYPES_H
33 #include <sys/types.h>
34 #endif
35 #if HAVE_SYS_STAT_H
36 #include <sys/stat.h>
37 #endif
38 #if HAVE_CRYPT_H
39 #include <crypt.h>
40 #endif
41
42 #include "hash.h"
43 #include "rfc2617.h"
44 #include "util.h"
45
46 typedef struct _request_data {
47 char *user;
48 char *realm;
49 char *password;
50 HASHHEX HHA1;
51 int parsed;
52 int error;
53 } RequestData;
54
55 /* to use a backend, include your backend.h file
56 * and define thusly:
57 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
58 * #define GetHHA1(A) MyGetHHA1(A)
59 */
60 typedef void HandleArguments(int, char **);
61 typedef void HHA1Creator(RequestData *);
62
63 #endif /* SQUID_DIGEST_COMMON_H_ */