summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/SslConnectionOpenSSL.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/SslConnectionOpenSSL.h')
-rw-r--r--cpp/src/Ice/SslConnectionOpenSSL.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/cpp/src/Ice/SslConnectionOpenSSL.h b/cpp/src/Ice/SslConnectionOpenSSL.h
index c0eb5cd182b..dee4a2aa07e 100644
--- a/cpp/src/Ice/SslConnectionOpenSSL.h
+++ b/cpp/src/Ice/SslConnectionOpenSSL.h
@@ -17,7 +17,7 @@
#include <Ice/SslConnection.h>
#include <Ice/SslSystemF.h>
#include <Ice/SslConnectionOpenSSLF.h>
-#include <Ice/SslCertificateVerifierF.h>
+#include <Ice/SslCertificateVerifier.h>
namespace IceSecurity
{
@@ -110,6 +110,22 @@ private:
SafeFlag& _flag;
};
+class DefaultCertificateVerifier : public CertificateVerifier
+{
+
+public:
+ DefaultCertificateVerifier();
+
+ void setTraceLevels(const TraceLevelsPtr&);
+ void setLogger(const LoggerPtr&);
+
+ virtual int verify(int, X509_STORE_CTX*, SSL*);
+
+private:
+ TraceLevelsPtr _traceLevels;
+ LoggerPtr _logger;
+};
+
// NOTE: This is a mapping from SSL* to Connection*, for use with the verifyCallback.
// I have purposely not used ConnectionPtr here, as connections register themselves
// with this map on construction and unregister themselves in the destructor. If
@@ -154,8 +170,6 @@ protected:
int sslRead(char*, int);
int sslWrite(char*, int);
- void printGetError(int);
-
void protocolWrite();
int readInBuffer(Buffer&);