]> git.ipfire.org Git - thirdparty/squid.git/blob - helpers/digest_auth/LDAP/digest_common.h
426811cbdc86c3e95983f77cf158e3484c32b8ca
[thirdparty/squid.git] / helpers / digest_auth / LDAP / digest_common.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
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 /*
10 * Digest helper API details.
11 */
12
13 #ifndef SQUID_DIGEST_COMMON_H_
14 #define SQUID_DIGEST_COMMON_H_
15
16 #include <cctype>
17 #include <cstdlib>
18 #include <cstring>
19 #if HAVE_UNISTD_H
20 #include <unistd.h>
21 #endif
22 #if HAVE_SYS_TYPES_H
23 #include <sys/types.h>
24 #endif
25 #if HAVE_SYS_STAT_H
26 #include <sys/stat.h>
27 #endif
28 #if HAVE_CRYPT_H
29 #include <crypt.h>
30 #endif
31
32 #include "hash.h"
33 #include "rfc2617.h"
34 #include "util.h"
35
36 typedef struct _request_data {
37 int channelId;
38 char *user;
39 char *realm;
40 char *password;
41 HASHHEX HHA1;
42 int parsed;
43 int error;
44 } RequestData;
45
46 /* to use a backend, include your backend.h file
47 * and define thusly:
48 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
49 * #define GetHHA1(A) MyGetHHA1(A)
50 */
51 typedef void HandleArguments(int, char **);
52 typedef void HHA1Creator(RequestData *);
53
54 #endif /* SQUID_DIGEST_COMMON_H_ */
55