Alert Protocol Structure
struct {
AlertLevel level; // warning(1) or fatal(2)
AlertDescription desc; // specific error code
} Alert;
In TLS 1.3, all alerts that cause connection termination are fatal in practice.
The level field is kept for backward compatibility only — ignore it for semantic meaning.
After a fatal alert, the connection must be torn down. No data may be sent after a fatal alert.