From 5cc5e1bd3fac87186f511a48cee9cda86e4607ca Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Thu, 21 Sep 2017 13:49:14 -0400 Subject: Clean up header includes Avoid including build.h or assert.h directly, instead always take them though types.h Avoid math.h in favor of cmath --- src/lib/prov/pkcs11/p11_ecc_key.h | 1 - src/lib/prov/pkcs11/p11_ecdh.h | 4 ++-- src/lib/prov/pkcs11/p11_ecdsa.h | 3 ++- src/lib/prov/pkcs11/p11_rsa.h | 2 -- src/lib/prov/pkcs11/p11_session.h | 1 - src/lib/prov/pkcs11/p11_slot.h | 1 - src/lib/prov/pkcs11/p11_x509.h | 6 ++---- 7 files changed, 6 insertions(+), 12 deletions(-) (limited to 'src/lib/prov/pkcs11') diff --git a/src/lib/prov/pkcs11/p11_ecc_key.h b/src/lib/prov/pkcs11/p11_ecc_key.h index 0b4d86243..2ab92790d 100644 --- a/src/lib/prov/pkcs11/p11_ecc_key.h +++ b/src/lib/prov/pkcs11/p11_ecc_key.h @@ -9,7 +9,6 @@ #ifndef BOTAN_P11_ECC_H_ #define BOTAN_P11_ECC_H_ -#include #include #if defined(BOTAN_HAS_ECC_PUBLIC_KEY_CRYPTO) diff --git a/src/lib/prov/pkcs11/p11_ecdh.h b/src/lib/prov/pkcs11/p11_ecdh.h index 6ad9d8889..d95966a97 100644 --- a/src/lib/prov/pkcs11/p11_ecdh.h +++ b/src/lib/prov/pkcs11/p11_ecdh.h @@ -9,10 +9,10 @@ #ifndef BOTAN_P11_ECDH_H_ #define BOTAN_P11_ECDH_H_ -#include +#include + #if defined(BOTAN_HAS_ECDH) -#include #include #include diff --git a/src/lib/prov/pkcs11/p11_ecdsa.h b/src/lib/prov/pkcs11/p11_ecdsa.h index 829eaebe7..ae1a9c0bc 100644 --- a/src/lib/prov/pkcs11/p11_ecdsa.h +++ b/src/lib/prov/pkcs11/p11_ecdsa.h @@ -9,7 +9,8 @@ #ifndef BOTAN_P11_ECDSA_H_ #define BOTAN_P11_ECDSA_H_ -#include +#include + #if defined(BOTAN_HAS_ECDSA) #include diff --git a/src/lib/prov/pkcs11/p11_rsa.h b/src/lib/prov/pkcs11/p11_rsa.h index b5d601365..ba35db240 100644 --- a/src/lib/prov/pkcs11/p11_rsa.h +++ b/src/lib/prov/pkcs11/p11_rsa.h @@ -9,8 +9,6 @@ #ifndef BOTAN_P11_RSA_H_ #define BOTAN_P11_RSA_H_ -#include -#include #include #include diff --git a/src/lib/prov/pkcs11/p11_session.h b/src/lib/prov/pkcs11/p11_session.h index eab686ed8..8b32063e3 100644 --- a/src/lib/prov/pkcs11/p11_session.h +++ b/src/lib/prov/pkcs11/p11_session.h @@ -9,7 +9,6 @@ #ifndef BOTAN_P11_SESSION_H_ #define BOTAN_P11_SESSION_H_ -#include #include #include diff --git a/src/lib/prov/pkcs11/p11_slot.h b/src/lib/prov/pkcs11/p11_slot.h index 1787aab0d..63da32a0e 100644 --- a/src/lib/prov/pkcs11/p11_slot.h +++ b/src/lib/prov/pkcs11/p11_slot.h @@ -13,7 +13,6 @@ #include #include -#include #include namespace Botan { diff --git a/src/lib/prov/pkcs11/p11_x509.h b/src/lib/prov/pkcs11/p11_x509.h index 9066e16c8..ed084e9c1 100644 --- a/src/lib/prov/pkcs11/p11_x509.h +++ b/src/lib/prov/pkcs11/p11_x509.h @@ -9,13 +9,11 @@ #ifndef BOTAN_P11_X509_H_ #define BOTAN_P11_X509_H_ -#include -#if defined(BOTAN_HAS_X509_CERTIFICATES) - #include -#include +#if defined(BOTAN_HAS_X509_CERTIFICATES) +#include #include namespace Botan { -- cgit v1.2.3