15 #ifndef TLSGNUTLSCLIENT_H__
16 #define TLSGNUTLSCLIENT_H__
18 #include "tlsgnutlsbase.h"
24 #include <gnutls/gnutls.h>
25 #include <gnutls/x509.h>
62 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
68 virtual void getCertInfo();
70 bool verifyAgainst( gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer );
71 bool verifyAgainstCAs( gnutls_x509_crt_t cert, gnutls_x509_crt_t *CAList,
int CAListSize );
73 gnutls_certificate_credentials_t m_credentials;
This is the common base class for (stream) encryption using GnuTLS.
This class implements a TLS backend using GnuTLS.
virtual void setCACerts(const StringList &cacerts)
virtual void setClientCert(const std::string &clientKey, const std::string &clientCerts)
virtual bool init(const std::string &clientKey=EmptyString, const std::string &clientCerts=EmptyString, const StringList &cacerts=StringList())
GnuTLSClient(TLSHandler *th, const std::string &server)
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