diff options
author | Jack Lloyd <[email protected]> | 2018-03-06 07:01:01 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-06 07:01:01 -0500 |
commit | ffb68f149f1c8b3905db96090e510181e35f668f (patch) | |
tree | ccfcfdffee1656f99fd63bf8eeb06aa16493383c /src/lib | |
parent | 7946a5cd5ef1f9b9eddea32ec2ac0abd7e64f6be (diff) |
Ensure exception types are exported from DLL
GH #983
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ffi/ffi_util.h | 2 | ||||
-rw-r--r-- | src/lib/prov/openssl/openssl.h | 2 | ||||
-rw-r--r-- | src/lib/prov/pkcs11/p11.h | 4 | ||||
-rw-r--r-- | src/lib/prov/tpm/tpm.h | 2 | ||||
-rw-r--r-- | src/lib/utils/safeint.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ffi/ffi_util.h b/src/lib/ffi/ffi_util.h index e49002e62..9ff1b0e2f 100644 --- a/src/lib/ffi/ffi_util.h +++ b/src/lib/ffi/ffi_util.h @@ -15,7 +15,7 @@ namespace Botan_FFI { -class FFI_Error final : public Botan::Exception +class BOTAN_UNSTABLE_API FFI_Error final : public Botan::Exception { public: explicit FFI_Error(const std::string& what) : Exception("FFI error", what) {} diff --git a/src/lib/prov/openssl/openssl.h b/src/lib/prov/openssl/openssl.h index 89bd0b1a7..2cb581bb3 100644 --- a/src/lib/prov/openssl/openssl.h +++ b/src/lib/prov/openssl/openssl.h @@ -30,7 +30,7 @@ class HashFunction; class RandomNumberGenerator; enum Cipher_Dir : int; -class OpenSSL_Error final : public Exception +class BOTAN_PUBLIC_API(2,0) OpenSSL_Error final : public Exception { public: OpenSSL_Error(const std::string& what) : diff --git a/src/lib/prov/pkcs11/p11.h b/src/lib/prov/pkcs11/p11.h index 50294d214..a1f85af45 100644 --- a/src/lib/prov/pkcs11/p11.h +++ b/src/lib/prov/pkcs11/p11.h @@ -2821,7 +2821,7 @@ class BOTAN_PUBLIC_API(2,0) LowLevel const FunctionListPtr m_func_list_ptr; }; -class PKCS11_Error : public Exception +class BOTAN_PUBLIC_API(2,0) PKCS11_Error : public Exception { public: explicit PKCS11_Error(const std::string& what) : @@ -2830,7 +2830,7 @@ class PKCS11_Error : public Exception } }; -class PKCS11_ReturnError final : public PKCS11_Error +class BOTAN_PUBLIC_API(2,0) PKCS11_ReturnError final : public PKCS11_Error { public: explicit PKCS11_ReturnError(ReturnValue return_val) : diff --git a/src/lib/prov/tpm/tpm.h b/src/lib/prov/tpm/tpm.h index 802634056..bb215a476 100644 --- a/src/lib/prov/tpm/tpm.h +++ b/src/lib/prov/tpm/tpm.h @@ -21,7 +21,7 @@ namespace Botan { -class TPM_Error final : public Exception +class BOTAN_PUBLIC_API(2,0) TPM_Error final : public Exception { public: TPM_Error(const std::string& err) : Exception(err) {} diff --git a/src/lib/utils/safeint.h b/src/lib/utils/safeint.h index 86567db72..377f13418 100644 --- a/src/lib/utils/safeint.h +++ b/src/lib/utils/safeint.h @@ -13,7 +13,7 @@ namespace Botan { -class Integer_Overflow_Detected final : public Exception +class BOTAN_PUBLIC_API(2,0) Integer_Overflow_Detected final : public Exception { public: Integer_Overflow_Detected(const std::string& file, int line) : |