Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b6852f6b
Commit
b6852f6b
authored
Sep 30, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ldap: Import upstream release 2.5.16.
parent
b4c541b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
init.c
libs/ldap/libldap/init.c
+3
-3
open.c
libs/ldap/libldap/open.c
+6
-1
No files found.
libs/ldap/libldap/init.c
View file @
b6852f6b
...
@@ -96,9 +96,9 @@ static const struct ol_attribute {
...
@@ -96,9 +96,9 @@ static const struct ol_attribute {
{
0
,
ATTR_OPTION
,
"URI"
,
NULL
,
LDAP_OPT_URI
},
/* replaces HOST/PORT */
{
0
,
ATTR_OPTION
,
"URI"
,
NULL
,
LDAP_OPT_URI
},
/* replaces HOST/PORT */
{
0
,
ATTR_OPTION
,
"SOCKET_BIND_ADDRESSES"
,
NULL
,
LDAP_OPT_SOCKET_BIND_ADDRESSES
},
{
0
,
ATTR_OPTION
,
"SOCKET_BIND_ADDRESSES"
,
NULL
,
LDAP_OPT_SOCKET_BIND_ADDRESSES
},
{
0
,
ATTR_BOOL
,
"REFERRALS"
,
NULL
,
LDAP_BOOL_REFERRALS
},
{
0
,
ATTR_BOOL
,
"REFERRALS"
,
NULL
,
LDAP_BOOL_REFERRALS
},
{
0
,
ATTR_
INT
,
"KEEPALIVE_IDLE"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_IDLE
},
{
0
,
ATTR_
OPT_INT
,
"KEEPALIVE_IDLE"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_IDLE
},
{
0
,
ATTR_
INT
,
"KEEPALIVE_PROBES"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_PROBES
},
{
0
,
ATTR_
OPT_INT
,
"KEEPALIVE_PROBES"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_PROBES
},
{
0
,
ATTR_
INT
,
"KEEPALIVE_INTERVAL"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_INTERVAL
},
{
0
,
ATTR_
OPT_INT
,
"KEEPALIVE_INTERVAL"
,
NULL
,
LDAP_OPT_X_KEEPALIVE_INTERVAL
},
#if 0
#if 0
/* This should only be allowed via ldap_set_option(3) */
/* This should only be allowed via ldap_set_option(3) */
...
...
libs/ldap/libldap/open.c
View file @
b6852f6b
...
@@ -501,6 +501,11 @@ ldap_int_open_connection(
...
@@ -501,6 +501,11 @@ ldap_int_open_connection(
if
(
proto
==
LDAP_PROTO_UDP
)
return
0
;
if
(
proto
==
LDAP_PROTO_UDP
)
return
0
;
#endif
#endif
if
(
async
&&
rc
==
-
2
)
{
/* Need to let the connect complete asynchronously before we continue */
return
-
2
;
}
#ifdef HAVE_TLS
#ifdef HAVE_TLS
if
((
rc
==
0
||
rc
==
-
2
)
&&
(
ld
->
ld_options
.
ldo_tls_mode
==
LDAP_OPT_X_TLS_HARD
||
if
((
rc
==
0
||
rc
==
-
2
)
&&
(
ld
->
ld_options
.
ldo_tls_mode
==
LDAP_OPT_X_TLS_HARD
||
strcmp
(
srv
->
lud_scheme
,
"ldaps"
)
==
0
))
strcmp
(
srv
->
lud_scheme
,
"ldaps"
)
==
0
))
...
@@ -585,9 +590,9 @@ ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp )
...
@@ -585,9 +590,9 @@ ldap_open_internal_connection( LDAP **ldp, ber_socket_t *fdp )
/* Attach the passed socket as the *LDAP's connection */
/* Attach the passed socket as the *LDAP's connection */
c
=
ldap_new_connection
(
ld
,
NULL
,
1
,
0
,
NULL
,
0
,
0
);
c
=
ldap_new_connection
(
ld
,
NULL
,
1
,
0
,
NULL
,
0
,
0
);
if
(
c
==
NULL
)
{
if
(
c
==
NULL
)
{
LDAP_MUTEX_UNLOCK
(
&
ld
->
ld_conn_mutex
);
ldap_unbind_ext
(
ld
,
NULL
,
NULL
);
ldap_unbind_ext
(
ld
,
NULL
,
NULL
);
*
ldp
=
NULL
;
*
ldp
=
NULL
;
LDAP_MUTEX_UNLOCK
(
&
ld
->
ld_conn_mutex
);
return
(
LDAP_NO_MEMORY
);
return
(
LDAP_NO_MEMORY
);
}
}
ber_sockbuf_ctrl
(
c
->
lconn_sb
,
LBER_SB_OPT_SET_FD
,
fdp
);
ber_sockbuf_ctrl
(
c
->
lconn_sb
,
LBER_SB_OPT_SET_FD
,
fdp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment