ntlm_fake_auth.cc File Reference
#include "squid.h"
#include "base64.h"
#include "helper/protocol_defines.h"
#include "ntlmauth/ntlmauth.h"
#include "ntlmauth/support_bits.cci"
#include <cctype>
#include <cstring>
Include dependency graph for ntlm_fake_auth.cc:

Go to the source code of this file.

Macros

#define IGNORANCE_IS_BLISS
 
#define SEND(X)   {debug("sending '%s' to squid\n",X); printf(X "\n");}
 
#define SEND2(X, Y)   {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);}
 
#define SEND3(X, Y, Z)   {debug("sending '" X "' to squid\n",Y,Z); printf(X "\n",Y,Z);}
 
#define SEND4(X, Y, Z, W)   {debug("sending '" X "' to squid\n",Y,Z,W); printf(X "\n",Y,Z,W);}
 

Functions

static void usage (void)
 
static void process_options (int argc, char *argv[])
 
int main (int argc, char *argv[])
 

Variables

const char * authenticate_ntlm_domain = "WORKGROUP"
 
int strip_domain_enabled = 0
 
int NTLM_packet_debug_enabled = 0
 
char * my_program_name = NULL
 

Macro Definition Documentation

#define IGNORANCE_IS_BLISS

Definition at line 34 of file ntlm_fake_auth.cc.

#define SEND (   X)    {debug("sending '%s' to squid\n",X); printf(X "\n");}

Definition at line 55 of file ntlm_fake_auth.cc.

Referenced by main().

#define SEND2 (   X,
 
)    {debug("sending '" X "' to squid\n",Y); printf(X "\n",Y);}

Definition at line 62 of file ntlm_fake_auth.cc.

Referenced by main().

#define SEND3 (   X,
  Y,
 
)    {debug("sending '" X "' to squid\n",Y,Z); printf(X "\n",Y,Z);}

Definition at line 63 of file ntlm_fake_auth.cc.

Referenced by main().

#define SEND4 (   X,
  Y,
  Z,
 
)    {debug("sending '" X "' to squid\n",Y,Z,W); printf(X "\n",Y,Z,W);}

Definition at line 64 of file ntlm_fake_auth.cc.

Referenced by main().

Function Documentation

static void process_options ( int  argc,
char *  argv[] 
)
static

Definition at line 92 of file ntlm_fake_auth.cc.

References debug_enabled, getopt(), NTLM_packet_debug_enabled, opterr, optopt, strip_domain_enabled, and usage().

Referenced by main().

static void usage ( void  )
static

Definition at line 80 of file ntlm_fake_auth.cc.

References my_program_name.

Referenced by process_options().

Variable Documentation

const char* authenticate_ntlm_domain = "WORKGROUP"

Definition at line 67 of file ntlm_fake_auth.cc.

Referenced by main().

char* my_program_name = NULL

Definition at line 77 of file ntlm_fake_auth.cc.

Referenced by main(), and usage().

int NTLM_packet_debug_enabled = 0

Definition at line 69 of file ntlm_fake_auth.cc.

Referenced by main(), and process_options().

int strip_domain_enabled = 0

Definition at line 68 of file ntlm_fake_auth.cc.

Referenced by main(), and process_options().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors