diff options
author | deraadt <> | 2014-04-17 21:32:37 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-17 21:32:37 +0000 |
commit | 5f4d080a0e8eb89385e3020de8bbbd5243abf8dc (patch) | |
tree | 589999d558151d9470b6fb5b9841d45126ba2d8b /src/lib/libcrypto/rsa/rsa_lib.c | |
parent | 1388c217f6044b4ae8ebf791a8eb6012e2a4c2bb (diff) | |
download | openbsd-5f4d080a0e8eb89385e3020de8bbbd5243abf8dc.tar.gz openbsd-5f4d080a0e8eb89385e3020de8bbbd5243abf8dc.tar.bz2 openbsd-5f4d080a0e8eb89385e3020de8bbbd5243abf8dc.zip |
kill REF_PRINT/REF_CHECK debugging framework noone would use
ok miod
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_lib.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_lib.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_lib.c b/src/lib/libcrypto/rsa/rsa_lib.c index e99a3627dc..a618d70f92 100644 --- a/src/lib/libcrypto/rsa/rsa_lib.c +++ b/src/lib/libcrypto/rsa/rsa_lib.c | |||
@@ -208,17 +208,7 @@ void RSA_free(RSA *r) | |||
208 | if (r == NULL) return; | 208 | if (r == NULL) return; |
209 | 209 | ||
210 | i=CRYPTO_add(&r->references,-1,CRYPTO_LOCK_RSA); | 210 | i=CRYPTO_add(&r->references,-1,CRYPTO_LOCK_RSA); |
211 | #ifdef REF_PRINT | ||
212 | REF_PRINT("RSA",r); | ||
213 | #endif | ||
214 | if (i > 0) return; | 211 | if (i > 0) return; |
215 | #ifdef REF_CHECK | ||
216 | if (i < 0) | ||
217 | { | ||
218 | fprintf(stderr,"RSA_free, bad reference count\n"); | ||
219 | abort(); | ||
220 | } | ||
221 | #endif | ||
222 | 212 | ||
223 | if (r->meth->finish) | 213 | if (r->meth->finish) |
224 | r->meth->finish(r); | 214 | r->meth->finish(r); |
@@ -246,16 +236,6 @@ void RSA_free(RSA *r) | |||
246 | int RSA_up_ref(RSA *r) | 236 | int RSA_up_ref(RSA *r) |
247 | { | 237 | { |
248 | int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_RSA); | 238 | int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_RSA); |
249 | #ifdef REF_PRINT | ||
250 | REF_PRINT("RSA",r); | ||
251 | #endif | ||
252 | #ifdef REF_CHECK | ||
253 | if (i < 2) | ||
254 | { | ||
255 | fprintf(stderr, "RSA_up_ref, bad reference count\n"); | ||
256 | abort(); | ||
257 | } | ||
258 | #endif | ||
259 | return ((i > 1) ? 1 : 0); | 239 | return ((i > 1) ? 1 : 0); |
260 | } | 240 | } |
261 | 241 | ||