gloox  1.1-svn
tlsschannelclient.h
1 /*
2  * Copyright (c) 2007-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 #ifndef TLSSCHANNELCLIENT_H__
14 #define TLSSCHANNELCLIENT_H__
15 
16 #include "tlsschannelbase.h"
17 
18 #include "config.h"
19 
20 #ifdef HAVE_WINTLS
21 
22 #include <ctime>
23 
24 #define SECURITY_WIN32
25 #include <windows.h>
26 #include <security.h>
27 #include <schnlsp.h>
28 
29 namespace gloox
30 {
31 
39  {
40  public:
46  SChannelClient( TLSHandler* th, const std::string& server );
47 
51  virtual ~SChannelClient();
52 
53  // reimplemented from TLSBase
54  virtual bool handshake();
55 
56  private:
57  void handshakeStage();
58 
59  };
60 }
61 
62 #endif // HAVE_WINTLS
63 
64 #endif // TLSSCHANNELCLIENT_H__