From: Bodo Möller Date: Tue, 14 May 2002 19:03:12 +0000 (+0000) Subject: make b_print.c consistent with the rest of OpenSSL: X-Git-Tag: OpenSSL_0_9_7-beta1~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55db40d3e085a1230a7419161d0cc442fc24e643;p=oweals%2Fopenssl.git make b_print.c consistent with the rest of OpenSSL: disable assert() except for debug builds --- diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 7c3c9bdf69..3ce1290772 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -56,6 +56,13 @@ * [including the GNU Public Licence.] */ +/* disable assert() unless BIO_DEBUG has been defined */ +#ifndef BIO_DEBUG +# ifndef NDEBUG +# define NDEBUG +# endif +#endif + /* * Stolen from tjh's ssl/ssl_trc.c stuff. */ diff --git a/crypto/bio/bss_bio.c b/crypto/bio/bss_bio.c index a5da473031..1c485a4479 100644 --- a/crypto/bio/bss_bio.c +++ b/crypto/bio/bss_bio.c @@ -7,9 +7,18 @@ * for which no specific BIO method is available. * See ssl/ssltest.c for some hints on how this can be used. */ +/* BIO_DEBUG implies BIO_PAIR_DEBUG */ +#ifdef BIO_DEBUG +# ifndef BIO_PAIR_DEBUG +# define BIO_PAIR_DEBUG +# endif +#endif + +/* disable assert() unless BIO_PAIR_DEBUG has been defined */ #ifndef BIO_PAIR_DEBUG -# undef NDEBUG /* avoid conflicting definitions */ -# define NDEBUG +# ifndef NDEBUG +# define NDEBUG +# endif #endif #include