From 4d07d6bbb74e7ebe1f95cf2b89ae99aa35a9eeb2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 13 Sep 2024 11:47:54 +0200 Subject: rename constant from XPASS_CRYPT_ to CRYPT_PREFIX_ --- tests/crypt_checksalt.phpt | 2 +- tests/crypt_gensalt.phpt | 18 +++++++++--------- tests/password_compat.phpt | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/crypt_checksalt.phpt b/tests/crypt_checksalt.phpt index f34f585..0a0f6ee 100644 --- a/tests/crypt_checksalt.phpt +++ b/tests/crypt_checksalt.phpt @@ -3,7 +3,7 @@ Test crypt_checksalt --FILE-- --EXPECTF-- diff --git a/tests/password_compat.phpt b/tests/password_compat.phpt index 3dd6ad2..2571b02 100644 --- a/tests/password_compat.phpt +++ b/tests/password_compat.phpt @@ -9,7 +9,7 @@ $h = password_hash($secret, PASSWORD_BCRYPT); var_dump($h, password_verify($secret, $h), $h===crypt($secret, $h)); /* generate with crypt, check with both */ -$h = crypt($secret, crypt_gensalt(XPASS_CRYPT_BLOWFISH)); +$h = crypt($secret, crypt_gensalt(CRYPT_PREFIX_BLOWFISH)); var_dump($h, password_verify($secret, $h), $h===crypt($secret, $h)); ?> --EXPECTF-- -- cgit