diff options
Diffstat (limited to 'src/modules/rlm_mschap/mschap.h')
-rw-r--r-- | src/modules/rlm_mschap/mschap.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/modules/rlm_mschap/mschap.h b/src/modules/rlm_mschap/mschap.h new file mode 100644 index 0000000..6fcc485 --- /dev/null +++ b/src/modules/rlm_mschap/mschap.h @@ -0,0 +1,25 @@ +/* Copyright 2006 The FreeRADIUS server project */ + +#ifndef _MSCHAP_H +#define _MSCHAP_H + +RCSIDH(mschap_h, "$Id$") + +#define NT_DIGEST_LENGTH 16 +#define LM_DIGEST_LENGTH 16 + +int mschap_ntpwdhash(uint8_t *out, char const *password); +void mschap_challenge_hash(uint8_t const *peer_challenge, + uint8_t const *auth_challenge, + char const *user_name, uint8_t *challenge ); + +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_add_reply(REQUEST *request, unsigned char ident, + char const *name, char const *value, size_t len); + + +#endif /*_MSCHAP_H*/ |