wpa_supplicant / hostapd 2.0

mschapv2.h

Go to the documentation of this file.
00001 
00010 #ifndef MSCHAPV2_H
00011 #define MSCHAPV2_H
00012 
00013 #define MSCHAPV2_CHAL_LEN 16
00014 #define MSCHAPV2_NT_RESPONSE_LEN 24
00015 #define MSCHAPV2_AUTH_RESPONSE_LEN 20
00016 #define MSCHAPV2_MASTER_KEY_LEN 16
00017 
00018 const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
00019 int mschapv2_derive_response(const u8 *username, size_t username_len,
00020                              const u8 *password, size_t password_len,
00021                              int pwhash,
00022                              const u8 *auth_challenge,
00023                              const u8 *peer_challenge,
00024                              u8 *nt_response, u8 *auth_response,
00025                              u8 *master_key);
00026 int mschapv2_verify_auth_response(const u8 *auth_response,
00027                                   const u8 *buf, size_t buf_len);
00028 
00029 #endif /* MSCHAPV2_H */
00030 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines