chap.c

Go to the documentation of this file.
00001 
00016 #include "includes.h"
00017 
00018 #include "common.h"
00019 #include "md5.h"
00020 #include "crypto.h"
00021 #include "chap.h"
00022 
00023 int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
00024               size_t challenge_len, u8 *response)
00025 {
00026         const u8 *addr[3];
00027         size_t len[3];
00028 
00029         addr[0] = &id;
00030         len[0] = 1;
00031         addr[1] = secret;
00032         len[1] = secret_len;
00033         addr[2] = challenge;
00034         len[2] = challenge_len;
00035         return md5_vector(3, addr, len, response);
00036 }
00037 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:51 2009 for hostapd by  doxygen 1.6.1