[TASK] Remove checks for CRYPT_MD5 and CRYPT_BLOWFISH availability 99/59399/3
authorStefanos Karasavvidis <sk@karasavvidis.gr>
Fri, 11 Jan 2019 09:09:41 +0000 (11:09 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 11 Jan 2019 11:29:23 +0000 (12:29 +0100)
According to crypt() documentation "As of PHP 5.3.0, PHP contains its
own implementation and will use that if the system lacks of support
for one or more of the algorithms.". So these checks are not
necessary anymore.

Resolves: #87396
Releases: master, 9.5
Change-Id: I6ddede477283a39349e4c4d8d5f464435c855b85
Reviewed-on: https://review.typo3.org/59399
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/BlowfishPasswordHashTest.php
typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/Md5PasswordHashTest.php

index 0e70278..5adcb61 100644 (file)
@@ -23,16 +23,6 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class BlowfishPasswordHashTest extends UnitTestCase
 {
-    /**
-     * Sets up the fixtures for this testcase.
-     */
-    protected function setUp()
-    {
-        if (!CRYPT_BLOWFISH) {
-            $this->markTestSkipped('Blowfish is not supported on your platform.');
-        }
-    }
-
     /**
      * @test
      */
index d31a602..0863e12 100644 (file)
@@ -23,16 +23,6 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
  */
 class Md5PasswordHashTest extends UnitTestCase
 {
-    /**
-     * Sets up the fixtures for this testcase.
-     */
-    protected function setUp()
-    {
-        if (!CRYPT_MD5) {
-            $this->markTestSkipped('Blowfish is not supported on your platform.');
-        }
-    }
-
     /**
      * @test
      */