FreeTDS API
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Classes | Typedefs | Functions | Variables
Authentication

Functions for handling authentication. More...

Classes

struct  tds_answer
 
struct  tds_ntlm_auth
 

Typedefs

typedef struct tds_answer TDSANSWER
 
typedef struct tds_ntlm_auth TDSNTLMAUTH
 

Functions

static int tds7_send_auth (TDSSOCKET *tds, const unsigned char *challenge, TDS_UINT flags)
 
static void tds_answer_challenge (const char *passwd, const unsigned char *challenge, TDS_UINT *flags, TDSANSWER *answer)
 Crypt a given password using schema required for NTLMv1 or NTLM2 authentication. More...
 
static void tds_convert_key (const unsigned char *key_56, DES_KEY *ks)
 
static void tds_encrypt_answer (const unsigned char *hash, const unsigned char *challenge, unsigned char *answer)
 
static int tds_ntlm_free (TDSSOCKET *tds, TDSAUTHENTICATION *tds_auth)
 
TDSAUTHENTICATIONtds_ntlm_get_auth (TDSSOCKET *tds)
 Build a NTLMSPP packet to send to server. More...
 
static int tds_ntlm_handle_next (TDSSOCKET *tds, struct tds_authentication *auth, size_t len)
 

Variables

static const unsigned char ntlm_id [] = "NTLMSSP"
 

Detailed Description

Functions for handling authentication.

Function Documentation

static void tds_answer_challenge ( const char *  passwd,
const unsigned char *  challenge,
TDS_UINT *  flags,
TDSANSWER answer 
)
static

Crypt a given password using schema required for NTLMv1 or NTLM2 authentication.

Parameters
passwdclear text domain password
challengechallenge data given by server
flagsNTLM flags from server side
answerbuffer where to store crypted password
TDSAUTHENTICATION* tds_ntlm_get_auth ( TDSSOCKET tds)

Build a NTLMSPP packet to send to server.

Parameters
tdsA pointer to the TDSSOCKET structure managing a client/server operation.
Returns
authentication info