From d0f4f423504d73a9b8a0f65f1d052013484d1b9e Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 16 Feb 2010 17:47:05 +0000 Subject: [PATCH] Make TlsOptions accessible per connection --- contrib/ldapc++/src/LDAPAsynConnection.cpp | 5 +++++ contrib/ldapc++/src/LDAPAsynConnection.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/ldapc++/src/LDAPAsynConnection.cpp b/contrib/ldapc++/src/LDAPAsynConnection.cpp index ff76868b15..8367e62a45 100644 --- a/contrib/ldapc++/src/LDAPAsynConnection.cpp +++ b/contrib/ldapc++/src/LDAPAsynConnection.cpp @@ -21,6 +21,7 @@ #include "LDAPRebind.h" #include "LDAPRebindAuth.h" #include "LDAPSearchRequest.h" +#include #include using namespace std; @@ -282,6 +283,10 @@ const LDAPConstraints* LDAPAsynConnection::getConstraints() const { return m_constr; } +TlsOptions LDAPAsynConnection::getTlsOptions() const { + return TlsOptions( cur_session ); +} + LDAP* LDAPAsynConnection::getSessionHandle() const{ DEBUG(LDAP_DEBUG_TRACE,"LDAPAsynConnection::getSessionHandle()" << endl); return cur_session; diff --git a/contrib/ldapc++/src/LDAPAsynConnection.h b/contrib/ldapc++/src/LDAPAsynConnection.h index 4c90ee14ef..4e41dd8ab7 100644 --- a/contrib/ldapc++/src/LDAPAsynConnection.h +++ b/contrib/ldapc++/src/LDAPAsynConnection.h @@ -12,7 +12,6 @@ #include #include -#include #include #include @@ -23,6 +22,7 @@ #include #include #include +#include //* Main class for an asynchronous LDAP connection /** @@ -281,7 +281,7 @@ class LDAPAsynConnection{ * used with the Connection */ const LDAPConstraints* getConstraints() const; - + TlsOptions getTlsOptions() const; /** * This method is used internally for automatic referral chasing. * It tries to bind to a destination server of the URLs of a -- 2.39.5