gloox 1.0
|
00001 /* 00002 Copyright (c) 2007-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 00014 00015 #ifndef TLSOPENSSLCLIENT_H__ 00016 #define TLSOPENSSLCLIENT_H__ 00017 00018 #include "tlsopensslbase.h" 00019 00020 #include "config.h" 00021 00022 #ifdef HAVE_OPENSSL 00023 00024 #include <openssl/ssl.h> 00025 00026 namespace gloox 00027 { 00028 00035 class OpenSSLClient : public OpenSSLBase 00036 { 00037 public: 00043 OpenSSLClient( TLSHandler* th, const std::string& server ); 00044 00048 virtual ~OpenSSLClient(); 00049 00050 private: 00051 // reimplemented from OpenSSLBase 00052 virtual bool setType(); 00053 00054 // reimplemented from OpenSSLBase 00055 virtual int handshakeFunction(); 00056 00057 }; 00058 00059 } 00060 00061 #endif // HAVE_OPENSSL 00062 00063 #endif // TLSOPENSSLCLIENT_H__