b5d6ab777c4d8e2ba521c0914d4a7f554ccc337c
[freeradius.git] / src / modules / rlm_mschap / mschap.h
1 /* Copyright 2006 The FreeRADIUS server project */
2
3 #ifndef _MSCHAP_H
4 #define _MSCHAP_H
5
6 RCSIDH(mschap_h, "$Id$")
7
8 void mschap_ntpwdhash (uint8_t *szHash, char const *szPassword);
9 void mschap_challenge_hash(uint8_t const *peer_challenge,
10                             uint8_t const *auth_challenge,
11                             char const *user_name, uint8_t *challenge );
12
13 void mschap_auth_response(char const *username,
14                           uint8_t const *nt_hash_hash,
15                           uint8_t const *ntresponse,
16                           uint8_t const *peer_challenge, uint8_t const *auth_challenge,
17                           char *response);
18 void mschap_add_reply(REQUEST *request, unsigned char ident,
19                       char const *name, char const *value, int len);
20
21
22 #endif /*_MSCHAP_H*/