make b_print.c consistent with the rest of OpenSSL:
authorBodo Möller <bodo@openssl.org>
Tue, 14 May 2002 19:40:58 +0000 (19:40 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 14 May 2002 19:40:58 +0000 (19:40 +0000)
disable assert() except for debug builds

crypto/bio/b_print.c
crypto/bio/bss_bio.c

index 7c3c9bdf69f7b08511467c01d0911c8448f027da..3ce12907728e175fcb3f5c6765d1321f2477f7d0 100644 (file)
  * [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.
  */
index a5da473031717a8393af7c23a2bbf0d90cc053f5..1c485a4479ae62705710ac9856ba455aa6876e14 100644 (file)
@@ -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 <assert.h>