squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
auth
digest
LDAP
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_DIGEST_COMMON_H_
14
#define SQUID_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_SYS_TYPES_H
27
#include <sys/types.h>
28
#endif
29
#if HAVE_SYS_STAT_H
30
#include <sys/stat.h>
31
#endif
32
#if HAVE_CRYPT_H
33
#include <crypt.h>
34
#endif
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
RequestData
struct _request_data RequestData
HandleArguments
void HandleArguments(int, char **)
Definition:
digest_common.h:54
HHA1Creator
void HHA1Creator(RequestData *)
Definition:
digest_common.h:55
hash.h
rfc2617.h
HASHHEX
char HASHHEX[HASHHEXLEN+1]
Definition:
rfc2617.h:33
_request_data
Definition:
digest_common.h:39
_request_data::HHA1
HASHHEX HHA1
Definition:
digest_common.h:44
_request_data::channelId
int channelId
Definition:
digest_common.h:40
_request_data::error
int error
Definition:
digest_common.h:46
_request_data::password
char * password
Definition:
digest_common.h:43
_request_data::user
char * user
Definition:
digest_common.h:41
_request_data::realm
char * realm
Definition:
digest_common.h:42
_request_data::parsed
int parsed
Definition:
digest_common.h:45
util.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive