summaryrefslogtreecommitdiff
path: root/lib/libcrypto/evp/p_lib.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 21:32:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 21:32:38 +0000
commit1d52fd31b115b1f96773297f0d189ae8cefecb49 (patch)
tree87d36fc5ade26fd13815c12609cc65310c784de3 /lib/libcrypto/evp/p_lib.c
parent4238816d314ca1c00282dae135a7a4f8679b6e3c (diff)
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);