]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/digest/eDirectory/digest_common.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / auth / digest / eDirectory / digest_common.h
CommitLineData
89f77e43 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
89f77e43 3 *
ca02e0ec
AJ
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/*
89f77e43 10 * Digest helper API details.
89f77e43 11 */
12
605f2c3e
AJ
13#ifndef SQUID_DIGEST_COMMON_H_
14#define SQUID_DIGEST_COMMON_H_
89f77e43 15
d4d7f6dd
AJ
16#include "hash.h"
17#include "rfc2617.h"
18#include "util.h"
19
074d6a40
AJ
20#include <cctype>
21#include <cstdlib>
22#include <cstring>
89f77e43 23#if HAVE_UNISTD_H
24#include <unistd.h>
25#endif
3a481edd 26#if HAVE_STRINGS_H
27#include <strings.h>
28#endif
89f77e43 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
89f77e43 39typedef struct _request_data {
6cb2818d 40 int channelId;
89f77e43 41 char *user;
42 char *realm;
43 char *password;
44 HASHHEX HHA1;
45 int parsed;
46 int error;
47} RequestData;
48
26ac0430
AJ
49/* to use a backend, include your backend.h file
50 * and define thusly:
89f77e43 51 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
52 * #define GetHHA1(A) MyGetHHA1(A)
53 */
54typedef void HandleArguments(int, char **);
55typedef void HHA1Creator(RequestData *);
605f2c3e
AJ
56
57#endif /* SQUID_DIGEST_COMMON_H_ */
f53969cc 58