summaryrefslogtreecommitdiff
path: root/src/protocol/connect_info.h
blob: e1c4eb4f52f8b99a7fc836b59b4fb6ae23c40185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CONNECT_INFO_H
#define CONNECT_INFO_H

enum protocol
{
	PROTO_LOCAL,
	PROTO_TELNET,
	PROTO_SSH
};

typedef struct
{
	char hostname[256];
	int port;
	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];
		unsigned char key_matches;
	} ssh_proto_info;
} conn_info_t;

#endif