All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mschap.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LM_DIGEST_LENGTH   16
 
#define NT_DIGEST_LENGTH   16
 

Functions

void mschap_add_reply (REQUEST *request, unsigned char ident, char const *name, char const *value, size_t len)
 
void mschap_auth_response (char const *username, uint8_t const *nt_hash_hash, uint8_t const *ntresponse, uint8_t const *peer_challenge, uint8_t const *auth_challenge, char *response)
 
void mschap_challenge_hash (uint8_t const *peer_challenge, uint8_t const *auth_challenge, char const *user_name, uint8_t *challenge)
 
int mschap_ntpwdhash (uint8_t *out, char const *password)
 Converts Unicode password to 16-byte NT hash with MD4. More...
 

Macro Definition Documentation

#define LM_DIGEST_LENGTH   16

Definition at line 9 of file mschap.h.

#define NT_DIGEST_LENGTH   16

Definition at line 8 of file mschap.h.

Function Documentation

void mschap_add_reply ( REQUEST request,
unsigned char  ident,
char const *  name,
char const *  value,
size_t  len 
)

Definition at line 680 of file rlm_mschap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mschap_auth_response ( char const *  username,
uint8_t const *  nt_hash_hash,
uint8_t const *  ntresponse,
uint8_t const *  peer_challenge,
uint8_t const *  auth_challenge,
char *  response 
)

Definition at line 93 of file mschap.c.

+ Here is the call graph for this function:

void mschap_challenge_hash ( uint8_t const *  peer_challenge,
uint8_t const *  auth_challenge,
char const *  user_name,
uint8_t *  challenge 
)

Definition at line 72 of file mschap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int mschap_ntpwdhash ( uint8_t *  out,
char const *  password 
)

Converts Unicode password to 16-byte NT hash with MD4.

Parameters
[out]outPointer to 16 byte output buffer.
[in]passwordto encode.
Returns
  • 0 on success.
  • -1 on failure.

Definition at line 52 of file mschap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: