#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/md5.h>
#include <freeradius-devel/util/sha1.h>
#include <ctype.h>
#include "smbdes.h"
#include "mschap.h"
Go to the source code of this file.
|
void | mschap_add_reply (request_t *request, uint8_t ident, fr_dict_attr_t const *da, char const *value, size_t len) |
|
void | mschap_auth_response (char const *username, size_t username_len, 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 challenge[static MSCHAP_CHALLENGE_LENGTH], uint8_t const peer_challenge[static MSCHAP_PEER_CHALLENGE_LENGTH], uint8_t const auth_challenge[static MSCHAP_PEER_AUTHENTICATOR_CHALLENGE_LENGTH], char const *user_name, size_t user_name_len) |
|
int | mschap_nt_password_hash (uint8_t out[static NT_DIGEST_LENGTH], char const *password) |
| Converts Unicode password to 16-byte NT hash with MD4. More...
|
|
◆ mschap_add_reply()
◆ mschap_auth_response()
void mschap_auth_response |
( |
char const * |
username, |
|
|
size_t |
username_len, |
|
|
uint8_t const * |
nt_hash_hash, |
|
|
uint8_t const * |
ntresponse, |
|
|
uint8_t const * |
peer_challenge, |
|
|
uint8_t const * |
auth_challenge, |
|
|
char * |
response |
|
) |
| |
◆ mschap_challenge_hash()
void mschap_challenge_hash |
( |
uint8_t |
challenge[static MSCHAP_CHALLENGE_LENGTH], |
|
|
uint8_t const |
peer_challenge[static MSCHAP_PEER_CHALLENGE_LENGTH], |
|
|
uint8_t const |
auth_challenge[static MSCHAP_PEER_AUTHENTICATOR_CHALLENGE_LENGTH], |
|
|
char const * |
user_name, |
|
|
size_t |
user_name_len |
|
) |
| |
◆ mschap_nt_password_hash()
int mschap_nt_password_hash |
( |
uint8_t |
out[static NT_DIGEST_LENGTH], |
|
|
char const * |
password |
|
) |
| |
Converts Unicode password to 16-byte NT hash with MD4.
- Parameters
-
[out] | out | Pointer to 16 byte output buffer. |
[in] | password | to encode. |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 52 of file mschap.c.