aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cli/tls_client.cpp2
-rw-r--r--src/lib/pubkey/ed25519/ed25519_fe.h4
-rw-r--r--src/tests/test_otp.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/cli/tls_client.cpp b/src/cli/tls_client.cpp
index aef8e2512..7834d9328 100644
--- a/src/cli/tls_client.cpp
+++ b/src/cli/tls_client.cpp
@@ -330,7 +330,7 @@ class TLS_Client final : public Command, public Botan::TLS::Callbacks
{
if(cert_chain.empty())
{
- throw std::invalid_argument("Certificate chain was empty");
+ throw Botan::Invalid_Argument("Certificate chain was empty");
}
Botan::Path_Validation_Restrictions restrictions(
diff --git a/src/lib/pubkey/ed25519/ed25519_fe.h b/src/lib/pubkey/ed25519/ed25519_fe.h
index 87ab9caf3..7e0b4e6ab 100644
--- a/src/lib/pubkey/ed25519/ed25519_fe.h
+++ b/src/lib/pubkey/ed25519/ed25519_fe.h
@@ -29,7 +29,7 @@ class FE_25519
FE_25519(int init = 0)
{
if(init != 0 && init != 1)
- { throw std::invalid_argument("Invalid FE_25519 initial value"); }
+ { throw Invalid_Argument("Invalid FE_25519 initial value"); }
memset(m_fe, 0, 10 * sizeof(int32_t));
m_fe[0] = init;
}
@@ -37,7 +37,7 @@ class FE_25519
FE_25519(std::initializer_list<int32_t> x)
{
if(x.size() != 10)
- { throw std::invalid_argument("Invalid FE_25519 initializer list"); }
+ { throw Invalid_Argument("Invalid FE_25519 initializer list"); }
memcpy(m_fe, x.begin(), 10 * sizeof(int32_t));
}
diff --git a/src/tests/test_otp.cpp b/src/tests/test_otp.cpp
index cc96eea0f..5c597e2a7 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 std::invalid_argument("Invalid TOTP timestamp string " + time_str);
+ throw Invalid_Argument("Invalid TOTP timestamp string " + time_str);
// YYYY-MM-DDTHH:MM:SS
// 0123456789012345678
const uint32_t year = Botan::to_u32bit(time_str.substr(0, 4));