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 <chrono>
#include <cstring>
#include <thread>
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
 
unsigned int response_delay = 0
 
char * my_program_name = nullptr
 

Macro Definition Documentation

◆ IGNORANCE_IS_BLISS

#define IGNORANCE_IS_BLISS

Definition at line 34 of file ntlm_fake_auth.cc.

◆ SEND

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

Definition at line 57 of file ntlm_fake_auth.cc.

◆ SEND2

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

Definition at line 64 of file ntlm_fake_auth.cc.

◆ SEND3

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

Definition at line 65 of file ntlm_fake_auth.cc.

◆ SEND4

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

Definition at line 66 of file ntlm_fake_auth.cc.

Function Documentation

◆ main()

◆ process_options()

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

◆ usage()

static void usage ( void  )
static

Definition at line 83 of file ntlm_fake_auth.cc.

References my_program_name.

Referenced by process_options().

Variable Documentation

◆ authenticate_ntlm_domain

const char* authenticate_ntlm_domain = "WORKGROUP"

Definition at line 69 of file ntlm_fake_auth.cc.

Referenced by main().

◆ my_program_name

char* my_program_name = nullptr

Definition at line 80 of file ntlm_fake_auth.cc.

Referenced by main(), and usage().

◆ NTLM_packet_debug_enabled

int NTLM_packet_debug_enabled = 0

Definition at line 71 of file ntlm_fake_auth.cc.

Referenced by main(), and process_options().

◆ response_delay

unsigned int response_delay = 0

Definition at line 72 of file ntlm_fake_auth.cc.

Referenced by main(), and process_options().

◆ strip_domain_enabled

int strip_domain_enabled = 0

Definition at line 70 of file ntlm_fake_auth.cc.

Referenced by main(), and process_options().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors