diff options
Diffstat (limited to 'lib/libcrypto/rsa/rsa_lib.c')
-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); } |