Merged from silc_1_0_branch.
[silc.git] / apps / irssi / src / silc / core / silc-core.h
1 #ifndef __SILC_CORE_H
2 #define __SILC_CORE_H
3
4 #include "clientutil.h"
5
6 /* Default client configuration file. This can be overridden at the
7    compilation time. Otherwise, use default. This can be overridden on
8    command line as well. */
9 #ifndef SILC_CLIENT_CONFIG_FILE
10 #define SILC_CLIENT_CONFIG_FILE "/etc/silc/silc.conf"
11 #endif
12
13 /* Default user configuration file. This file is searched from user's
14    home directory. This may override global configuration settings. */
15 #define SILC_CLIENT_HOME_CONFIG_FILE "~/.silc/silc.conf"
16
17 /* Default public and private key file names */
18 #define SILC_CLIENT_PUBLIC_KEY_NAME "public_key.pub"
19 #define SILC_CLIENT_PRIVATE_KEY_NAME "private_key.prv"
20
21 /* Default key expiration time, one year. */
22 #define SILC_CLIENT_KEY_EXPIRES 365
23
24 /* Default settings for creating key pair */
25 #define SILC_CLIENT_DEF_PKCS "rsa"
26 #define SILC_CLIENT_DEF_PKCS_LEN 2048
27
28 extern SilcClient silc_client;
29
30 #define IS_SILC_ITEM(rec) (IS_SILC_CHANNEL(rec) || IS_SILC_QUERY(rec))
31
32 #define SILC_MSG_SIGNED_VERIFIED 0
33 #define SILC_MSG_SIGNED_UNKNOWN 1
34 #define SILC_MSG_SIGNED_FAILED 2
35
36 #endif