X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.h;h=5ff53987af6591e6192ae034fe6270fbb29df01b;hp=172e4ae6c21308dbdc0860938794a0078f385bec;hb=c85690666e2ed2327e751b819970658d58479bfb;hpb=a87d4a87ac7418084eb78f0bcb3accff1388df3a diff --git a/net.h b/net.h index 172e4ae6..5ff53987 100644 --- a/net.h +++ b/net.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -28,8 +28,9 @@ #define UNIX_PATH_MAX 108 #endif +/** used to crypt the communication between para_server and para_client */ typedef void crypt_function(unsigned long len, - const unsigned char *indata, unsigned char *outdata); + const unsigned char *indata, unsigned char *outdata, void *private_data); #include /* hostent */ int get_host_info(char *host, struct hostent **ret); @@ -48,6 +49,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 enable_crypt(int fd, crypt_function *recv_f, crypt_function *send_f, + void *private_data); void disable_crypt(int fd);