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 setCACerts(
const StringList& cacerts );
64 virtual void setClientCert(
const std::string& clientKey,
const std::string& clientCerts );
66 virtual void getCertInfo();
68 bool verifyAgainst( gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer );
69 bool verifyAgainstCAs( gnutls_x509_crt_t cert, gnutls_x509_crt_t *CAList,
int CAListSize );
71 gnutls_certificate_credentials m_credentials;
79 #endif // TLSGNUTLSCLIENT_H__