-#if 0
-static int strbytes(char *s, unsigned char *d) {
- unsigned int byte;
- int i = 0;
-
- if (!s) return 0;
- if (*s == 0) return 0;
-
- while (*s) {
- if (*s == '-' || *s == ':' || *s == ' ') s++;
-
- if (sscanf(s, "%02x", &byte) != 1) {
- return 0;
- }
- s += 2;
- d[i++] = byte & 0xff;
- }
- return i;
-}
-#endif
-