summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/evp/p_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/evp/p_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/evp/p_lib.c')
-rw-r--r--lib/libcrypto/evp/p_lib.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libcrypto/evp/p_lib.c b/lib/libcrypto/evp/p_lib.c
index 7a9da3487a8..5f5f5e328da 100644
--- a/lib/libcrypto/evp/p_lib.c
+++ b/lib/libcrypto/evp/p_lib.c
@@ -391,17 +391,8 @@ void EVP_PKEY_free(EVP_PKEY *x)
if (x == NULL) return;
i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY);
-#ifdef REF_PRINT
- REF_PRINT("EVP_PKEY",x);
-#endif
if (i > 0) return;
-#ifdef REF_CHECK
- if (i < 0)
- {
- fprintf(stderr,"EVP_PKEY_free, bad reference count\n");
- abort();
- }
-#endif
+
EVP_PKEY_free_it(x);
if (x->attributes)
sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free);