X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilccrypto.h;h=6ac0ed1ae086d4cc90f3eab332cd201840da499c;hp=d660d0caed7cfca0f2eba0dfb0c3c3fbcaaf171c;hb=f9d9c92fcc179ff82ae7aa5f724440215f194827;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776 diff --git a/lib/silccrypt/silccrypto.h b/lib/silccrypt/silccrypto.h index d660d0ca..6ac0ed1a 100644 --- a/lib/silccrypt/silccrypto.h +++ b/lib/silccrypt/silccrypto.h @@ -4,7 +4,7 @@ Author: Pekka Riikonen - Copyright (C) 2007 Pekka Riikonen + Copyright (C) 2007 - 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 @@ -44,6 +44,64 @@ #ifndef SILCCRYPTO_H #define SILCCRYPTO_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_CRYPTO_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 */ +#define __SILC_CRYPTO_VERSION SILC_VERSION(0,0,0) + +#ifdef __cplusplus +extern "C" { +#endif + +/* We except all systems to have these include files */ +#include +#include +#include + +#if defined(HAVE_CRYPTODEFS_H) +/* Automatically generated configuration header. These are included only + when the SILC Crypto Toolkit itself is compiled. */ +#ifndef SILC_SYMBIAN +#include "cryptodefs.h" +#else +#include "../../symbian/silcdefs.h" +#endif /* SILC_SYMBIAN */ +#include "silcdistdefs.h" +#include "silccompile.h" +#endif /* HAVE_CRYPTODEFS_H */ + +/* SILC Runtime Toolkit include */ +#include + +/* SILC Crypto Toolkit includes */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef SILC_DIST_SSH +#include +#endif /* SILC_DIST_SSH */ +#include +#include +#include + /****f* silccrypt/SilcCryptoAPI/silc_crypto_init * * SYNOPSIS @@ -115,4 +173,8 @@ void silc_crypto_uninit(void); ***/ SilcStack silc_crypto_stack(void); +#ifdef __cplusplus +} +#endif + #endif /* SILCCRYPTO_H */