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/x509self.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/x509self.h')
-rw-r--r-- | include/x509self.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/x509self.h b/include/x509self.h index 4ad7f8f5c..8f3308492 100644 --- a/include/x509self.h +++ b/include/x509self.h @@ -15,7 +15,7 @@ namespace Botan { /************************************************* * Options for X.509 Certificates * *************************************************/ -class X509_Cert_Options +class BOTAN_DLL X509_Cert_Options { public: std::string common_name; @@ -56,14 +56,14 @@ namespace X509 { /************************************************* * Create a self-signed X.509 certificate * *************************************************/ -X509_Certificate create_self_signed_cert(const X509_Cert_Options&, - const Private_Key&); +BOTAN_DLL X509_Certificate create_self_signed_cert(const X509_Cert_Options&, + const Private_Key&); /************************************************* * Create a PKCS #10 certificate request * *************************************************/ -PKCS10_Request create_cert_req(const X509_Cert_Options&, - const Private_Key&); +BOTAN_DLL PKCS10_Request create_cert_req(const X509_Cert_Options&, + const Private_Key&); } |