summaryrefslogtreecommitdiff
path: root/ACE/ace/SSL/SSL_Context.inl
diff options
context:
space:
mode:
authorwolff1 <wolff1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-02-23 21:33:57 +0000
committerwolff1 <wolff1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-02-23 21:33:57 +0000
commita10286c7bf3faf525feb22a40852a10644666fec (patch)
treeae59833feb0069d74a932c0b86bbd4da04dfc7e2 /ACE/ace/SSL/SSL_Context.inl
parent21bd6c21eb3346a10e81be73857e45ed241ceca3 (diff)
downloadATCD-a10286c7bf3faf525feb22a40852a10644666fec.tar.gz
merge in changes from trunk/ACE revisions 83248 - 84587
Diffstat (limited to 'ACE/ace/SSL/SSL_Context.inl')
-rw-r--r--ACE/ace/SSL/SSL_Context.inl14
1 files changed, 13 insertions, 1 deletions
diff --git a/ACE/ace/SSL/SSL_Context.inl b/ACE/ace/SSL/SSL_Context.inl
index 9962ad09bdc..8bb59b58b41 100644
--- a/ACE/ace/SSL/SSL_Context.inl
+++ b/ACE/ace/SSL/SSL_Context.inl
@@ -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
{