From d13e7621d31308cf4d0f744493469b31a786b3d7 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 14 Dec 2018 15:56:44 -0500 Subject: [PATCH 1/3] Allow Certainty v2+ https://github.com/paragonie/certainty/releases/tag/v2.0.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 53d41ea..e817457 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "require": { "php": ">=5.6", "guzzlehttp/guzzle": "^6.3", - "paragonie/certainty": "^1", + "paragonie/certainty": "^1|^2", "divineomega/do-file-cache-psr-6": "^2.0" } } From 4223882c6c8f811669bf8b3ddea8b09c27bcff51 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 14 Dec 2018 16:01:11 -0500 Subject: [PATCH 2/3] Update PasswordExposedChecker.php --- src/PasswordExposedChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PasswordExposedChecker.php b/src/PasswordExposedChecker.php index 66b59c8..5749493 100644 --- a/src/PasswordExposedChecker.php +++ b/src/PasswordExposedChecker.php @@ -64,7 +64,7 @@ private function getBundleFromCertainty() // If the platform would run verification checks slowly, use the // latest bundle from the Certainty package and disable verification. - return (new Fetch())->getLatestBundle(false, false); + return (new Fetch($ourCertaintyDataDir))->getLatestBundle(false, false); } else { // If the platform can run verification checks well enough, get From 558b75a34472384ddda8fbc9db5ba6ceb3e7acac Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 14 Dec 2018 16:04:23 -0500 Subject: [PATCH 3/3] Update PasswordExposedChecker.php --- src/PasswordExposedChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PasswordExposedChecker.php b/src/PasswordExposedChecker.php index 5749493..bfc0932 100644 --- a/src/PasswordExposedChecker.php +++ b/src/PasswordExposedChecker.php @@ -58,7 +58,7 @@ private function getBundleFromCertainty() // If we can't write to the our Certainty data directory, just // use the latest bundle from the Certainty package. - return (new Fetch())->getLatestBundle(); + return (new Fetch($ourCertaintyDataDir))->getLatestBundle(); } else { if (PHP_INT_SIZE === 4 && !extension_loaded('sodium')) {