aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/get_pk_pad.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-09 16:52:51 +0000
committerlloyd <[email protected]>2014-02-09 16:52:51 +0000
commit4f3b0ce8fccd879791d5a701102ee0737f3509b1 (patch)
tree37ab6f550154de465d2677fdab1cc1d96904fa5c /src/lib/pk_pad/get_pk_pad.cpp
parent253aa701ffa654af3c880e1e1b4965fabf86be3b (diff)
More fixes for minified builds
Diffstat (limited to 'src/lib/pk_pad/get_pk_pad.cpp')
-rw-r--r--src/lib/pk_pad/get_pk_pad.cpp7
1 files changed, 5 insertions, 2 deletions
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)