4 #include "clientconfig.h"
5 #include "clientutil.h"
7 /* Default client configuration file. This can be overridden at the
8 compilation time. Otherwise, use default. This can be overridden on
9 command line as well. */
10 #ifndef SILC_CLIENT_CONFIG_FILE
11 #define SILC_CLIENT_CONFIG_FILE "/etc/silc/silc.conf"
14 /* Default user configuration file. This file is searched from user's
15 home directory. This may override global configuration settings. */
16 #define SILC_CLIENT_HOME_CONFIG_FILE "~/.silc/silc.conf"
18 /* Default public and private key file names */
19 #define SILC_CLIENT_PUBLIC_KEY_NAME "public_key.pub"
20 #define SILC_CLIENT_PRIVATE_KEY_NAME "private_key.prv"
22 /* Default key expiration time, one year. */
23 #define SILC_CLIENT_KEY_EXPIRES 365
25 /* Default settings for creating key pair */
26 #define SILC_CLIENT_DEF_PKCS "rsa"
27 #define SILC_CLIENT_DEF_PKCS_LEN 1024
29 extern SilcClient silc_client;
30 extern SilcClientConfig silc_config;
33 /* SIM (SILC Module) table */
34 extern SilcSimContext **sims;
35 extern uint32 sims_count;
38 #define IS_SILC_ITEM(rec) (IS_SILC_CHANNEL(rec) || IS_SILC_QUERY(rec))