aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/emsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-02-16 11:25:38 -0500
committerJack Lloyd <[email protected]>2019-02-16 11:25:38 -0500
commitb8199a7a4f8cff49a6c09ffc769494d48ae7f3fd (patch)
tree3fa352d2bdb512c1c64b7c4b194e23b2a8ba4603 /src/lib/pk_pad/emsa.cpp
parent60e00a8282cf509fb92005a8a5812ab90215899d (diff)
Fixes for minimized builds
Various configurations would fail build or test, fix that.
Diffstat (limited to 'src/lib/pk_pad/emsa.cpp')
-rw-r--r--src/lib/pk_pad/emsa.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/pk_pad/emsa.cpp b/src/lib/pk_pad/emsa.cpp
index 4b02776c2..a3e448686 100644
--- a/src/lib/pk_pad/emsa.cpp
+++ b/src/lib/pk_pad/emsa.cpp
@@ -196,7 +196,12 @@ std::string hash_for_emsa(const std::string& algo_spec)
return pos_hash;
}
- return "SHA-512"; // safe default if nothing we understand
+ // If we don't understand what this is return a safe default
+#if defined(BOTAN_HAS_SHA2_64)
+ return "SHA-512";
+#else
+ return "SHA-256";
+#endif
}
}