From 205bfc4e1fc8993e050174a3fca589a648fb947b Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 9 Nov 2008 23:13:51 +0000 Subject: Modify Lion lookup to use arg_count_between --- src/libstate/engine/def_engine/lookup_cipher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libstate/engine/def_engine/lookup_cipher.cpp') diff --git a/src/libstate/engine/def_engine/lookup_cipher.cpp b/src/libstate/engine/def_engine/lookup_cipher.cpp index 668ce6c5d..bba8a6c3c 100644 --- a/src/libstate/engine/def_engine/lookup_cipher.cpp +++ b/src/libstate/engine/def_engine/lookup_cipher.cpp @@ -266,8 +266,7 @@ Default_Engine::find_block_cipher(const std::string& algo_spec) const #endif #if defined(BOTAN_HAS_LION) - if(request.algo_name() == "Lion" && - (request.arg_count() == 2 || request.arg_count() == 3)) + if(request.algo_name() == "Lion" && request.arg_count_between(2, 3)) { const u32bit block_size = request.argument_as_u32bit(2, 1024); -- cgit v1.2.3