Add the ability to do ssh by default: using -ssh command line option,
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 0ca50aa..1a623ac 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -97,7 +97,7 @@ typedef struct {
     int close_on_exit;
     /* SSH options */
     int nopty;
-    enum { CIPHER_3DES, CIPHER_BLOWFISH } cipher;
+    enum { CIPHER_3DES, CIPHER_BLOWFISH, CIPHER_DES } cipher;
     /* Telnet options */
     char termtype[32];
     char termspeed[32];
@@ -130,7 +130,20 @@ typedef struct {
     short wordness[256];
 } Config;
 
+/*
+ * You can compile with -DSSH_DEFAULT to have ssh by default.
+ */
+#ifndef SSH_DEFAULT
+#define DEFAULT_PROTOCOL PROT_TELNET
+#define DEFAULT_PORT 23
+#else
+#define DEFAULT_PROTOCOL PROT_SSH
+#define DEFAULT_PORT 22
+#endif
+
 GLOBAL Config cfg;
+GLOBAL int default_protocol;
+GLOBAL int default_port;
 
 /*
  * Exports from window.c.