diff options
author | sam <sam@FreeBSD.org> | 2005-06-13 17:00:32 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-06-13 17:00:32 +0000 |
commit | d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0 (patch) | |
tree | 5b11e5f1130886853d82813087f4d19c53b3e668 /contrib/hostapd/ms_funcs.c | |
parent | 15d1673cd63b48b8c42d611ff8f1b3be6c6748bc (diff) | |
download | FreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.zip FreeBSD-src-d1a1fd4aa94cd9c5cb443c4c1337f91c8c46fde0.tar.gz |
stripped down import of hostapd 0.3.9
Approved by: re (dwhite)
Diffstat (limited to 'contrib/hostapd/ms_funcs.c')
-rw-r--r-- | contrib/hostapd/ms_funcs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/hostapd/ms_funcs.c b/contrib/hostapd/ms_funcs.c index 9c50185..590b589 100644 --- a/contrib/hostapd/ms_funcs.c +++ b/contrib/hostapd/ms_funcs.c @@ -158,12 +158,14 @@ void get_master_key(const u8 *password_hash_hash, const u8 *nt_response, }; const unsigned char *addr[3]; const size_t len[3] = { 16, 24, sizeof(magic1) }; + u8 hash[SHA1_MAC_LEN]; addr[0] = password_hash_hash; addr[1] = nt_response; addr[2] = magic1; - sha1_vector(3, addr, len, master_key); + sha1_vector(3, addr, len, hash); + memcpy(master_key, hash, 16); } |