connectiontlsserver.cpp

00001 /*
00002  * Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
00003  * This file is part of the gloox library. http://camaya.net/gloox
00004  *
00005  * This software is distributed under a license. The full license
00006  * agreement can be found in the file LICENSE in this distribution.
00007  * This software may not be copied, modified, sold or distributed
00008  * other than expressed in the named license agreement.
00009  *
00010  * This software is distributed without any warranty.
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 }
Generated on Tue Jun 8 23:37:53 2010 for gloox by  doxygen 1.6.3