blob: 6e20210f99b9c79b464b48a8a19d35c7550cfd7a [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * Universally Unique IDentifier (UUID)
3 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef UUID_H
10#define UUID_H
11
12#define UUID_LEN 16
13
14int uuid_str2bin(const char *str, u8 *bin);
15int uuid_bin2str(const u8 *bin, char *str, size_t max_len);
16int is_nil_uuid(const u8 *uuid);
Dmitry Shmidtd2986c22017-10-23 14:22:09 -070017int uuid_random(u8 *uuid);
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -070018
19#endif /* UUID_H */