15 #ifndef TLSGNUTLSCLIENT_H__
16 #define TLSGNUTLSCLIENT_H__
18 #include "tlsgnutlsbase.h"
24 #include <gnutls/gnutls.h>
25 #include <gnutls/x509.h>
63 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
69 virtual void getCertInfo();
71 bool verifyAgainst( gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer );
72 bool verifyAgainstCAs( gnutls_x509_crt_t cert, gnutls_x509_crt_t *CAList,
int CAListSize );
74 gnutls_certificate_credentials m_credentials;
82 #endif // TLSGNUTLSCLIENT_H__
std::list< std::string > StringList
virtual bool init(const std::string &clientKey=EmptyString, const std::string &clientCerts=EmptyString, const StringList &cacerts=StringList())
This class implements a TLS backend using GnuTLS.
This is the common base class for (stream) encryption using GnuTLS.
GnuTLSClient(TLSHandler *th, const std::string &server)
virtual void setCACerts(const StringList &cacerts)
virtual void setClientCert(const std::string &clientKey, const std::string &clientCerts)
An interface that allows for interacting with TLS implementations derived from TLSBase.
const std::string EmptyString