-
Notifications
You must be signed in to change notification settings - Fork 0
/
state.h
34 lines (24 loc) · 807 Bytes
/
state.h
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
29
30
31
32
33
34
#include <libssh/libssh.h>
#ifndef STATE_H
#define STATE_H
struct state_struct {
int finished;
int log_level;
int in_port;
char *out_host;
int out_port;
char *pcap_file;
ssh_pcap_file pcap;
ssh_event event;
ssh_session in_session;
ssh_session out_session;
ssh_channel in_channel;
ssh_channel out_channel;
char *rsa_key_file; // Private RSA key used for inbound connections
char *dsa_key_file; // Private DSA key used for inbound connections
char *ecdsa_key_file; // Private ECDSA key used for inbound connections
char *pub_key_file; // Public key file used for outbound authentication
char *priv_key_file; // Private key file used for outbound authentication
};
typedef struct state_struct *stateptr;
#endif