summaryrefslogtreecommitdiffstats
path: root/src/modules/rlm_mschap/mschap.h
blob: 6fcc485925772b5ebac5d5d35f1194759eb535b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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*/