diff options
Diffstat (limited to 'Libraries/LibTLS/Handshake.cpp')
-rw-r--r-- | Libraries/LibTLS/Handshake.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibTLS/Handshake.cpp b/Libraries/LibTLS/Handshake.cpp index e209f11d8a..99165fec5b 100644 --- a/Libraries/LibTLS/Handshake.cpp +++ b/Libraries/LibTLS/Handshake.cpp @@ -167,4 +167,11 @@ ByteBuffer TLSv12::build_finished() return packet; } +void TLSv12::alert(AlertLevel level, AlertDescription code) +{ + auto the_alert = build_alert(level == AlertLevel::Critical, (u8)code); + write_packet(the_alert); + flush(); +} + } |