aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils')
-rw-r--r--src/lib/utils/exceptn.cpp3
-rw-r--r--src/lib/utils/exceptn.h9
2 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/utils/exceptn.cpp b/src/lib/utils/exceptn.cpp
index caae15a33..240742602 100644
--- a/src/lib/utils/exceptn.cpp
+++ b/src/lib/utils/exceptn.cpp
@@ -44,6 +44,9 @@ Invalid_IV_Length::Invalid_IV_Length(const std::string& mode, size_t bad_len) :
" is invalid for " + mode)
{}
+Policy_Violation::Policy_Violation(const std::string& err) :
+ Invalid_State("Policy violation: " + err) {}
+
PRNG_Unseeded::PRNG_Unseeded(const std::string& algo) :
Invalid_State("PRNG not seeded: " + algo)
{}
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h
index 4349290e9..1ed41aeb3 100644
--- a/src/lib/utils/exceptn.h
+++ b/src/lib/utils/exceptn.h
@@ -114,11 +114,10 @@ class BOTAN_PUBLIC_API(2,0) PRNG_Unseeded final : public Invalid_State
/**
* Policy_Violation Exception
*/
-class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
+class BOTAN_PUBLIC_API(2,0) Policy_Violation final : public Invalid_State
{
public:
- explicit Policy_Violation(const std::string& err) :
- Invalid_State("Policy violation: " + err) {}
+ explicit Policy_Violation(const std::string& err);
};
/**
@@ -133,7 +132,7 @@ class BOTAN_PUBLIC_API(2,0) Algorithm_Not_Found final : public Lookup_Error
/**
* No_Provider_Found Exception
*/
-class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) No_Provider_Found final : public Exception
+class BOTAN_PUBLIC_API(2,0) No_Provider_Found final : public Exception
{
public:
explicit No_Provider_Found(const std::string& name);
@@ -206,7 +205,7 @@ class BOTAN_PUBLIC_API(2,0) Stream_IO_Error final : public Exception
/**
* Self Test Failure Exception
*/
-class BOTAN_DEPRECATED("deprecated") BOTAN_PUBLIC_API(2,0) Self_Test_Failure final : public Internal_Error
+class BOTAN_PUBLIC_API(2,0) Self_Test_Failure final : public Internal_Error
{
public:
explicit Self_Test_Failure(const std::string& err);