diff options
author | Jack Lloyd <[email protected]> | 2017-10-19 16:18:14 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-19 16:18:14 -0400 |
commit | 53a7136759a38f5cd7b1dfcd79868ffe89d61c35 (patch) | |
tree | d729e21474c99f9e5364007733a0577f7e444ecf /src | |
parent | 843a982c3a019e18975aef0277af44a3731f8caa (diff) |
Undeprecate these exceptions
Cannot figure out how to get MSVC to shut up
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/exceptn.cpp | 3 | ||||
-rw-r--r-- | src/lib/utils/exceptn.h | 9 |
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); |