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/evp/p_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/evp/p_lib.c')
-rw-r--r-- | src/lib/libcrypto/evp/p_lib.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c index 7a9da3487a..5f5f5e328d 100644 --- a/src/lib/libcrypto/evp/p_lib.c +++ b/src/lib/libcrypto/evp/p_lib.c | |||
@@ -391,17 +391,8 @@ void EVP_PKEY_free(EVP_PKEY *x) | |||
391 | if (x == NULL) return; | 391 | if (x == NULL) return; |
392 | 392 | ||
393 | i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY); | 393 | i=CRYPTO_add(&x->references,-1,CRYPTO_LOCK_EVP_PKEY); |
394 | #ifdef REF_PRINT | ||
395 | REF_PRINT("EVP_PKEY",x); | ||
396 | #endif | ||
397 | if (i > 0) return; | 394 | if (i > 0) return; |
398 | #ifdef REF_CHECK | 395 | |
399 | if (i < 0) | ||
400 | { | ||
401 | fprintf(stderr,"EVP_PKEY_free, bad reference count\n"); | ||
402 | abort(); | ||
403 | } | ||
404 | #endif | ||
405 | EVP_PKEY_free_it(x); | 396 | EVP_PKEY_free_it(x); |
406 | if (x->attributes) | 397 | if (x->attributes) |
407 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); | 398 | sk_X509_ATTRIBUTE_pop_free(x->attributes, X509_ATTRIBUTE_free); |