gloox  1.0
tlsopensslserver.h
1 /*
2  Copyright (c) 2009 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 TLSOPENSSLSERVER_H__
16 #define TLSOPENSSLSERVER_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 OpenSSLServer : public OpenSSLBase
36  {
37  public:
43 
47  virtual ~OpenSSLServer();
48 
49  private:
50  // reimplemented from OpenSSLBase
51  virtual bool privateInit();
52  // reimplemented from OpenSSLBase
53  virtual bool setType();
54 
55  // reimplemented from OpenSSLBase
56  virtual int handshakeFunction();
57 
58  };
59 
60 }
61 
62 #endif // HAVE_OPENSSL
63 
64 #endif // TLSOPENSSLSERVER_H__