浏览代码

tls: remove warning about compression for openssl > 0.9.8e-beta1

Remove compile-time warning about compression workarounds for
openssl versions newer then  0.9.8e-beta1.
Andrei Pelinescu-Onciul 15 年之前
父节点
当前提交
5decf8ecdd
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      modules/tls/tls_init.c

+ 5 - 1
modules/tls/tls_init.c

@@ -79,7 +79,11 @@
 #    warning ""
 #endif
 
-#if OPENSSL_VERSION_NUMBER >= 0x00908000L  /* 0.9.8*/
+/* replace openssl zlib compression with our version if necessary
+ * (the openssl zlib compression uses the wrong malloc, see
+ *  openssl #1468): 0.9.8-dev < version  <0.9.8e-beta1 */
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L  /* 0.9.8-dev */ && \
+		OPENSSL_VERSION_NUMBER <  0x00908051L  /* 0.9.8.e-beta1 */
 #    ifndef OPENSSL_NO_COMP
 #        warning "openssl zlib compression bug workaround enabled"
 #    endif