summaryrefslogtreecommitdiff
path: root/src/protocol/connect_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/connect_info.h')
-rw-r--r--src/protocol/connect_info.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/protocol/connect_info.h b/src/protocol/connect_info.h
new file mode 100644
index 0000000..0111a39
--- /dev/null
+++ b/src/protocol/connect_info.h
@@ -0,0 +1,25 @@
+#ifndef CONNECT_INFO_H
+#define CONNECT_INFO_H
+
+enum protocol
+{
+ PROTO_LOCAL,
+ PROTO_TELNET,
+ PROTO_SSH
+};
+
+typedef struct
+{
+ enum protocol proto;
+ struct
+ {
+ int proto_version;
+ const char *c2s_cipher;
+ const char *s2c_cipher;
+ const char *c2s_mac;
+ const char *s2c_mac;
+ unsigned char hash[32];
+ } ssh_proto_info;
+} conn_info_t;
+
+#endif