1/* 2 * utils.h 3 * libsecurity_agent 4 * 5 * Copyright (c) 2010 Apple Inc. All rights reserved. 6 * 7 */ 8 9 10#include "utils.h" 11 12unsigned char * 13uuid_init_with_sessionid(uuid_t uuid, uint32_t sessionid) 14{ 15 uuid_t tmp = UUID_INITIALIZER_FROM_SESSIONID(sessionid); 16 17 uuid_copy(uuid, tmp); 18 return &uuid[0]; 19} 20 21const char * 22uuid_to_string(const uuid_t uuid, char *buf) 23{ 24 uuid_unparse_lower(uuid, buf); 25 return buf; 26} 27