Make TlsOptions accessible per connection

This commit is contained in:
Ralf Haferkamp 2010-02-16 17:47:05 +00:00
parent 277b3318d4
commit d0f4f42350
2 changed files with 7 additions and 2 deletions

View file

@ -21,6 +21,7 @@
#include "LDAPRebind.h"
#include "LDAPRebindAuth.h"
#include "LDAPSearchRequest.h"
#include <lber.h>
#include <sstream>
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;

View file

@ -12,7 +12,6 @@
#include<string>
#include<ldap.h>
#include<lber.h>
#include <LDAPEntry.h>
#include <LDAPException.h>
@ -23,6 +22,7 @@
#include <LDAPUrl.h>
#include <LDAPUrlList.h>
#include <SaslInteractionHandler.h>
#include <TlsOptions.h>
//* 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