Added Pageant, a first-attempt PuTTY authentication agent
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 3b2257a..6143643 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -109,6 +109,8 @@ typedef struct {
     void (*send) (char *buf, int len);
     void (*size) (void);
     void (*special) (Telnet_Special code);
+    SOCKET (*socket) (void);
+    int (*sendok) (void);
 } Backend;
 
 GLOBAL Backend *back;
@@ -133,8 +135,11 @@ typedef struct {
     int close_on_exit;
     int warn_on_close;
     /* SSH options */
+    char remote_cmd[512];
     int nopty;
     enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
+    char keyfile[FILENAME_MAX];
+    int sshprot;                       /* use v1 or v2 when both available */
     int try_tis_auth;
     /* Telnet options */
     char termtype[32];
@@ -195,6 +200,14 @@ typedef struct {
 #define DEFAULT_PORT 22
 #endif
 
+/*
+ * Some global flags denoting the type of application.
+ */
+#define FLAG_VERBOSE  0x0001
+#define FLAG_WINDOWED 0x0002
+#define FLAG_CONNECTION 0x0004
+GLOBAL int flags;
+
 GLOBAL Config cfg;
 GLOBAL int default_protocol;
 GLOBAL int default_port;
@@ -342,6 +355,12 @@ void crypto_wrapup();
 #endif
 
 /*
+ * Exports from pageantc.c
+ */
+void agent_query(void *in, int inlen, void **out, int *outlen);
+int agent_exists(void);
+
+/*
  * A debug system.
  */
 #ifdef DEBUG