The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions for parsing raw network packets. More...
#include <freeradius-devel/util/chap.h>
Go to the source code of this file.
Functions | |
void | fr_chap_encode (uint8_t out[static 1+FR_CHAP_CHALLENGE_LENGTH], uint8_t id, uint8_t const *challenge, size_t challenge_len, char const *password, size_t password_len) |
Encode a CHAP password. More... | |
Functions for parsing raw network packets.
Definition in file chap.c.
void fr_chap_encode | ( | uint8_t | out[static 1+FR_CHAP_CHALLENGE_LENGTH], |
uint8_t | id, | ||
uint8_t const * | challenge, | ||
size_t | challenge_len, | ||
char const * | password, | ||
size_t | password_len | ||
) |
Encode a CHAP password.
[out] | out | An output buffer of 17 bytes (id + MD5 digest). |
[in] | id | CHAP ID, a random ID for request/response matching. |
[in] | challenge | the CHAP challenge |
[in] | challenge_len | Length of the challenge. |
[in] | password | Input password to hash. |
[in] | password_len | Length of input password. |
Definition at line 34 of file chap.c.