+void enable_crypt(int fd, crypt_function *recv, crypt_function *send)
+{
+ if (max_crypt_fd < fd) {
+ crypt_functions = para_realloc(crypt_functions,
+ 2 * (fd + 1) * sizeof(crypt_function*));
+ max_crypt_fd = fd;
+ }
+ crypt_functions[2 * fd] = recv;
+ crypt_functions[2 * fd + 1] = send;
+ PARA_INFO_LOG("rc4 encryption activated for fd %d\n", fd);
+}
+
+void disable_crypt(int fd)
+{
+ crypt_functions[2 * fd] = NULL;
+ crypt_functions[2 * fd + 1] = NULL;
+}