Skip to content

Commit 20f194c

Browse files
committed
Create tlsexception.cpp
1 parent 63a2202 commit 20f194c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tlsexception.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <openssl/ssl.h>
2+
#include "tlsexception.h"
3+
4+
TLSException::TLSException(const char *msg) : runtime_error(msg) {
5+
}
6+
7+
TLSException::TLSException(int err) : runtime_error(SSL_alert_desc_string_long(err)) {
8+
}

0 commit comments

Comments
 (0)