diff options
author | lloyd <[email protected]> | 2010-02-14 01:48:38 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-02-14 01:48:38 +0000 |
commit | 7c9cd7a78ee94eb89fe97144cb1caa45783767b3 (patch) | |
tree | 3e00db11e99d1e64ca6790ffbe1212d0f664ffd6 /checks/validate.cpp | |
parent | 93e93981dcedddb7c157018ced4fadda82ea3605 (diff) |
Fix passhash9 test for updated API and macro name
Diffstat (limited to 'checks/validate.cpp')
-rw-r--r-- | checks/validate.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/checks/validate.cpp b/checks/validate.cpp index bbb710b91..0df0aa478 100644 --- a/checks/validate.cpp +++ b/checks/validate.cpp @@ -19,8 +19,8 @@ #include <botan/selftest.h> #include <botan/libstate.h> -#if defined(BOTAN_HAS_PASSHASH) - #include <botan/passhash.h> +#if defined(BOTAN_HAS_PASSHASH9) + #include <botan/passhash9.h> #endif using namespace Botan; @@ -68,17 +68,17 @@ Botan::SecureVector<byte> decode_hex(const std::string&); bool test_passhash(RandomNumberGenerator& rng) { -#if defined(BOTAN_HAS_PASSHASH) +#if defined(BOTAN_HAS_PASSHASH9) const std::string input = "secret"; const std::string fixed_hash = "$9$AArBRAG0kcKp3XPDUgd32ONhutn9HMQKix7H"; - if(!password_hash_ok(input, fixed_hash)) + if(!check_passhash9(input, fixed_hash)) return false; - std::string gen_hash = password_hash(input, rng, 5); + std::string gen_hash = generate_passhash9(input, rng, 5); - if(!password_hash_ok(input, gen_hash)) + if(!check_passhash9(input, gen_hash)) return false; #endif |