Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quanah Gibson-Mount
OpenLDAP
Commits
05c9d4bf
Commit
05c9d4bf
authored
Sep 05, 2001
by
Kurt Zeilenga
Browse files
Fix TLS ldap.conf issues
parent
0ec312d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/init.c
View file @
05c9d4bf
...
...
@@ -221,7 +221,7 @@ static void openldap_ldap_init_w_conf(
break
;
case
ATTR_TLS
:
#ifdef HAVE_TLS
ldap_int_tls_config
(
gopts
,
attrs
[
i
].
offset
,
opt
);
ldap_int_tls_config
(
NULL
,
attrs
[
i
].
offset
,
opt
);
#endif
break
;
}
...
...
@@ -357,7 +357,7 @@ static void openldap_ldap_init_w_env(
break
;
case
ATTR_TLS
:
#ifdef HAVE_TLS
ldap_int_tls_config
(
gopts
,
attrs
[
i
].
offset
,
value
);
ldap_int_tls_config
(
NULL
,
attrs
[
i
].
offset
,
value
);
#endif
break
;
}
...
...
libraries/libldap/tls.c
View file @
05c9d4bf
...
...
@@ -866,13 +866,13 @@ ldap_int_tls_config( LDAP *ld, int option, const char *arg )
case
LDAP_OPT_X_TLS_CERTFILE
:
case
LDAP_OPT_X_TLS_KEYFILE
:
case
LDAP_OPT_X_TLS_RANDOM_FILE
:
return
ldap_pvt_tls_set_option
(
NULL
,
option
,
(
void
*
)
arg
);
return
ldap_pvt_tls_set_option
(
ld
,
option
,
(
void
*
)
arg
);
case
LDAP_OPT_X_TLS_REQUIRE_CERT
:
i
=
(
(
strcasecmp
(
arg
,
"on"
)
==
0
)
||
(
strcasecmp
(
arg
,
"yes"
)
==
0
)
||
(
strcasecmp
(
arg
,
"true"
)
==
0
)
);
return
ldap_pvt_tls_set_option
(
NULL
,
option
,
(
void
*
)
&
i
);
return
ldap_pvt_tls_set_option
(
ld
,
option
,
(
void
*
)
&
i
);
case
LDAP_OPT_X_TLS
:
i
=
-
1
;
...
...
Write
Preview
Supports
Markdown
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