summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/rsa/rsa_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/libssl/src/crypto/rsa/rsa_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/libssl/src/crypto/rsa/rsa_lib.c')
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_lib.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libssl/src/crypto/rsa/rsa_lib.c b/lib/libssl/src/crypto/rsa/rsa_lib.c
index e99a3627dc7..a618d70f92c 100644
--- a/lib/libssl/src/crypto/rsa/rsa_lib.c
+++ b/lib/libssl/src/crypto/rsa/rsa_lib.c
@@ -208,17 +208,7 @@ void RSA_free(RSA *r)
if (r == NULL) return;
i=CRYPTO_add(&r->references,-1,CRYPTO_LOCK_RSA);
-#ifdef REF_PRINT
- REF_PRINT("RSA",r);
-#endif
if (i > 0) return;
-#ifdef REF_CHECK
- if (i < 0)
- {
- fprintf(stderr,"RSA_free, bad reference count\n");
- abort();
- }
-#endif
if (r->meth->finish)
r->meth->finish(r);
@@ -246,16 +236,6 @@ void RSA_free(RSA *r)
int RSA_up_ref(RSA *r)
{
int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_RSA);
-#ifdef REF_PRINT
- REF_PRINT("RSA",r);
-#endif
-#ifdef REF_CHECK
- if (i < 2)
- {
- fprintf(stderr, "RSA_up_ref, bad reference count\n");
- abort();
- }
-#endif
return ((i > 1) ? 1 : 0);
}