13 #include "tlsdefault.h"
15 #include "tlshandler.h"
19 #if defined( HAVE_GNUTLS )
21 # include "tlsgnutlsclient.h"
22 # include "tlsgnutlsclientanon.h"
23 # include "tlsgnutlsserver.h"
24 # include "tlsgnutlsserveranon.h"
25 #elif defined( HAVE_OPENSSL )
27 # include "tlsopensslclient.h"
29 # include "tlsopensslserver.h"
31 #elif defined( HAVE_WINTLS )
33 # include "tlsschannelclient.h"
34 # include "tlsschannelserver.h"
41 :
TLSBase( th, server ), m_impl( 0 )
48 #elif defined( HAVE_OPENSSL )
50 #elif defined( HAVE_WINTLS )
67 #elif defined( HAVE_OPENSSL )
71 #elif defined( HAVE_WINTLS )
86 const std::string& clientCerts,
89 return m_impl ? m_impl->
init( clientKey, clientCerts,
100 #elif defined( HAVE_OPENSSL )
103 #elif defined( HAVE_WINTLS )
111 return m_impl ? m_impl->
encrypt( data ) :
false;
116 return m_impl ? m_impl->
decrypt( data ) : 0;
127 return m_impl ? m_impl->
handshake() :
false;
132 return m_impl ? m_impl->
isSecure() :
false;