mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#8353 partial fix
Use newly added SSL_CTX_up_ref() Still waiting for X509_NAME accessor
This commit is contained in:
parent
4a9f4439be
commit
f3a7bf79db
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue