The SILC Project

source navigation ]
identifier search ]
freetext search ]
file search ]

silc/silc/silc.h

  1 /*
  2 
  3   silc.h
  4 
  5   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
  6 
  7   Copyright (C) 1997 - 2000 Pekka Riikonen
  8 
  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.
 13   
 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.
 18 
 19 */
 20 
 21 #ifndef SILC_H
 22 #define SILC_H
 23 
 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"
 29 #endif
 30 
 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"
 34 
 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"
 38 
 39 /* Default key expiration time, one year. */
 40 #define SILC_CLIENT_KEY_EXPIRES 365
 41 
 42 /* Default settings for creating key pair */
 43 #define SILC_CLIENT_DEF_PKCS "rsa"
 44 #define SILC_CLIENT_DEF_PKCS_LEN 1024
 45 
 46 /* XXX This is entirely temporary structure until UI is written again. */
 47 typedef struct {
 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;
 51 
 52   /* The SILC client screen object */
 53   SilcScreen screen;
 54 
 55   /* Current physical window */
 56   void *current_win;
 57 
 58   SilcClientConnection conn;
 59 
 60   /* Configuration object */
 61   SilcClientConfig config;
 62 
 63 #ifdef SILC_SIM
 64   /* SIM (SILC Module) table */
 65   SilcSimContext **sim;
 66   SilcUInt32 sim_count;
 67 #endif
 68 
 69   /* The allocated client */
 70   SilcClient client;
 71 } *SilcClientInternal;
 72 
 73 /* Macros */
 74 
 75 #ifndef CTRL
 76 #define CTRL(x) ((x) & 0x1f)    /* Ctrl+x */
 77 #endif
 78 
 79 #endif
 80 

This page was automatically generated by the LXR engine.
Free-text search provided by Glimpse