Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
440e6313
Commit
440e6313
authored
20 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
ITS#3168: Add LDAP_OPT_SOCKBUF
parent
a99731b0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldap.h
+1
-0
1 addition, 0 deletions
include/ldap.h
libraries/libldap/options.c
+5
-0
5 additions, 0 deletions
libraries/libldap/options.c
with
6 additions
and
0 deletions
include/ldap.h
+
1
−
0
View file @
440e6313
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/options.c
+
5
−
0
View file @
440e6313
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment