negotiate_sspi_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 "sspi/sspwin32.h"
#include "util.h"
#include <cctype>
Include dependency graph for negotiate_sspi_auth.cc:

Go to the source code of this file.

Macros

#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);
 

Functions

char * negotiate_check_auth (SSP_blobP auth, int auth_length)
 
void usage ()
 
void process_options (int argc, char *argv[])
 
static bool token_decode (size_t *decodedLen, uint8_t decoded[], const char *buf)
 
int manage_request ()
 
int main (int argc, char *argv[])
 

Variables

int Negotiate_packet_debug_enabled = 0
 
static int have_serverblob
 
char * my_program_name = nullptr
 

Macro Definition Documentation

◆ SEND

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

Definition at line 63 of file negotiate_sspi_auth.cc.

◆ SEND2

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

Definition at line 69 of file negotiate_sspi_auth.cc.

◆ SEND3

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

Definition at line 70 of file negotiate_sspi_auth.cc.

Function Documentation

◆ main()

◆ manage_request()

◆ negotiate_check_auth()

char * negotiate_check_auth ( SSP_blobP  auth,
int  auth_length 
)

◆ process_options()

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

Definition at line 94 of file negotiate_sspi_auth.cc.

References debug_enabled, getopt(), Negotiate_packet_debug_enabled, opterr, optopt, and usage().

Referenced by main().

◆ token_decode()

static bool token_decode ( size_t decodedLen,
uint8_t  decoded[],
const char *  buf 
)
static

◆ usage()

void usage ( void  )

Definition at line 83 of file negotiate_sspi_auth.cc.

References my_program_name.

Referenced by process_options().

Variable Documentation

◆ have_serverblob

int have_serverblob
static

Definition at line 60 of file negotiate_sspi_auth.cc.

Referenced by manage_request().

◆ my_program_name

char* my_program_name = nullptr

Definition at line 80 of file negotiate_sspi_auth.cc.

Referenced by main(), and usage().

◆ Negotiate_packet_debug_enabled

int Negotiate_packet_debug_enabled = 0

Definition at line 59 of file negotiate_sspi_auth.cc.

Referenced by manage_request(), and process_options().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors