* dav_format_opaquelocktoken - generates a text representation * of an opaquelocktoken */
| 166 | * of an opaquelocktoken |
| 167 | */ |
| 168 | static void format_token(char *target, const xuuid_t *u) |
| 169 | { |
| 170 | sprintf(target, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", |
| 171 | u->time_low, u->time_mid, u->time_hi_and_version, |
| 172 | u->clock_seq_hi_and_reserved, u->clock_seq_low, |
| 173 | u->node[0], u->node[1], u->node[2], |
| 174 | u->node[3], u->node[4], u->node[5]); |
| 175 | } |
| 176 | |
| 177 | /* convert a pair of hex digits to an integer value [0,255] */ |
| 178 | static int dav_parse_hexpair(const char *s) |