2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* Universally Unique IDentifier (UUID)
|
|
|
|
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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);
|
2008-11-26 19:47:24 +01:00
|
|
|
int is_nil_uuid(const u8 *uuid);
|
2017-04-13 12:22:56 +02:00
|
|
|
int uuid_random(u8 *uuid);
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* UUID_H */
|