5 Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7 Copyright (C) 1997 - 2000 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
24 /* Default client configuration file. This can be overridden at the
25 compilation time. Otherwise, use default. This can be overridden on
26 command line as well. */
27 #ifndef SILC_CLIENT_CONFIG_FILE
28 #define SILC_CLIENT_CONFIG_FILE "/etc/silc/silc.conf"
31 /* Default user configuration file. This file is searched from users'
32 home directory. This may override global configuration settings. */
33 #define SILC_CLIENT_HOME_CONFIG_FILE ".silcrc"
35 /* Default public and private key file names */
36 #define SILC_CLIENT_PUBLIC_KEY_NAME "public_key.pub"
37 #define SILC_CLIENT_PRIVATE_KEY_NAME "private_key.prv"
39 /* Default key expiration time, one year. */
40 #define SILC_CLIENT_KEY_EXPIRES 365
42 /* Default settings for creating key pair */
43 #define SILC_CLIENT_DEF_PKCS "rsa"
44 #define SILC_CLIENT_DEF_PKCS_LEN 1024
46 /* XXX This is entirely temporary structure until UI is written again. */
48 /* Input buffer that holds the characters user types. This is
49 used only to store the typed chars for a while. */
50 SilcBuffer input_buffer;
52 /* The SILC client screen object */
55 /* Current physical window */
58 SilcClientConnection conn;
60 /* Configuration object */
61 SilcClientConfig config;
64 /* SIM (SILC Module) table */
66 unsigned int sim_count;
69 /* The allocated client */
71 } *SilcClientInternal;
76 #define CTRL(x) ((x) & 0x1f) /* Ctrl+x */