The branch OpenSSL_1_0_2-stable has been updated
       via  a6406c95984a1009f5676bbcf60cc0d6db107af4 (commit)
      from  04d5242c46b0f348f5ab92e9764f138547b237c5 (commit)


- Log -----------------------------------------------------------------
commit a6406c95984a1009f5676bbcf60cc0d6db107af4
Author: Matt Caswell <[email protected]>
Date:   Thu Mar 17 12:55:02 2016 +0000

    Fix the no-comp option for Windows
    
    no-comp on Windows was not actually suppressing compilation of the code,
    although it was suppressing its use.
    
    Reviewed-by: Richard Levitte <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 crypto/comp/comp.h |  4 ++++
 util/libeay.num    | 18 +++++++++---------
 util/mk1mf.pl      |  8 +++++---
 3 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/crypto/comp/comp.h b/crypto/comp/comp.h
index 406c428..60a0734 100644
--- a/crypto/comp/comp.h
+++ b/crypto/comp/comp.h
@@ -4,6 +4,10 @@
 
 # include <openssl/crypto.h>
 
+# ifdef OPENSSL_NO_COMP
+#  error COMP is disabled.
+# endif
+
 #ifdef  __cplusplus
 extern "C" {
 #endif
diff --git a/util/libeay.num b/util/libeay.num
index e5b3c6e..2094ab3 100755
--- a/util/libeay.num
+++ b/util/libeay.num
@@ -1065,8 +1065,8 @@ d2i_ASN1_BMPSTRING                      1092      
EXIST::FUNCTION:
 i2d_ASN1_BMPSTRING                      1093   EXIST::FUNCTION:
 BIO_f_ber                               1094   NOEXIST::FUNCTION:
 BN_init                                 1095   EXIST::FUNCTION:
-COMP_CTX_new                            1096   EXIST::FUNCTION:
-COMP_CTX_free                           1097   EXIST::FUNCTION:
+COMP_CTX_new                            1096   EXIST::FUNCTION:COMP
+COMP_CTX_free                           1097   EXIST::FUNCTION:COMP
 COMP_CTX_compress_block                 1098   NOEXIST::FUNCTION:
 COMP_CTX_expand_block                   1099   NOEXIST::FUNCTION:
 X509_STORE_CTX_get_ex_new_index         1100   EXIST::FUNCTION:
@@ -1113,10 +1113,10 @@ PKCS7_digest_from_attributes            1140    
EXIST::FUNCTION:
 PKCS7_get_attribute                     1141   EXIST::FUNCTION:
 PKCS7_get_issuer_and_serial             1142   EXIST::FUNCTION:
 PKCS7_get_signed_attribute              1143   EXIST::FUNCTION:
-COMP_compress_block                     1144   EXIST::FUNCTION:
-COMP_expand_block                       1145   EXIST::FUNCTION:
-COMP_rle                                1146   EXIST::FUNCTION:
-COMP_zlib                               1147   EXIST::FUNCTION:
+COMP_compress_block                     1144   EXIST::FUNCTION:COMP
+COMP_expand_block                       1145   EXIST::FUNCTION:COMP
+COMP_rle                                1146   EXIST::FUNCTION:COMP
+COMP_zlib                               1147   EXIST::FUNCTION:COMP
 ms_time_diff                            1148   NOEXIST::FUNCTION:
 ms_time_new                             1149   NOEXIST::FUNCTION:
 ms_time_free                            1150   NOEXIST::FUNCTION:
@@ -1945,7 +1945,7 @@ ENGINE_get_ctrl_function                2521      
EXIST::FUNCTION:ENGINE
 ENGINE_set_ctrl_function                2522   EXIST::FUNCTION:ENGINE
 BN_pseudo_rand_range                    2523   EXIST::FUNCTION:
 X509_STORE_CTX_set_verify_cb            2524   EXIST::FUNCTION:
-ERR_load_COMP_strings                   2525   EXIST::FUNCTION:
+ERR_load_COMP_strings                   2525   EXIST::FUNCTION:COMP
 PKCS12_item_decrypt_d2i                 2526   EXIST::FUNCTION:
 ASN1_UTF8STRING_it                      2527   
EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE:
 ASN1_UTF8STRING_it                      2527   
EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION:
@@ -3545,8 +3545,8 @@ X509at_get0_data_by_OBJ                 3931      
EXIST::FUNCTION:
 ASN1_TYPE_set1                          3932   EXIST::FUNCTION:
 ASN1_STRING_set0                        3933   EXIST::FUNCTION:
 i2d_X509_ALGORS                         3934   EXIST::FUNCTION:
-BIO_f_zlib                              3935   EXIST:ZLIB:FUNCTION:
-COMP_zlib_cleanup                       3936   EXIST::FUNCTION:
+BIO_f_zlib                              3935   EXIST:ZLIB:FUNCTION:COMP
+COMP_zlib_cleanup                       3936   EXIST::FUNCTION:COMP
 d2i_X509_ALGORS                         3937   EXIST::FUNCTION:
 CMS_ReceiptRequest_free                 3938   EXIST::FUNCTION:CMS
 PEM_write_CMS                           3939   EXIST:!WIN16:FUNCTION:CMS
diff --git a/util/mk1mf.pl b/util/mk1mf.pl
index 9029c51..128a405 100755
--- a/util/mk1mf.pl
+++ b/util/mk1mf.pl
@@ -291,8 +291,9 @@ $cflags.=" -DOPENSSL_FIPS"    if $fips;
 $cflags.=" -DOPENSSL_NO_JPAKE"    if $no_jpake;
 $cflags.=" -DOPENSSL_NO_EC2M"    if $no_ec2m;
 $cflags.=" -DOPENSSL_NO_WEAK_SSL_CIPHERS"   if $no_weak_ssl;
-$cflags.= " -DZLIB" if $zlib_opt;
-$cflags.= " -DZLIB_SHARED" if $zlib_opt == 2;
+$cflags.=" -DZLIB" if $zlib_opt;
+$cflags.=" -DZLIB_SHARED" if $zlib_opt == 2;
+$cflags.=" -DOPENSSL_NO_COMP" if $no_comp;
 
 if ($no_static_engine)
        {
@@ -850,6 +851,7 @@ sub var_add
        return("") if $no_gost   && $dir =~ /\/ccgost/;
        return("") if $no_cms  && $dir =~ /\/cms/;
        return("") if $no_jpake  && $dir =~ /\/jpake/;
+       return("") if $no_comp && $dir =~ /\/comp/;
        if ($no_des && $dir =~ /\/des/)
                {
                if ($val =~ /read_pwd/)
@@ -1243,6 +1245,7 @@ sub read_options
                "no-unit-test" => 0,
                "no-libunbound" => 0,
                "no-multiblock" => 0,
+               "no-comp" => \$no_comp,
                "fips" => \$fips
                );
 
@@ -1260,7 +1263,6 @@ sub read_options
                                }
                        }
                }
-       elsif (/^no-comp$/) { $xcflags = "-DOPENSSL_NO_COMP $xcflags"; }
        elsif (/^enable-zlib$/) { $zlib_opt = 1 if $zlib_opt == 0 }
        elsif (/^enable-zlib-dynamic$/)
                {
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to