aboutsummaryrefslogtreecommitdiffstats
path: root/include/mode_pad.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-04-21 15:53:32 +0000
committerlloyd <[email protected]>2008-04-21 15:53:32 +0000
commit90224856d6cc454eba6d5eacf4439b2d732acd65 (patch)
tree284a7afe5ede70c79878dad222891fa155f60512 /include/mode_pad.h
parent272a8523e3c19e1c297b335a316a335db6c7128d (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/mode_pad.h')
-rw-r--r--include/mode_pad.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mode_pad.h b/include/mode_pad.h
index 85452167b..4041efcdc 100644
--- a/include/mode_pad.h
+++ b/include/mode_pad.h
@@ -14,7 +14,7 @@ namespace Botan {
/*************************************************
* Block Cipher Mode Padding Method *
*************************************************/
-class BlockCipherModePaddingMethod
+class BOTAN_DLL BlockCipherModePaddingMethod
{
public:
virtual void pad(byte[], u32bit, u32bit) const = 0;
@@ -28,7 +28,7 @@ class BlockCipherModePaddingMethod
/*************************************************
* PKCS#7 Padding *
*************************************************/
-class PKCS7_Padding : public BlockCipherModePaddingMethod
+class BOTAN_DLL PKCS7_Padding : public BlockCipherModePaddingMethod
{
public:
void pad(byte[], u32bit, u32bit) const;
@@ -40,7 +40,7 @@ class PKCS7_Padding : public BlockCipherModePaddingMethod
/*************************************************
* ANSI X9.23 Padding *
*************************************************/
-class ANSI_X923_Padding : public BlockCipherModePaddingMethod
+class BOTAN_DLL ANSI_X923_Padding : public BlockCipherModePaddingMethod
{
public:
void pad(byte[], u32bit, u32bit) const;
@@ -52,7 +52,7 @@ class ANSI_X923_Padding : public BlockCipherModePaddingMethod
/*************************************************
* One And Zeros Padding *
*************************************************/
-class OneAndZeros_Padding : public BlockCipherModePaddingMethod
+class BOTAN_DLL OneAndZeros_Padding : public BlockCipherModePaddingMethod
{
public:
void pad(byte[], u32bit, u32bit) const;
@@ -64,7 +64,7 @@ class OneAndZeros_Padding : public BlockCipherModePaddingMethod
/*************************************************
* Null Padding *
*************************************************/
-class Null_Padding : public BlockCipherModePaddingMethod
+class BOTAN_DLL Null_Padding : public BlockCipherModePaddingMethod
{
public:
void pad(byte[], u32bit, u32bit) const { return; }