Pageant is now able to avoid asking for the passphrase when asked to
[u/mdw/putty] / misc.h
diff --git a/misc.h b/misc.h
index 37b7311..12d0003 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -3,6 +3,28 @@
 
 #include "puttymem.h"
 
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+
+char *dupstr(char *s);
+char *dupcat(char *s1, ...);
+
+struct bufchain_granule;
+typedef struct bufchain_tag {
+    struct bufchain_granule *head, *tail;
+    int buffersize;                   /* current amount of buffered data */
+} bufchain;
+
+void bufchain_init(bufchain *ch);
+void bufchain_clear(bufchain *ch);
+int bufchain_size(bufchain *ch);
+void bufchain_add(bufchain *ch, void *data, int len);
+void bufchain_prefix(bufchain *ch, void **data, int *len);
+void bufchain_consume(bufchain *ch, int len);
 
 /*
  * Debugging functions.
@@ -19,7 +41,7 @@
 
 #ifdef DEBUG
 void dprintf(char *fmt, ...);
-void debug_memdump (void *buf, int len, int L);
+void debug_memdump(void *buf, int len, int L);
 #define debug(x) (dprintf x)
 #define dmemdump(buf,len) debug_memdump (buf, len, 0);
 #define dmemdumpl(buf,len) debug_memdump (buf, len, 1);