com php-src: Merge branch 'PHP-7.1': ext/openssl/xp_ssl.c win32/build/confutils.js

From: Date: Sat, 07 Jan 2017 23:39:53 +0000
Subject: com php-src: Merge branch 'PHP-7.1': ext/openssl/xp_ssl.c win32/build/confutils.js
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96620@lists.php.net to get a copy of this message
Commit: 97ac819c2b73ae57a971b6d0f719cd8b349ec098 Author: Anatol Belski <ab@php.net> Sun, 8 Jan 2017 00:39:53 +0100 Parents: 72038b6c381aa17c525fcb551b7c53f6a9d7b55e 43b92ed5a8d87d964acb4704ca683f241e645922 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=97ac819c2b73ae57a971b6d0f719cd8b349ec098 Log: Merge branch 'PHP-7.1' * PHP-7.1: move various places to the centralized OpenSSL setup routine use the new API for opaque symbol in OpenSSL 1..1.x implement basic config support for OpenSSL 1.1.x Changed paths: MM ext/openssl/xp_ssl.c MM win32/build/confutils.js Diff: diff --cc win32/build/confutils.js index 780d912,841fa29..be6fb62 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@@ -3290,31 -3264,25 +3290,53 @@@ function force_all_shared( return !!PHP_ALL_SHARED && "yes" == PHP_ALL_SHARED; } +function ADD_MAKEFILE_FRAGMENT(src_file) +{ + var fn_in; + + if ("undefined" == typeof(src_file)) { + fn_in = configure_module_dirname + "\\Makefile.frag.w32"; + } else { + fn_in = src_file; + } + + if (FSO.FileExists(fn_in)) { + var h_in, h_out; + var create_out_fl = !FSO.FileExists(PHP_MAKEFILE_FRAGMENTS); + var open_flags = create_out_fl ? 2 : 8; + + h_in = FSO..OpenTextFile(fn_in, 1); + h_out = FSO.OpenTextFile(PHP_MAKEFILE_FRAGMENTS, open_flags, create_out_fl); + + if (!h_in.AtEndOfStream) { + h_out.Write(h_in.ReadAll()); + h_out.WriteBlankLines(1); + } + + h_in.Close(); + h_out.Close(); + } +} + + function SETUP_OPENSSL(target, path_to_check, common_name, use_env, add_dir_part, add_to_flag_only) + { + var ret = 0; + var cflags_var = "CFLAGS_" + target.toUpperCase(); + + if (CHECK_LIB("ssleay32.lib", target, path_to_check, common_name) && + CHECK_LIB("libeay32.lib", target, path_to_check, common_name) && + CHECK_LIB("crypt32.lib", target, path_to_check, common_name) && + CHECK_HEADER_ADD_INCLUDE("openssl/ssl.h", cflags_var, path_to_check, use_env, add_dir_part, add_to_flag_only)) { + /* Openssl 1.0.x and lower */ + return 1; + } else if (CHECK_LIB("libcrypto.lib", target, path_to_check) && + CHECK_LIB("libssl.lib", target, path_to_check) && + CHECK_LIB("crypt32.lib", target, path_to_check, common_name) && + CHECK_HEADER_ADD_INCLUDE("openssl/ssl..h", cflags_var, path_to_check, use_env, add_dir_part, add_to_flag_only)) { + /* Openssl 1.1.x */ + return 2; + } + + return ret; + } +

« previous php.cvs (#96620) next »