summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/crypto/dsa/dsa_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libssl/src/crypto/dsa/dsa_lib.c')
-rw-r--r--lib/libssl/src/crypto/dsa/dsa_lib.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libssl/src/crypto/dsa/dsa_lib.c b/lib/libssl/src/crypto/dsa/dsa_lib.c
index 27a4c666183..7c7cd608834 100644
--- a/lib/libssl/src/crypto/dsa/dsa_lib.c
+++ b/lib/libssl/src/crypto/dsa/dsa_lib.c
@@ -188,17 +188,7 @@ void DSA_free(DSA *r)
if (r == NULL) return;
i=CRYPTO_add(&r->references,-1,CRYPTO_LOCK_DSA);
-#ifdef REF_PRINT
- REF_PRINT("DSA",r);
-#endif
if (i > 0) return;
-#ifdef REF_CHECK
- if (i < 0)
- {
- fprintf(stderr,"DSA_free, bad reference count\n");
- abort();
- }
-#endif
if(r->meth->finish)
r->meth->finish(r);
@@ -222,16 +212,6 @@ void DSA_free(DSA *r)
int DSA_up_ref(DSA *r)
{
int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DSA);
-#ifdef REF_PRINT
- REF_PRINT("DSA",r);
-#endif
-#ifdef REF_CHECK
- if (i < 2)
- {
- fprintf(stderr, "DSA_up_ref, bad reference count\n");
- abort();
- }
-#endif
return ((i > 1) ? 1 : 0);
}