mirror of
https://github.com/sonertari/SSLproxy
synced 2024-10-31 21:20:21 +00:00
Remove unused ssl_dh_refcount_inc()
This commit is contained in:
parent
ca29ad0740
commit
80cb2d654d
16
src/ssl.c
16
src/ssl.c
@ -1513,22 +1513,6 @@ ssl_x509_fingerprint(X509 *crt, int colons)
|
||||
return ssl_sha1_to_str(fpr, colons);
|
||||
}
|
||||
|
||||
#ifndef OPENSSL_NO_DH
|
||||
/*
|
||||
* Increment the reference count of DH parameters in a thread-safe
|
||||
* manner.
|
||||
*/
|
||||
void
|
||||
ssl_dh_refcount_inc(DH *dh)
|
||||
{
|
||||
#if defined(OPENSSL_THREADS) && ((OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20701000L))
|
||||
CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH);
|
||||
#else /* !OPENSSL_THREADS */
|
||||
DH_up_ref(dh);
|
||||
#endif /* !OPENSSL_THREADS */
|
||||
}
|
||||
#endif /* !OPENSSL_NO_DH */
|
||||
|
||||
/*
|
||||
* Increment the reference count of an X509 certificate in a thread-safe
|
||||
* manner.
|
||||
|
Loading…
Reference in New Issue
Block a user