mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 12:09:35 -05:00
ITS#3168: Add LDAP_OPT_SOCKBUF
This commit is contained in:
parent
a99731b001
commit
440e631319
2 changed files with 6 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ LDAP_BEGIN_DECL
|
|||
#define LDAP_OPT_NETWORK_TIMEOUT 0x5005 /* socket level timeout */
|
||||
#define LDAP_OPT_URI 0x5006
|
||||
#define LDAP_OPT_REFERRAL_URLS 0x5007 /* Referral URLs */
|
||||
#define LDAP_OPT_SOCKBUF 0x5008 /* sockbuf */
|
||||
|
||||
/* OpenLDAP TLS options */
|
||||
#define LDAP_OPT_X_TLS 0x6000
|
||||
|
|
|
|||
|
|
@ -165,6 +165,11 @@ ldap_get_option(
|
|||
ber_sockbuf_ctrl( ld->ld_sb, LBER_SB_OPT_GET_FD, outvalue );
|
||||
return LDAP_OPT_SUCCESS;
|
||||
|
||||
case LDAP_OPT_SOCKBUF:
|
||||
if( ld == NULL ) break;
|
||||
outvalue = ld->ld_sb;
|
||||
return LDAP_OPT_SUCCESS;
|
||||
|
||||
case LDAP_OPT_TIMEOUT:
|
||||
/* the caller has to free outvalue ! */
|
||||
if ( ldap_int_timeval_dup( outvalue, lo->ldo_tm_api) != 0 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue