summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/crypt_checksalt.phpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/crypt_checksalt.phpt b/tests/crypt_checksalt.phpt
index 4fbd8bf..b9a6462 100644
--- a/tests/crypt_checksalt.phpt
+++ b/tests/crypt_checksalt.phpt
@@ -2,7 +2,8 @@
Test crypt_checksalt
--FILE--
<?php
-var_dump(crypt_checksalt(crypt_gensalt(XPASS_CRYPT_STD_DES)) === CRYPT_SALT_METHOD_LEGACY);
+$r = crypt_checksalt(crypt_gensalt(XPASS_CRYPT_STD_DES));
+var_dump($r === CRYPT_SALT_METHOD_LEGACY || $r === CRYPT_SALT_OK);
var_dump(crypt_checksalt(crypt_gensalt()) === CRYPT_SALT_OK);
var_dump(crypt_checksalt("!not_a_valid_hash") === CRYPT_SALT_INVALID);
?>