139beb93cSSam Leffler /* 239beb93cSSam Leffler * Universally Unique IDentifier (UUID) 339beb93cSSam Leffler * Copyright (c) 2008, Jouni Malinen <j@w1.fi> 439beb93cSSam Leffler * 5f05cddf9SRui Paulo * This software may be distributed under the terms of the BSD license. 6f05cddf9SRui Paulo * See README for more details. 739beb93cSSam Leffler */ 839beb93cSSam Leffler 939beb93cSSam Leffler #ifndef UUID_H 1039beb93cSSam Leffler #define UUID_H 1139beb93cSSam Leffler 1239beb93cSSam Leffler #define UUID_LEN 16 1339beb93cSSam Leffler 1439beb93cSSam Leffler int uuid_str2bin(const char *str, u8 *bin); 1539beb93cSSam Leffler int uuid_bin2str(const u8 *bin, char *str, size_t max_len); 1639beb93cSSam Leffler int is_nil_uuid(const u8 *uuid); 17*85732ac8SCy Schubert int uuid_random(u8 *uuid); 1839beb93cSSam Leffler 1939beb93cSSam Leffler #endif /* UUID_H */ 20