xref: /freebsd/contrib/wpa/src/utils/uuid.h (revision 1670a1c2a47d10ecccd001970b859caf93cd3b6e)
1 /*
2  * Universally Unique IDentifier (UUID)
3  * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14 
15 #ifndef UUID_H
16 #define UUID_H
17 
18 #define UUID_LEN 16
19 
20 int uuid_str2bin(const char *str, u8 *bin);
21 int uuid_bin2str(const u8 *bin, char *str, size_t max_len);
22 int is_nil_uuid(const u8 *uuid);
23 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
24 
25 #endif /* UUID_H */
26