14 #ifndef FEATURESTARTTLS_H__
15 #define FEATURESTARTTLS_H__
18 #include "streamfeature.h"
20 #include <gloox/tlshandler.h>
25 class ConnectionTLSServer;
31 class CertificateProvider;
49 CertificateProvider* cp );
57 virtual const std::string& filterString()
const;
60 virtual gloox::Tag* tag(
int state,
const std::string& domain );
69 virtual void handleTag( gloox::Tag* tag );
72 virtual void handleEncryptedData(
const gloox::TLSBase* ,
const std::string& ) {}
75 virtual void handleDecryptedData(
const gloox::TLSBase* ,
const std::string& ) {}
78 virtual void handleHandshakeResult(
const gloox::TLSBase* base,
bool success, gloox::CertInfo &certinfo );
92 CertificateProvider* m_cp;
93 gloox::ConnectionTLSServer* m_encryption;
100 #endif // FEATURESTARTTLS_H__