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/libssl/ssl_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/libssl/ssl_lib.c')
-rw-r--r-- | src/lib/libssl/ssl_lib.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/libssl/ssl_lib.c b/src/lib/libssl/ssl_lib.c index 589bd625bb..3ab652a6a4 100644 --- a/src/lib/libssl/ssl_lib.c +++ b/src/lib/libssl/ssl_lib.c | |||
@@ -142,9 +142,6 @@ | |||
142 | * OTHERWISE. | 142 | * OTHERWISE. |
143 | */ | 143 | */ |
144 | 144 | ||
145 | #ifdef REF_CHECK | ||
146 | # include <assert.h> | ||
147 | #endif | ||
148 | #include <stdio.h> | 145 | #include <stdio.h> |
149 | #include "ssl_locl.h" | 146 | #include "ssl_locl.h" |
150 | #include "kssl_lcl.h" | 147 | #include "kssl_lcl.h" |
@@ -503,17 +500,8 @@ SSL_free(SSL *s) | |||
503 | return; | 500 | return; |
504 | 501 | ||
505 | i = CRYPTO_add(&s->references, -1, CRYPTO_LOCK_SSL); | 502 | i = CRYPTO_add(&s->references, -1, CRYPTO_LOCK_SSL); |
506 | #ifdef REF_PRINT | ||
507 | REF_PRINT("SSL", s); | ||
508 | #endif | ||
509 | if (i > 0) | 503 | if (i > 0) |
510 | return; | 504 | return; |
511 | #ifdef REF_CHECK | ||
512 | if (i < 0) { | ||
513 | fprintf(stderr, "SSL_free, bad reference count\n"); | ||
514 | abort(); /* ok */ | ||
515 | } | ||
516 | #endif | ||
517 | 505 | ||
518 | if (s->param) | 506 | if (s->param) |
519 | X509_VERIFY_PARAM_free(s->param); | 507 | X509_VERIFY_PARAM_free(s->param); |
@@ -1875,17 +1863,8 @@ SSL_CTX_free(SSL_CTX *a) | |||
1875 | return; | 1863 | return; |
1876 | 1864 | ||
1877 | i = CRYPTO_add(&a->references, -1, CRYPTO_LOCK_SSL_CTX); | 1865 | i = CRYPTO_add(&a->references, -1, CRYPTO_LOCK_SSL_CTX); |
1878 | #ifdef REF_PRINT | ||
1879 | REF_PRINT("SSL_CTX", a); | ||
1880 | #endif | ||
1881 | if (i > 0) | 1866 | if (i > 0) |
1882 | return; | 1867 | return; |
1883 | #ifdef REF_CHECK | ||
1884 | if (i < 0) { | ||
1885 | fprintf(stderr, "SSL_CTX_free, bad reference count\n"); | ||
1886 | abort(); /* ok */ | ||
1887 | } | ||
1888 | #endif | ||
1889 | 1868 | ||
1890 | if (a->param) | 1869 | if (a->param) |
1891 | X509_VERIFY_PARAM_free(a->param); | 1870 | X509_VERIFY_PARAM_free(a->param); |
@@ -2814,9 +2793,6 @@ ssl_free_wbio_buffer(SSL *s) | |||
2814 | if (s->bbio == s->wbio) { | 2793 | if (s->bbio == s->wbio) { |
2815 | /* remove buffering */ | 2794 | /* remove buffering */ |
2816 | s->wbio = BIO_pop(s->wbio); | 2795 | s->wbio = BIO_pop(s->wbio); |
2817 | #ifdef REF_CHECK /* not the usual REF_CHECK, but this avoids adding one more preprocessor symbol */ | ||
2818 | assert(s->wbio != NULL); | ||
2819 | #endif | ||
2820 | } | 2796 | } |
2821 | BIO_free(s->bbio); | 2797 | BIO_free(s->bbio); |
2822 | s->bbio = NULL; | 2798 | s->bbio = NULL; |