diff options
author | lloyd <lloyd@randombit.net> | 2008-04-21 15:53:32 +0000 |
---|---|---|
committer | lloyd <lloyd@randombit.net> | 2008-04-21 15:53:32 +0000 |
commit | 90224856d6cc454eba6d5eacf4439b2d732acd65 (patch) | |
tree | 284a7afe5ede70c79878dad222891fa155f60512 /include/asn1_oid.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/asn1_oid.h')
-rw-r--r-- | include/asn1_oid.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asn1_oid.h b/include/asn1_oid.h index 92dbbecc0..73d0079a8 100644 --- a/include/asn1_oid.h +++ b/include/asn1_oid.h @@ -15,7 +15,7 @@ namespace Botan { /************************************************* * ASN.1 Object Identifier * *************************************************/ -class OID : public ASN1_Object +class BOTAN_DLL OID : public ASN1_Object { public: void encode_into(class DER_Encoder&) const; @@ -37,13 +37,13 @@ class OID : public ASN1_Object /************************************************* * Append another component onto the OID * *************************************************/ -OID operator+(const OID&, u32bit); +OID BOTAN_DLL operator+(const OID&, u32bit); /************************************************* * Compare two OIDs * *************************************************/ -bool operator!=(const OID&, const OID&); -bool operator<(const OID&, const OID&); +bool BOTAN_DLL operator!=(const OID&, const OID&); +bool BOTAN_DLL operator<(const OID&, const OID&); } |