summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dh/dh_lib.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-04-17 21:32:37 +0000
committerderaadt <deraadt@openbsd.org>2014-04-17 21:32:37 +0000
commit34ee2fc768852b1f57d8711e841d47fa495828d1 (patch)
tree10a8d2ca22d6c9d71568068105ebc54e50f88bea /lib/libcrypto/dh/dh_lib.c
parentSome VMS and WIN32 cleanup (diff)
downloadwireguard-openbsd-34ee2fc768852b1f57d8711e841d47fa495828d1.tar.xz
wireguard-openbsd-34ee2fc768852b1f57d8711e841d47fa495828d1.zip
kill REF_PRINT/REF_CHECK debugging framework noone would use
ok miod
Diffstat (limited to 'lib/libcrypto/dh/dh_lib.c')
-rw-r--r--lib/libcrypto/dh/dh_lib.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libcrypto/dh/dh_lib.c b/lib/libcrypto/dh/dh_lib.c
index 4e3d25b7e5e..e09c5fdd21c 100644
--- a/lib/libcrypto/dh/dh_lib.c
+++ b/lib/libcrypto/dh/dh_lib.c
@@ -178,17 +178,7 @@ void DH_free(DH *r)
int i;
if(r == NULL) return;
i = CRYPTO_add(&r->references, -1, CRYPTO_LOCK_DH);
-#ifdef REF_PRINT
- REF_PRINT("DH",r);
-#endif
if (i > 0) return;
-#ifdef REF_CHECK
- if (i < 0)
- {
- fprintf(stderr,"DH_free, bad reference count\n");
- abort();
- }
-#endif
if (r->meth->finish)
r->meth->finish(r);
@@ -213,16 +203,6 @@ void DH_free(DH *r)
int DH_up_ref(DH *r)
{
int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DH);
-#ifdef REF_PRINT
- REF_PRINT("DH",r);
-#endif
-#ifdef REF_CHECK
- if (i < 2)
- {
- fprintf(stderr, "DH_up, bad reference count\n");
- abort();
- }
-#endif
return ((i > 1) ? 1 : 0);
}