diff options
author | lloyd <[email protected]> | 2008-04-21 15:53:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-04-21 15:53:32 +0000 |
commit | 90224856d6cc454eba6d5eacf4439b2d732acd65 (patch) | |
tree | 284a7afe5ede70c79878dad222891fa155f60512 /include/whrlpool.h | |
parent | 272a8523e3c19e1c297b335a316a335db6c7128d (diff) |
Add BOTAN_DLL macro in all needed spots for working DLL export. Based
on a patch from Joel Low for MSVC, modified and tested with GCC using
-fvisibility=hidden and the visibility attribute.
Getting this working completely requires making the shared object and
static lib builds completely distinct (which is also a win since it
allows avoiding -fPIC usage, etc in the static lib).
Currently too many things are being exported, though it is an improvement
as internal-only code like the bigint_* functions are hidden.
Diffstat (limited to 'include/whrlpool.h')
-rw-r--r-- | include/whrlpool.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/whrlpool.h b/include/whrlpool.h index c7c40f4cc..22f747520 100644 --- a/include/whrlpool.h +++ b/include/whrlpool.h @@ -13,7 +13,7 @@ namespace Botan { /************************************************* * Whirlpool * *************************************************/ -class Whirlpool : public MDx_HashFunction +class BOTAN_DLL Whirlpool : public MDx_HashFunction { public: void clear() throw(); @@ -24,8 +24,14 @@ class Whirlpool : public MDx_HashFunction void hash(const byte[]); void copy_out(byte[]); - static const u64bit C0[256], C1[256], C2[256], C3[256], - C4[256], C5[256], C6[256], C7[256]; + static const u64bit C0[256]; + static const u64bit C1[256]; + static const u64bit C2[256]; + static const u64bit C3[256]; + static const u64bit C4[256]; + static const u64bit C5[256]; + static const u64bit C6[256]; + static const u64bit C7[256]; SecureBuffer<u64bit, 8> M, digest; }; |