All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mschap.h
Go to the documentation of this file.
1 /* Copyright 2006 The FreeRADIUS server project */
2 
3 #ifndef _MSCHAP_H
4 #define _MSCHAP_H
5 
6 RCSIDH(mschap_h, "$Id: 6fcc485925772b5ebac5d5d35f1194759eb535b9 $")
7 
8 #define NT_DIGEST_LENGTH 16
9 #define LM_DIGEST_LENGTH 16
10 
11 int mschap_ntpwdhash(uint8_t *out, char const *password);
12 void mschap_challenge_hash(uint8_t const *peer_challenge,
13  uint8_t const *auth_challenge,
14  char const *user_name, uint8_t *challenge );
15 
16 void mschap_auth_response(char const *username,
17  uint8_t const *nt_hash_hash,
18  uint8_t const *ntresponse,
19  uint8_t const *peer_challenge, uint8_t const *auth_challenge,
20  char *response);
21 void mschap_add_reply(REQUEST *request, unsigned char ident,
22  char const *name, char const *value, size_t len);
23 
24 
25 #endif /*_MSCHAP_H*/
#define RCSIDH(h, id)
Definition: build.h:136
static char const * name
int mschap_ntpwdhash(uint8_t *out, char const *password)
Converts Unicode password to 16-byte NT hash with MD4.
Definition: mschap.c:52
void mschap_add_reply(REQUEST *request, unsigned char ident, char const *name, char const *value, size_t len)
Definition: rlm_mschap.c:680
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: mschap.c:93
void mschap_challenge_hash(uint8_t const *peer_challenge, uint8_t const *auth_challenge, char const *user_name, uint8_t *challenge)
Definition: mschap.c:72