4 #include "clientutil.h"
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"
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"
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"
21 /* Default key expiration time, one year. */
22 #define SILC_CLIENT_KEY_EXPIRES 365
24 /* Default settings for creating key pair */
25 #define SILC_CLIENT_DEF_PKCS "rsa"
26 #define SILC_CLIENT_DEF_PKCS_LEN 2048
28 extern SilcClient silc_client;
29 extern SilcHash sha1hash;
30 extern SilcPublicKey irssi_pubkey;
31 extern SilcPrivateKey irssi_privkey;
32 extern char *opt_nickname;
34 #define IS_SILC_ITEM(rec) (IS_SILC_CHANNEL(rec) || IS_SILC_QUERY(rec))
36 #define SILC_MSG_SIGNED_VERIFIED 0
37 #define SILC_MSG_SIGNED_UNKNOWN 1
38 #define SILC_MSG_SIGNED_FAILED 2