diff options
Diffstat (limited to 'common/rdr/TLSException.h')
-rw-r--r-- | common/rdr/TLSException.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/rdr/TLSException.h b/common/rdr/TLSException.h index 62b090ba..75ee94f5 100644 --- a/common/rdr/TLSException.h +++ b/common/rdr/TLSException.h @@ -21,14 +21,16 @@ #ifndef __RDR_TLSEXCEPTION_H__ #define __RDR_TLSEXCEPTION_H__ -#include <rdr/Exception.h> +#include <stdexcept> namespace rdr { class tls_error : public std::runtime_error { public: - int err; - tls_error(const char* s, int err_) noexcept; + int err, alert; + tls_error(const char* s, int err_, int alert_=-1) noexcept; + private: + const char* strerror(int err_, int alert_) const noexcept; }; } |