#define TF_QUEUE_CONTROL "c"
#define TF_QUEUE_DATA "d"
#define TF_DECODE "x"
+#define TF_TRANSFORM "s"
+#define TF_OBJECT "o"
/* Config Files */
/* patmatch.c */
int match_pattern(byte *, byte *);
+
+/* md5hex.c */
+
+void md5_to_hex(byte *, byte *);
+void hex_to_md5(byte *, byte *);
+
+#define MD5_SIZE 16
+#define MD5_HEX_SIZE 33
tim = time(NULL);
tm = localtime(&tim);
- strftime(buf, sizeof(buf), "%d-%m-%y %H-%M-%S", tm);
+ strftime(buf, sizeof(buf), "%d-%m-%y %H:%M:%S", tm);
fprintf(stderr, "%s %s [%d] <%d> ", buf, progname, pid, level);
vfprintf(stderr, msg, args);
fputc('\n', stderr);
break;
if (cnt >= max)
return -1;
- dst[cnt++] = src;
- while (*src && !Cspace(*src))
- src++;
+ if (*src == '"')
+ {
+ src++;
+ dst[cnt++] = src;
+ while (*src && *src != '"')
+ src++;
+ if (*src)
+ *src++ = 0;
+ }
+ else
+ {
+ dst[cnt++] = src;
+ while (*src && !Cspace(*src))
+ src++;
+ }
}
return cnt;
}