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