13 #include "tlsdefault.h"
15 #include "tlshandler.h"
19 #if defined( HAVE_GNUTLS )
21 # include "tlsgnutlsclient.h"
22 # include "tlsgnutlsclientanon.h"
23 # include "tlsgnutlsserveranon.h"
24 #elif defined( HAVE_OPENSSL )
26 # include "tlsopensslclient.h"
28 # include "tlsopensslserver.h"
30 #elif defined( HAVE_WINTLS )
32 # include "tlsschannel.h"
39 :
TLSBase( th, server ), m_impl( 0 )
46 #elif defined( HAVE_OPENSSL )
48 #elif defined( HAVE_WINTLS )
80 const std::string& clientCerts,
83 return m_impl ? m_impl->
init( clientKey, clientCerts,
94 #elif defined( HAVE_OPENSSL )
97 #elif defined( HAVE_WINTLS )
105 return m_impl ? m_impl->
encrypt( data ) :
false;
110 return m_impl ? m_impl->
decrypt( data ) : 0;
121 return m_impl ? m_impl->
handshake() :
false;
126 return m_impl ? m_impl->
isSecure() :
false;