/* silc.h Author: Pekka Riikonen Copyright (C) 1997 - 2008 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ /* This file includes common definitions for SILC. This file MUST be included by all files in SILC (directly or through other global include file). */ #ifndef SILC_H #define SILC_H /* Version check macro. Use this to check that package is of specific version compile time. Use the __SILC_XXX_VERSION below in comparison. Example: #if __SILC_TOOLKIT_VERSION < SILC_VERSION(1,2,0) ... #endif */ #ifndef SILC_VERSION #define SILC_VERSION(a, b, c) (((a) << 24) + ((b) << 16) + ((c) << 8) #endif /* !SILC_VERSION */ /* SILC Crypto Toolkit version */ @__SILC_PACKAGE_VERSION@ #ifdef __cplusplus extern "C" { #endif /* We except all systems to have these include files */ #include #include #include #if defined(HAVE_SILCDEFS_H) /* Automatically generated configuration header. These are included only when the SILC Toolkit itself is compiled. */ #ifndef SILC_SYMBIAN #include "silcdefs.h" #else #include "../../symbian/silcdefs.h" #endif /* SILC_SYMBIAN */ #include "silcdistdefs.h" #include "silccompile.h" #endif /* HAVE_CRYPTODEFS_H */ /* SRT and SCT include */ #include #include #include #ifdef SILC_DIST_VCARD #include #endif /* SILC_DIST_VCARD */ /* SILC core library includes */ #include #include #include #include #include #include #include #include #include #include #include #include /* Application utility includes */ #include #include /* SILC Key Exchange library includes */ #include #include #include #include #ifdef SILC_DIST_SFTP /* SILC SFTP library */ #include #include #endif /* SILC_DIST_SFTP */ #ifdef SILC_DIST_HTTP /* SILC HTTP library */ #include #include #endif /* SILC_DIST_HTTP */ #ifdef __cplusplus } #endif #endif /* SILC_H */