diff options
author | Othmar Gsenger <otti@anytun.org> | 2010-01-11 02:40:06 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2010-01-11 02:40:06 +0000 |
commit | 54dc97608c637613a67600cdf566ba875d28a9b6 (patch) | |
tree | 1d5316fc7f7b28be4c558ef3821411367156acd4 /src/cryptinit.hpp | |
parent | fixed line indention (diff) |
cleaned up crypto init
cleaned up default log targets
Diffstat (limited to 'src/cryptinit.hpp')
-rw-r--r-- | src/cryptinit.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cryptinit.hpp b/src/cryptinit.hpp index f165c65..f8ac938 100644 --- a/src/cryptinit.hpp +++ b/src/cryptinit.hpp @@ -104,4 +104,17 @@ bool initLibGCrypt() #endif #endif +bool initCrypto() +{ +#ifndef NO_CRYPT +#ifndef USE_SSL_CRYPTO + return initLibGCrypt(); +#else + return true; +#endif +#else + return true; +#endif +} + #endif |