summaryrefslogtreecommitdiffstats
path: root/cryptot.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2010-07-09 12:32:17 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2010-07-09 12:32:17 +0200
commit6c027b4de25a529908be895e7ff19236f4002a57 (patch)
treef70d3a400bbb9ba8a83e9d4ffcaa4b6e367fc8bb /cryptot.h
downloadcrypto-6c027b4de25a529908be895e7ff19236f4002a57.zip
crypto-6c027b4de25a529908be895e7ff19236f4002a57.tar.gz
initial commit, resurrect one of my realy old projects
Diffstat (limited to 'cryptot.h')
-rw-r--r--cryptot.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/cryptot.h b/cryptot.h
new file mode 100644
index 0000000..e16e4a7
--- /dev/null
+++ b/cryptot.h
@@ -0,0 +1,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