aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-06-07 09:39:46 -0400
committerJack Lloyd <[email protected]>2019-06-07 12:49:22 -0400
commitb5513cd0d95b0ed99c581900fea226771b74339c (patch)
tree8d7e4ac14e93a527bc654cd325188bc30d753d80 /src/lib/base
parent762a76edc0240d3028ed17b9fb6e394ab3eac6cf (diff)
Officially deprecate headers
Create BOTAN_DEPRECATED_HEADER so we can warn about this consistently. Shuffle around the filter headers so all of the concrete filters are defined in filters.h instead of being spread across many headers. Document which headers are deprecated as well as a list of headers which will be made internal-only in a future major release.
Diffstat (limited to 'src/lib/base')
-rw-r--r--src/lib/base/botan.h8
-rw-r--r--src/lib/base/init.h2
-rw-r--r--src/lib/base/lookup.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/base/botan.h b/src/lib/base/botan.h
index 26bfa75a7..a473e8fbf 100644
--- a/src/lib/base/botan.h
+++ b/src/lib/base/botan.h
@@ -16,12 +16,6 @@
* This header file will be removed in Botan 3.x
*/
-#if defined(__GNUC__)
- #warning "botan/botan.h is deprecated"
-#elif defined(_MSC_VER)
- #pragma message ("botan/botan.h is deprecated")
-#endif
-
#include <botan/lookup.h>
#include <botan/version.h>
#include <botan/parsing.h>
@@ -42,4 +36,6 @@
#include <botan/pkcs8.h>
#endif
+BOTAN_DEPRECATED_HEADER(botan.h)
+
#endif
diff --git a/src/lib/base/init.h b/src/lib/base/init.h
index ba014d8e1..668650846 100644
--- a/src/lib/base/init.h
+++ b/src/lib/base/init.h
@@ -13,6 +13,8 @@
namespace Botan {
+BOTAN_DEPRECATED_HEADER(init.h)
+
/*
* Previously botan had state whose lifetime had to be explicitly
* managed by the application. As of 1.11.14 this is no longer the
diff --git a/src/lib/base/lookup.h b/src/lib/base/lookup.h
index 1cfa7d3c9..4a14230db 100644
--- a/src/lib/base/lookup.h
+++ b/src/lib/base/lookup.h
@@ -32,6 +32,8 @@
namespace Botan {
+BOTAN_DEPRECATED_HEADER(lookup.h)
+
/*
* As of 1.11.26 this header is deprecated. Instead use the calls T::create and
* T::providers (as demonstrated in the implementation below).