mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
79da74a20c
Generate a SHA1 hash -based UUID from the local MAC address if the UUID was not configured. This makes it easier to prepare for WPS since there is no need to generate an UUID.
26 lines
685 B
C
26 lines
685 B
C
/*
|
|
* Universally Unique IDentifier (UUID)
|
|
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
* license.
|
|
*
|
|
* See README and COPYING for more details.
|
|
*/
|
|
|
|
#ifndef UUID_H
|
|
#define UUID_H
|
|
|
|
#define UUID_LEN 16
|
|
|
|
int uuid_str2bin(const char *str, u8 *bin);
|
|
int uuid_bin2str(const u8 *bin, char *str, size_t max_len);
|
|
int is_nil_uuid(const u8 *uuid);
|
|
void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
|
|
|
|
#endif /* UUID_H */
|