X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.h;h=58732c0cbb857ece77b456a4457920b5e1057a77;hp=9f6af7528b146886092da4fe3bcffb9ce23b0d3d;hb=e7966be29d104bc2932f402abbe3e36750a0f846;hpb=d041f4528426640d73d141cec7fd2576f7e8be84 diff --git a/net.h b/net.h index 9f6af752..58732c0c 100644 --- a/net.h +++ b/net.h @@ -28,6 +28,9 @@ #define UNIX_PATH_MAX 108 #endif +typedef void crypt_function(unsigned long len, + const unsigned char *indata, unsigned char *outdata, void *private_data); + #include /* hostent */ int get_host_info(char *host, struct hostent **ret); int get_socket(void); @@ -45,4 +48,7 @@ int recv_cred_buffer(int, char *, size_t); ssize_t send_cred_buffer(int, char*); int recv_pattern(int fd, const char *pattern, size_t bufsize); int init_tcp_socket(int port); +void enable_crypt(int fd, crypt_function *recv, crypt_function *send, + void *private_data); +void disable_crypt(int fd);