diff options
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 | ||
