* dav_format_opaquelocktoken - generates a text representation * of an opaquelocktoken */
| 145 | * of an opaquelocktoken |
| 146 | */ |
| 147 | static void format_token(char *target, const xuuid_t *u) |
| 148 | { |
| 149 | sprintf(target, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", |
| 150 | u->time_low, u->time_mid, u->time_hi_and_version, |
| 151 | u->clock_seq_hi_and_reserved, u->clock_seq_low, |
| 152 | u->node[0], u->node[1], u->node[2], |
| 153 | u->node[3], u->node[4], u->node[5]); |
| 154 | } |
| 155 | |
| 156 | /* convert a pair of hex digits to an integer value [0,255] */ |
| 157 | static int dav_parse_hexpair(const char *s) |