aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_alerts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ssl/tls_alerts.h')
-rw-r--r--src/ssl/tls_alerts.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ssl/tls_alerts.h b/src/ssl/tls_alerts.h
index cb7529021..f189cf507 100644
--- a/src/ssl/tls_alerts.h
+++ b/src/ssl/tls_alerts.h
@@ -18,11 +18,19 @@ namespace Botan {
class BOTAN_DLL Alert
{
public:
+ /**
+ * @return if this alert is a fatal one or not
+ */
bool is_fatal() const { return fatal; }
+
+ /**
+ * @return type of alert
+ */
Alert_Type type() const { return type_code; }
/**
* Deserialize an Alert message
+ * @param buf the serialized alert
*/
Alert(const MemoryRegion<byte>& buf)
{