Botan

TLS Alert Message

License
Botan is released under the Simplified BSD License (see LICENSE.md)

struct  TLSAlert;

SSL/TLS  TLSAlert Message


const bool  isValid();

Returns
true iff this alert is non-empty

const bool  isFatal();

Returns
if this alert is a fatal one or not

const TLSAlertType  type();

Returns
 type of alert

const string  typeString();

Returns
type of alert

const Vector!ubyte  serialize();

Serialize an alert


this(ref const SecureVector!ubyte buf);

Deserialize an TLSAlert message

Parameters
SecureVector!ubyte buf the serialized alert

this(TLSAlertType type_code = NULL_ALERT, bool fatal = false);

Create a new TLSAlert

Parameters
TLSAlertType type_code the type of alert
bool fatal specifies if this is a fatal alert