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
Joe Martin
OpenLDAP
Commits
7709d4d8
Commit
7709d4d8
authored
Apr 07, 2006
by
Howard Chu
Browse files
Bump SSL_CTX refcount whenever it gets retrieved
parent
d18277ea
Changes
1
Show whitespace changes
Inline
Side-by-side
libraries/libldap/tls.c
View file @
7709d4d8
...
...
@@ -1245,6 +1245,10 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg )
break
;
case
LDAP_OPT_X_TLS_CTX
:
*
(
void
**
)
arg
=
lo
->
ldo_tls_ctx
;
if
(
lo
->
ldo_tls_ctx
)
{
SSL_CTX
*
ctx
=
lo
->
ldo_tls_ctx
;
CRYPTO_add
(
&
ctx
->
references
,
1
,
CRYPTO_LOCK_SSL_CTX
);
}
break
;
case
LDAP_OPT_X_TLS_CACERTFILE
:
*
(
char
**
)
arg
=
lo
->
ldo_tls_cacertfile
?
...
...
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