From: Howard Chu Date: Tue, 26 Jan 2016 18:06:46 +0000 (+0000) Subject: ITS#8353 partial fix X-Git-Tag: OPENLDAP_REL_ENG_2_4_45~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=051f14f6d6809ff6074fd22e461bed71e160da92;p=openldap ITS#8353 partial fix Use newly added SSL_CTX_up_ref() Still waiting for X509_NAME accessor --- diff --git a/libraries/libldap/tls_o.c b/libraries/libldap/tls_o.c index 93fdd6e2a1..b2dcc8fd8f 100644 --- a/libraries/libldap/tls_o.c +++ b/libraries/libldap/tls_o.c @@ -187,7 +187,10 @@ static void tlso_ctx_ref( tls_ctx *ctx ) { tlso_ctx *c = (tlso_ctx *)ctx; - CRYPTO_add( &c->references, 1, CRYPTO_LOCK_SSL_CTX ); +#if OPENSSL_VERSION_NUMBER < 0x10100000 +#define SSL_CTX_up_ref(ctx) CRYPTO_add( &(ctx->references), 1, CRYPTO_LOCK_SSL_CTX ) +#endif + SSL_CTX_up_ref( c ); } static void