connectiontlsserver.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "connectiontlsserver.h"
00014
00015 namespace gloox
00016 {
00017
00018 ConnectionTLSServer::ConnectionTLSServer( ConnectionDataHandler* cdh, ConnectionBase* conn,
00019 const LogSink& log )
00020 : ConnectionTLS( cdh, conn, log )
00021 {
00022 }
00023
00024 ConnectionTLSServer::ConnectionTLSServer( ConnectionBase* conn, const LogSink& log )
00025 : ConnectionTLS( conn, log )
00026 {
00027 }
00028
00029 ConnectionTLSServer::~ConnectionTLSServer()
00030 {
00031 }
00032
00033 TLSBase* ConnectionTLSServer::getTLSBase( TLSHandler* th, const std::string server )
00034 {
00035 return new TLSDefault( th, server, TLSDefault::VerifyingServer );
00036 }
00037
00038 ConnectionBase* ConnectionTLSServer::newInstance() const
00039 {
00040 ConnectionBase* newConn = 0;
00041 if( m_connection )
00042 newConn = m_connection->newInstance();
00043 return new ConnectionTLSServer( m_handler, newConn, m_log );
00044 }
00045
00046 }