2 * Copyright (C) 1997-2010 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file client.h Common client functions and exported symbols from client_common.c. */
9 #include <openssl/rc4.h>
11 /** The different states of a connection from the view of the client. */
13 /** TCP connection is established. */
15 /** Server sends the welcome message. */
17 /** Client sends the authentification request. */
19 /** Client solves the challenge and sends the result. */
21 /** Server accepts this authentication. */
23 /** Client sends the command. */
25 /** Server expects data. */
27 /** Client expects data. */
31 /** Data specific to a client task. */
33 /** The state of the connection. */
35 /** The file descriptor and the rc4 keys. */
36 struct rc4_context rc4c
;
37 /** The configuration (including the command). */
38 struct client_args_info conf
;
39 /** The config file for client options. */
41 /** The RSA private key. */
43 /** Paraslash user name. */
45 /** The client task structure. */
47 struct btr_node
*btrn
;
50 void client_close(struct client_task
*ct
);
51 int client_open(int argc
, char *argv
[], struct client_task
**ct_ptr
,
52 int *loglevel
, struct btr_node
*parent
, struct btr_node
*child
);