digest_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_AUTH_DIGEST_EDIRECTORY_DIGEST_COMMON_H
14 #define SQUID_SRC_AUTH_DIGEST_EDIRECTORY_DIGEST_COMMON_H
15 
16 #include "hash.h"
17 #include "rfc2617.h"
18 #include "util.h"
19 
20 #include <cctype>
21 #include <cstdlib>
22 #include <cstring>
23 #if HAVE_UNISTD_H
24 #include <unistd.h>
25 #endif
26 #if HAVE_STRINGS_H
27 #include <strings.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 typedef struct _request_data {
40  int channelId;
41  char *user;
42  char *realm;
43  char *password;
45  int parsed;
46  int error;
47 } RequestData;
48 
49 /* to use a backend, include your backend.h file
50  * and define thusly:
51  * #define ProcessArguments(A, B) MyHandleArguments(A,B)
52  * #define GetHHA1(A) MyGetHHA1(A)
53  */
54 typedef void HandleArguments(int, char **);
55 typedef void HHA1Creator(RequestData *);
56 
57 #endif /* SQUID_SRC_AUTH_DIGEST_EDIRECTORY_DIGEST_COMMON_H */
58 
void HandleArguments(int, char **)
Definition: digest_common.h:54
struct _request_data RequestData
void HHA1Creator(RequestData *)
Definition: digest_common.h:55
char HASHHEX[HASHHEXLEN+1]
Definition: rfc2617.h:33

 

Introduction

Documentation

Support

Miscellaneous