blob: e16e4a75eabf6c7e0fc3dee64bd1144af21a1bca (
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
29
30
31
32
33
34
35
36
37
38
|
#ifndef _CRYPTOT_H
#define _CRYPTOT_H
#define DEFAULT_CIPHER BLOWFISH | ENCRYPT
#define DEFAULT_PORT 4666
#define BUFFER_LENGTH 8192
#define PROG_NAME "cryptot"
#define VERSION "0.7.0"
#define MY_CLOCK CLOCK_REALTIME
/*
#define _DEBUG_
*/
struct cryptot_st{
/* crypto */
char *key;
char *buffer;
unsigned int blocks;
unsigned int size;
unsigned int cipher;
/* input / output */
int check_accept;
int in_fd;
int out_fd;
char src_ip[4];
char dist_ip[4];
char local_ip[4];
unsigned int src_port;
unsigned int dist_port;
unsigned int local_port;
};
#endif
|