aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-11-07 12:41:45 -0500
committerJack Lloyd <[email protected]>2018-11-07 12:41:45 -0500
commit5c5eea40fd8d9900c8de170505086dce9d0389c6 (patch)
tree796e177ee6d01b46cc3e0314f33450209cff78c8 /src
parent18b5b3b18ebab341383943fd36ab3c822ed3a8b0 (diff)
Compile fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/pubkey/ed25519/ed25519_fe.h1
-rw-r--r--src/tests/test_otp.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_fe.h b/src/lib/pubkey/ed25519/ed25519_fe.h
index 7e0b4e6ab..af92af46a 100644
--- a/src/lib/pubkey/ed25519/ed25519_fe.h
+++ b/src/lib/pubkey/ed25519/ed25519_fe.h
@@ -12,6 +12,7 @@
#define BOTAN_ED25519_FE_H_
#include <botan/mem_ops.h>
+#include <botan/exceptn.h>
namespace Botan {
diff --git a/src/tests/test_otp.cpp b/src/tests/test_otp.cpp
index 5c597e2a7..15cd2a9fb 100644
--- a/src/tests/test_otp.cpp
+++ b/src/tests/test_otp.cpp
@@ -122,7 +122,7 @@ class TOTP_KAT_Tests final : public Text_Based_Test
std::chrono::system_clock::time_point from_timestring(const std::string& time_str)
{
if(time_str.size() != 19)
- throw Invalid_Argument("Invalid TOTP timestamp string " + time_str);
+ throw Test_Error("Invalid TOTP timestamp string " + time_str);
// YYYY-MM-DDTHH:MM:SS
// 0123456789012345678
const uint32_t year = Botan::to_u32bit(time_str.substr(0, 4));