mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Make TlsOptions accessible per connection
This commit is contained in:
parent
277b3318d4
commit
d0f4f42350
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue