source: rtems-libbsd/freebsd/contrib/wpa/src/eap_peer/mschapv2.h @ 9c9d11b

55-freebsd-126-freebsd-12
Last change on this file since 9c9d11b was 9c9d11b, checked in by Sichen Zhao <1473996754@…>, on 08/01/17 at 12:43:41

Import wpa from FreeBSD

  • Property mode set to 100644
File size: 834 bytes
Line 
1/*
2 * MSCHAPV2 (RFC 2759)
3 * Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef MSCHAPV2_H
10#define MSCHAPV2_H
11
12#define MSCHAPV2_CHAL_LEN 16
13#define MSCHAPV2_NT_RESPONSE_LEN 24
14#define MSCHAPV2_AUTH_RESPONSE_LEN 20
15#define MSCHAPV2_MASTER_KEY_LEN 16
16
17const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
18int mschapv2_derive_response(const u8 *username, size_t username_len,
19                             const u8 *password, size_t password_len,
20                             int pwhash,
21                             const u8 *auth_challenge,
22                             const u8 *peer_challenge,
23                             u8 *nt_response, u8 *auth_response,
24                             u8 *master_key);
25int mschapv2_verify_auth_response(const u8 *auth_response,
26                                  const u8 *buf, size_t buf_len);
27
28#endif /* MSCHAPV2_H */
Note: See TracBrowser for help on using the repository browser.