gloox  1.0.1
tlsopensslclient.h
1 /*
2  Copyright (c) 2007-2012 by Jakob Schroeter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 
14 
15 #ifndef TLSOPENSSLCLIENT_H__
16 #define TLSOPENSSLCLIENT_H__
17 
18 #include "tlsopensslbase.h"
19 
20 #include "config.h"
21 
22 #ifdef HAVE_OPENSSL
23 
24 #include <openssl/ssl.h>
25 
26 namespace gloox
27 {
28 
35  class OpenSSLClient : public OpenSSLBase
36  {
37  public:
43  OpenSSLClient( TLSHandler* th, const std::string& server );
44 
48  virtual ~OpenSSLClient();
49 
50  private:
51  // reimplemented from OpenSSLBase
52  virtual bool setType();
53 
54  // reimplemented from OpenSSLBase
55  virtual int handshakeFunction();
56 
57  };
58 
59 }
60 
61 #endif // HAVE_OPENSSL
62 
63 #endif // TLSOPENSSLCLIENT_H__