From 4f3b0ce8fccd879791d5a701102ee0737f3509b1 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 9 Feb 2014 16:52:51 +0000 Subject: More fixes for minified builds --- src/lib/pk_pad/get_pk_pad.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/lib/pk_pad/get_pk_pad.cpp') diff --git a/src/lib/pk_pad/get_pk_pad.cpp b/src/lib/pk_pad/get_pk_pad.cpp index 5b4052cde..cac24730d 100644 --- a/src/lib/pk_pad/get_pk_pad.cpp +++ b/src/lib/pk_pad/get_pk_pad.cpp @@ -58,14 +58,17 @@ EMSA* get_emsa(const std::string& algo_spec) return new EMSA_Raw; #endif -#if defined(BOTAN_HAS_EMSA1) if(request.algo_name() == "EMSA1" && request.arg_count() == 1) { +#if defined(BOTAN_HAS_EMSA_RAW) if(request.arg(0) == "Raw") return new EMSA_Raw; +#endif + +#if defined(BOTAN_HAS_EMSA1) return new EMSA1(af.make_hash_function(request.arg(0))); - } #endif + } #if defined(BOTAN_HAS_EMSA1_BSI) if(request.algo_name() == "EMSA1_BSI" && request.arg_count() == 1) -- cgit v1.2.3