]> git.ipfire.org Git - thirdparty/squid.git/blame - helpers/digest_auth/eDirectory/digest_common.h
SourceFormat Enforcement
[thirdparty/squid.git] / helpers / digest_auth / eDirectory / digest_common.h
CommitLineData
89f77e43 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
605f2c3e
AJ
11#ifndef SQUID_DIGEST_COMMON_H_
12#define SQUID_DIGEST_COMMON_H_
89f77e43 13
89f77e43 14#if HAVE_STDIO_H
15#include <stdio.h>
16#endif
17#if HAVE_STDLIB_H
18#include <stdlib.h>
19#endif
3a481edd 20#if HAVE_CTYPE_H
21#include <ctype.h>
22#endif
89f77e43 23#if HAVE_UNISTD_H
24#include <unistd.h>
25#endif
26#if HAVE_STRING_H
27#include <string.h>
28#endif
3a481edd 29#if HAVE_STRINGS_H
30#include <strings.h>
31#endif
89f77e43 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
89f77e43 42#include "hash.h"
43#include "rfc2617.h"
602d9612 44#include "util.h"
89f77e43 45
46typedef struct _request_data {
47 char *user;
48 char *realm;
49 char *password;
50 HASHHEX HHA1;
51 int parsed;
52 int error;
53} RequestData;
54
26ac0430
AJ
55/* to use a backend, include your backend.h file
56 * and define thusly:
89f77e43 57 * #define ProcessArguments(A, B) MyHandleArguments(A,B)
58 * #define GetHHA1(A) MyGetHHA1(A)
59 */
60typedef void HandleArguments(int, char **);
61typedef void HHA1Creator(RequestData *);
605f2c3e
AJ
62
63#endif /* SQUID_DIGEST_COMMON_H_ */