Remove unused ssl_dh_refcount_inc()

This commit is contained in:
Soner Tari 2024-09-28 12:36:48 +03:00
parent ca29ad0740
commit 80cb2d654d
2 changed files with 0 additions and 17 deletions

View File

@ -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.

View File

@ -228,7 +228,6 @@ DH *
EVP_PKEY *
#endif /* OPENSSL_VERSION_NUMBER >= 0x30000000L */
ssl_dh_load(const char *) NONNULL(1) MALLOC;
void ssl_dh_refcount_inc(DH *) NONNULL(1);
#endif /* !OPENSSL_NO_DH */
#ifndef OPENSSL_NO_EC