diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-17 21:32:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-04-17 21:32:38 +0000 |
commit | 1d52fd31b115b1f96773297f0d189ae8cefecb49 (patch) | |
tree | 87d36fc5ade26fd13815c12609cc65310c784de3 /lib/libcrypto/rsa | |
parent | 4238816d314ca1c00282dae135a7a4f8679b6e3c (diff) |
kill REF_PRINT/REF_CHECK debugging framework noone would use
ok miod
Diffstat (limited to 'lib/libcrypto/rsa')
-rw-r--r-- | lib/libcrypto/rsa/rsa_lib.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/libcrypto/rsa/rsa_lib.c b/lib/libcrypto/rsa/rsa_lib.c index e99a3627dc7..a618d70f92c 100644 --- a/lib/libcrypto/rsa/rsa_lib.c +++ b/lib/libcrypto/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); } |