#include "squid.h"
#include "base64.h"
#include <cerrno>
#include <cstring>
#include <cstdlib>
#include <ctime>
Go to the source code of this file.
Macros | |
#define | xmalloc malloc |
#define | xstrdup strdup |
#define | xfree free |
#define | PROGRAM "negotiate_wrapper" |
#define | VERSION "1.0.1" |
#define | MAX_AUTHTOKEN_LEN 65535 |
Functions | |
static const char * | LogTime () |
static void | usage () |
static void | closeFds (FILE *a, FILE *b, FILE *c, FILE *d) |
static int | processingLoop (FILE *FDKIN, FILE *FDKOUT, FILE *FDNIN, FILE *FDNOUT) |
int | main (int argc, char *const argv[]) |
Variables | |
static const unsigned char | ntlmProtocol [] = {'N', 'T', 'L', 'M', 'S', 'S', 'P', 0} |
Macro Definition Documentation
◆ MAX_AUTHTOKEN_LEN
#define MAX_AUTHTOKEN_LEN 65535 |
Definition at line 63 of file negotiate_wrapper.cc.
◆ PROGRAM
#define PROGRAM "negotiate_wrapper" |
Definition at line 58 of file negotiate_wrapper.cc.
◆ VERSION
#define VERSION "1.0.1" |
Definition at line 60 of file negotiate_wrapper.cc.
◆ xfree
#define xfree free |
Definition at line 54 of file negotiate_wrapper.cc.
◆ xmalloc
#define xmalloc malloc |
Definition at line 48 of file negotiate_wrapper.cc.
◆ xstrdup
#define xstrdup strdup |
Definition at line 51 of file negotiate_wrapper.cc.
Function Documentation
◆ closeFds()
|
static |
Definition at line 97 of file negotiate_wrapper.cc.
Referenced by main().
◆ LogTime()
|
static |
Definition at line 69 of file negotiate_wrapper.cc.
References now.
Referenced by main(), and processingLoop().
◆ main()
Definition at line 272 of file negotiate_wrapper.cc.
References closeFds(), debug_enabled, LogTime(), processingLoop(), PROGRAM, strerror(), usage(), VERSION, and xmalloc.
◆ processingLoop()
|
static |
Definition at line 110 of file negotiate_wrapper.cc.
References assert, base64_decode_final(), base64_decode_init(), BASE64_DECODE_LENGTH, base64_decode_update(), debug_enabled, LogTime(), MAX_AUTHTOKEN_LEN, ntlmProtocol, PROGRAM, safe_free, strerror(), xfree, and xmalloc.
Referenced by main().
◆ usage()
|
static |
Definition at line 86 of file negotiate_wrapper.cc.
Referenced by main().
Variable Documentation
◆ ntlmProtocol
|
static |
Definition at line 66 of file negotiate_wrapper.cc.
Referenced by processingLoop().