aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-03 06:19:51 -0400
committerJack Lloyd <[email protected]>2017-09-03 06:19:51 -0400
commit31b0a9094a0a182d4a1fcbe1ec7c301b3950e941 (patch)
tree32ce8f9275afe6b960a39e220f0dfae4025bf251 /src/lib/pubkey
parent240e9ee5b6c15ce3f801afaa440f7bf422fba000 (diff)
Clean up use of <limits> header
Don't include it where it is not needed, included it where it is used.
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/dlies/dlies.cpp1
-rw-r--r--src/lib/pubkey/ecies/ecies.h1
-rw-r--r--src/lib/pubkey/xmss/xmss_address.h2
-rw-r--r--src/lib/pubkey/xmss/xmss_index_registry.cpp1
-rw-r--r--src/lib/pubkey/xmss/xmss_index_registry.h7
-rw-r--r--src/lib/pubkey/xmss/xmss_publickey.h1
-rw-r--r--src/lib/pubkey/xmss/xmss_tools.h6
7 files changed, 5 insertions, 14 deletions
diff --git a/src/lib/pubkey/dlies/dlies.cpp b/src/lib/pubkey/dlies/dlies.cpp
index ca91a0fd4..a4171a55f 100644
--- a/src/lib/pubkey/dlies/dlies.cpp
+++ b/src/lib/pubkey/dlies/dlies.cpp
@@ -8,6 +8,7 @@
#include <botan/dlies.h>
#include <botan/internal/ct_utils.h>
+#include <limits>
namespace Botan {
diff --git a/src/lib/pubkey/ecies/ecies.h b/src/lib/pubkey/ecies/ecies.h
index 0e348ca23..958ef1b9e 100644
--- a/src/lib/pubkey/ecies/ecies.h
+++ b/src/lib/pubkey/ecies/ecies.h
@@ -20,6 +20,7 @@
#include <memory>
#include <string>
#include <vector>
+#include <limits>
namespace Botan {
diff --git a/src/lib/pubkey/xmss/xmss_address.h b/src/lib/pubkey/xmss/xmss_address.h
index 0ae0092a9..2268084ea 100644
--- a/src/lib/pubkey/xmss/xmss_address.h
+++ b/src/lib/pubkey/xmss/xmss_address.h
@@ -8,8 +8,6 @@
#ifndef BOTAN_XMSS_ADDRESS_H__
#define BOTAN_XMSS_ADDRESS_H__
-#include <cstdint>
-#include <limits>
#include <botan/xmss_tools.h>
namespace Botan {
diff --git a/src/lib/pubkey/xmss/xmss_index_registry.cpp b/src/lib/pubkey/xmss/xmss_index_registry.cpp
index 73f962820..530d926c4 100644
--- a/src/lib/pubkey/xmss/xmss_index_registry.cpp
+++ b/src/lib/pubkey/xmss/xmss_index_registry.cpp
@@ -8,6 +8,7 @@
**/
#include <botan/xmss_index_registry.h>
+#include <limits>
namespace Botan {
diff --git a/src/lib/pubkey/xmss/xmss_index_registry.h b/src/lib/pubkey/xmss/xmss_index_registry.h
index 176eae7b7..4a00b4a90 100644
--- a/src/lib/pubkey/xmss/xmss_index_registry.h
+++ b/src/lib/pubkey/xmss/xmss_index_registry.h
@@ -8,14 +8,7 @@
#ifndef BOTAN_XMSS_INDEX_REGISTRY_H__
#define BOTAN_XMSS_INDEX_REGISTRY_H__
-#include <stdint.h>
-#include <cstddef>
-#include <limits>
-#include <memory>
-#include <string>
#include <botan/hash.h>
-#include <botan/secmem.h>
-#include <botan/types.h>
#include <botan/atomic.h>
#include <botan/mutex.h>
diff --git a/src/lib/pubkey/xmss/xmss_publickey.h b/src/lib/pubkey/xmss/xmss_publickey.h
index 39e20b4cf..99e5e0a7e 100644
--- a/src/lib/pubkey/xmss/xmss_publickey.h
+++ b/src/lib/pubkey/xmss/xmss_publickey.h
@@ -10,7 +10,6 @@
#include <cstddef>
#include <iterator>
-#include <limits>
#include <memory>
#include <string>
#include <botan/alg_id.h>
diff --git a/src/lib/pubkey/xmss/xmss_tools.h b/src/lib/pubkey/xmss/xmss_tools.h
index 109ab91bd..2fcb2f86d 100644
--- a/src/lib/pubkey/xmss/xmss_tools.h
+++ b/src/lib/pubkey/xmss/xmss_tools.h
@@ -8,12 +8,10 @@
#ifndef BOTAN_XMSS_TOOLS_H__
#define BOTAN_XMSS_TOOLS_H__
-#include <stdint.h>
-#include <iterator>
-#include <type_traits>
#include <botan/cpuid.h>
-#include <botan/types.h>
#include <botan/secmem.h>
+#include <iterator>
+#include <type_traits>
namespace Botan {