]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/digest_auth/LDAP/digest_common.h
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / digest_auth / LDAP / 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_SYS_TYPES_H
30 #include <sys/types.h>
31 #endif
32 #if HAVE_SYS_STAT_H
33 #include <sys/stat.h>
34 #endif
35 #if HAVE_CRYPT_H
36 #include <crypt.h>
37 #endif
38
39 #include "hash.h"
40 #include "rfc2617.h"
41 #include "util.h"
42
43 typedef struct _request_data {
44 char *user;
45 char *realm;
46 char *password;
47 HASHHEX HHA1;
48 int parsed;
49 int error;
50 } RequestData;
51
52 /* to use a backend, include your backend.h file
53 * and define thusly:
54 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
55 * #define GetHHA1(A) MyGetHHA1(A)
56 */
57 typedef void HandleArguments(int, char **);
58 typedef void HHA1Creator(RequestData *);
59
60 #endif /* SQUID_DIGEST_COMMON_H_ */