Skip to content

Commit ef1e1d6

Browse files
committed
Add a fake function newSSLServerContext()
1 parent d7389de commit ef1e1d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

trantor/net/inner/TcpConnectionImpl.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ std::shared_ptr<SSLContext> newSSLServerContext(const std::string &certPath,
129129
return ctx;
130130
}
131131
} // namespace trantor
132+
#else
133+
namespace trantor
134+
{
135+
std::shared_ptr<SSLContext> newSSLServerContext(const std::string &certPath,
136+
const std::string &keyPath)
137+
{
138+
LOG_FATAL << "OpenSSL is not found in your system!";
139+
abort();
140+
}
141+
} // namespace trantor
132142
#endif
133143

134144
TcpConnectionImpl::TcpConnectionImpl(EventLoop *loop,

0 commit comments

Comments
 (0)