com php-src: Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this
function.: ext/openssl/tests/openssl_spki_verify.phpt

From: Date: Mon, 16 Jun 2014 07:42:55 +0000
Subject: com php-src: Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this
function.: ext/openssl/tests/openssl_spki_verify.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78906@lists.php.net to get a copy of this message
Commit: fc36277eb6aeb7906207139c03ff4cf8d4cab872 Author: Remi Collet <remi@php.net> Mon, 16 Jun 2014 09:42:55 +0200 Parents: 7cef3a57ad7fd64e5789648ed476666f1cbc598c Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fc36277eb6aeb7906207139c03ff4cf8d4cab872 Log: Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this function. Changed paths: M ext/openssl/tests/openssl_spki_verify.phpt Diff: diff --git a/ext/openssl/tests/openssl_spki_verify.phpt b/ext/openssl/tests/openssl_spki_verify.phpt index 1ee573f..52dc8e2 100644 --- a/ext/openssl/tests/openssl_spki_verify.phpt +++ b/ext/openssl/tests/openssl_spki_verify.phpt @@ -17,9 +17,7 @@ $ksize = array('1024'=>1024, '4096'=>4096); /* array of available hashings to test */ -$algo = array('md4'=>OPENSSL_ALGO_MD4, - 'md5'=>OPENSSL_ALGO_MD5, - 'sha1'=>OPENSSL_ALGO_SHA1, +$algo = array('sha1'=>OPENSSL_ALGO_SHA1, 'sha224'=>OPENSSL_ALGO_SHA224, 'sha256'=>OPENSSL_ALGO_SHA256, 'sha384'=>OPENSSL_ALGO_SHA384, @@ -90,16 +88,4 @@ bool(false) bool(true) bool(false) bool(true) -bool(false) -bool(true) -bool(false) -bool(true) -bool(false) -bool(true) -bool(false) -bool(true) -bool(false) -bool(true) -bool(false) -bool(true) bool(false) \ No newline at end of file

« previous php.cvs (#78906) next »