updates.
[silc.git] / apps / irssi / src / silc / core / silc-core.h
1 #ifndef __SILC_CORE_H
2 #define __SILC_CORE_H
3
4 #include "clientconfig.h"
5 #include "clientutil.h"
6
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"
12 #endif
13
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"
17
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"
21
22 /* Default key expiration time, one year. */
23 #define SILC_CLIENT_KEY_EXPIRES 365
24
25 /* Default settings for creating key pair */
26 #define SILC_CLIENT_DEF_PKCS "rsa"
27 #define SILC_CLIENT_DEF_PKCS_LEN 1024
28
29 extern SilcClient silc_client;
30 extern SilcClientConfig silc_config;
31
32 #ifdef SILC_SIM
33 /* SIM (SILC Module) table */
34 extern SilcSimContext **sims;
35 extern uint32 sims_count;
36 #endif
37
38 #define IS_SILC_ITEM(rec) (IS_SILC_CHANNEL(rec) || IS_SILC_QUERY(rec))
39
40 #endif