15 #ifndef TLSGNUTLSSERVER_H__
16 #define TLSGNUTLSSERVER_H__
18 #include "tlsgnutlsbase.h"
24 #include <gnutls/gnutls.h>
25 #include <gnutls/x509.h>
62 virtual void setCACerts(
const StringList& cacerts );
65 virtual void setClientCert(
const std::string& clientKey,
66 const std::string& clientCerts );
68 virtual void getCertInfo();
71 gnutls_certificate_credentials_t m_x509cred;
73 gnutls_dh_params_t m_dhParams;
74 gnutls_rsa_params_t m_rsaParams;
This is the common base class for (stream) encryption using GnuTLS.
This class implements (stream) encryption using GnuTLS server-side.
virtual bool init(const std::string &clientKey=EmptyString, const std::string &clientCerts=EmptyString, const StringList &cacerts=StringList())
GnuTLSServer(TLSHandler *th)
An interface that allows for interacting with TLS implementations derived from TLSBase.
The namespace for the gloox library.
std::list< std::string > StringList
const std::string EmptyString