Botan  2.15.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::TLS::BotanAlertCategory Struct Reference

An error category for TLS alerts. More...

#include <asio_error.h>

Inheritance diagram for Botan::TLS::BotanAlertCategory:

Public Member Functions

std::string message (int ev) const override
const char * name () const noexcept override

Detailed Description

An error category for TLS alerts.

Definition at line 71 of file asio_error.h.

Member Function Documentation

◆ message()

std::string Botan::TLS::BotanAlertCategory::message ( int  ev) const

Definition at line 78 of file asio_error.h.

References Botan::TLS::Alert::type_string().

79  {
80  Botan::TLS::Alert alert(static_cast<Botan::TLS::Alert::Type>(ev));
81  return alert.type_string();
82  }

◆ name()

const char* Botan::TLS::BotanAlertCategory::name ( ) const

Definition at line 73 of file asio_error.h.

74  {
75  return "Botan TLS Alert";
76  }

The documentation for this struct was generated from the following file: