aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_exceptn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_exceptn.h')
-rw-r--r--src/lib/tls/tls_exceptn.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/tls/tls_exceptn.h b/src/lib/tls/tls_exceptn.h
index 1b58e1beb..572ff1885 100644
--- a/src/lib/tls/tls_exceptn.h
+++ b/src/lib/tls/tls_exceptn.h
@@ -34,10 +34,11 @@ class BOTAN_PUBLIC_API(2,0) TLS_Exception : public Exception
/**
* Unexpected_Message Exception
*/
-struct BOTAN_PUBLIC_API(2,0) Unexpected_Message final : public TLS_Exception
+class BOTAN_PUBLIC_API(2,0) Unexpected_Message final : public TLS_Exception
{
- explicit Unexpected_Message(const std::string& err) :
- TLS_Exception(Alert::UNEXPECTED_MESSAGE, err) {}
+ public:
+ explicit Unexpected_Message(const std::string& err) :
+ TLS_Exception(Alert::UNEXPECTED_MESSAGE, err) {}
};
}