aboutsummaryrefslogtreecommitdiffstats
path: root/include/oids.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/oids.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/oids.h')
-rw-r--r--include/oids.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/oids.h b/include/oids.h
index e836ceef1..b5be0e01f 100644
--- a/include/oids.h
+++ b/include/oids.h
@@ -15,19 +15,19 @@ namespace OIDS {
/*************************************************
* Register an OID to string mapping *
*************************************************/
-void add_oid(const OID&, const std::string&);
+BOTAN_DLL void add_oid(const OID&, const std::string&);
/*************************************************
* See if an OID exists in the internal table *
*************************************************/
-bool have_oid(const std::string&);
+BOTAN_DLL bool have_oid(const std::string&);
/*************************************************
* Perform OID<->string mappings *
*************************************************/
-std::string lookup(const OID&);
-OID lookup(const std::string&);
-bool name_of(const OID&, const std::string&);
+BOTAN_DLL std::string lookup(const OID&);
+BOTAN_DLL OID lookup(const std::string&);
+BOTAN_DLL bool name_of(const OID&, const std::string&);
}