Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

tlsgnutlsclientanon.h

00001 /*
00002   Copyright (c) 2007-2008 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 TLSGNUTLSCLIENTANON_H__
00016 #define TLSGNUTLSCLIENTANON_H__
00017 
00018 #include "tlsgnutlsbase.h"
00019 
00020 #ifdef _WIN32
00021 # include "../config.h.win"
00022 #elif defined( _WIN32_WCE )
00023 # include "../config.h.win"
00024 #else
00025 # include "config.h"
00026 #endif
00027 
00028 #ifdef HAVE_GNUTLS
00029 
00030 #include <gnutls/gnutls.h>
00031 #include <gnutls/x509.h>
00032 
00033 namespace gloox
00034 {
00035 
00044   class GnuTLSClientAnon : public GnuTLSBase
00045   {
00046     public:
00051       GnuTLSClientAnon( TLSHandler* th );
00052 
00056       virtual ~GnuTLSClientAnon();
00057 
00058       // reimplemented from TLSBase
00059       virtual bool init();
00060 
00061       // reimplemented from TLSBase
00062       virtual void cleanup();
00063 
00064     private:
00065       virtual void getCertInfo();
00066 
00067       gnutls_anon_client_credentials_t m_anoncred;
00068   };
00069 
00070 }
00071 
00072 #endif // HAVE_GNUTLS
00073 
00074 #endif // TLSGNUTLSCLIENTANON_H__

Generated on Sun Dec 28 22:10:18 2008 for gloox by  doxygen 1.4.1