diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/math/bigint/bigint.h | 7 | ||||
-rw-r--r-- | src/lib/x509/x509_crl.h | 7 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/math/bigint/bigint.h b/src/lib/math/bigint/bigint.h index 2dabd43a5..e6015b7b3 100644 --- a/src/lib/math/bigint/bigint.h +++ b/src/lib/math/bigint/bigint.h @@ -38,8 +38,11 @@ class BOTAN_PUBLIC_API(2,0) BigInt final /** * DivideByZero Exception */ - struct BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception - { DivideByZero() : Exception("BigInt divide by zero") {} }; + class BOTAN_PUBLIC_API(2,0) DivideByZero final : public Exception + { + public: + DivideByZero() : Exception("BigInt divide by zero") {} + }; /** * Create empty BigInt diff --git a/src/lib/x509/x509_crl.h b/src/lib/x509/x509_crl.h index 0e70b3f2b..865117300 100644 --- a/src/lib/x509/x509_crl.h +++ b/src/lib/x509/x509_crl.h @@ -27,10 +27,11 @@ class BOTAN_PUBLIC_API(2,0) X509_CRL final : public X509_Object /** * This class represents CRL related errors. */ - struct BOTAN_PUBLIC_API(2,0) X509_CRL_Error final : public Exception + class BOTAN_PUBLIC_API(2,0) X509_CRL_Error final : public Exception { - explicit X509_CRL_Error(const std::string& error) : - Exception("X509_CRL: " + error) {} + public: + explicit X509_CRL_Error(const std::string& error) : + Exception("X509_CRL: " + error) {} }; /** |