![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Structures and functions for parsing raw network packets. More...
#include <freeradius-devel/util/md5.h>
Include dependency graph for chap.h:Go to the source code of this file.
Macros | |
| #define | FR_CHAP_CHALLENGE_LENGTH (MD5_DIGEST_LENGTH) |
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. | |
Structures and functions for parsing raw network packets.
Definition in file chap.h.
| #define FR_CHAP_CHALLENGE_LENGTH (MD5_DIGEST_LENGTH) |
| 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.
Here is the call graph for this function:
Here is the caller graph for this function:
1.9.8