aboutsummaryrefslogtreecommitdiff
path: root/externals/ace/SSL/SSL_Context.inl
diff options
context:
space:
mode:
authorclick <none@none>2010-08-15 00:28:14 +0200
committerclick <none@none>2010-08-15 00:28:14 +0200
commite3b8a5923d5e5512cfe6e0f02246d22146691008 (patch)
treec7bed4a5667148d73b75ab62eae9695eb10cad49 /externals/ace/SSL/SSL_Context.inl
parentf3b93df6b70648fdd644c6e0db24089dca34738e (diff)
Core/externals: Update ACE to 5.8.1 (should fix issues with disconnects happening on servers compiled under VS2010)
Update issue 3411 Status: NeedsFeedback --HG-- branch : trunk
Diffstat (limited to 'externals/ace/SSL/SSL_Context.inl')
-rw-r--r--externals/ace/SSL/SSL_Context.inl16
1 files changed, 14 insertions, 2 deletions
diff --git a/externals/ace/SSL/SSL_Context.inl b/externals/ace/SSL/SSL_Context.inl
index 990eab38293..7ecb3e0627e 100644
--- a/externals/ace/SSL/SSL_Context.inl
+++ b/externals/ace/SSL/SSL_Context.inl
@@ -1,6 +1,6 @@
// -*- C++ -*-
//
-// $Id: SSL_Context.inl 80826 2008-03-04 14:51:23Z wotte $
+// $Id: SSL_Context.inl 83916 2008-11-28 16:32:21Z johnnyw $
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -40,7 +40,8 @@ ACE_SSL_Context::check_context (void)
this->set_mode ();
}
- ::SSL_CTX_set_verify (this->context_, this->default_verify_mode (), 0);
+ ::SSL_CTX_set_verify (this->context_, this->default_verify_mode (),
+ this->default_verify_callback ());
}
ACE_INLINE SSL_CTX *
@@ -98,6 +99,17 @@ ACE_SSL_Context::default_verify_mode (void) const
return this->default_verify_mode_;
}
+ACE_INLINE void
+ACE_SSL_Context::default_verify_callback (int (*callback) (int, X509_STORE_CTX*))
+{
+ this->default_verify_callback_ = callback;
+}
+
+ACE_INLINE int (*ACE_SSL_Context::default_verify_callback(void) const)(int,X509_STORE_CTX *)
+{
+ return this->default_verify_callback_;
+}
+
ACE_INLINE int
ACE_SSL_Context::get_mode (void) const
{