diff options
author | Isis Lovecruft <isis@torproject.org> | 2018-04-06 21:40:17 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2018-04-06 22:49:15 +0000 |
commit | 88190026b3286b32ac22c1bbd999b7f1de2aa79f (patch) | |
tree | 12edb665ef2ff55b1cac5cecfb45c0c32419e746 | |
parent | 64e6551b8bb934335251c6965355660ec26e712d (diff) | |
download | tor-88190026b3286b32ac22c1bbd999b7f1de2aa79f.tar.gz tor-88190026b3286b32ac22c1bbd999b7f1de2aa79f.zip |
crypto: Alphabetise some #includes in /src/common/crypto*.
* FIXES part of #24658: https://bugs.torproject.org/24658
-rw-r--r-- | src/common/crypto.c | 4 | ||||
-rw-r--r-- | src/common/crypto_curve25519.c | 2 | ||||
-rw-r--r-- | src/common/crypto_ed25519.c | 3 | ||||
-rw-r--r-- | src/common/crypto_format.c | 2 | ||||
-rw-r--r-- | src/common/crypto_pwbox.c | 4 | ||||
-rw-r--r-- | src/common/crypto_rsa.c | 6 | ||||
-rw-r--r-- | src/common/crypto_s2k.c | 6 | ||||
-rw-r--r-- | src/common/include.am | 6 |
8 files changed, 16 insertions, 17 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 9c40243f8c..ae7b519f9b 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -23,14 +23,14 @@ #endif /* defined(_WIN32) */ #define CRYPTO_PRIVATE -#include "crypto.h" #include "compat_openssl.h" +#include "crypto.h" #include "crypto_curve25519.h" +#include "crypto_digest.h" #include "crypto_ed25519.h" #include "crypto_format.h" #include "crypto_rand.h" #include "crypto_rsa.h" -#include "crypto_digest.h" #include "crypto_util.h" DISABLE_GCC_WARNING(redundant-decls) diff --git a/src/common/crypto_curve25519.c b/src/common/crypto_curve25519.c index 0719c2f852..becd706695 100644 --- a/src/common/crypto_curve25519.c +++ b/src/common/crypto_curve25519.c @@ -23,8 +23,8 @@ #include "container.h" #include "crypto.h" #include "crypto_curve25519.h" -#include "crypto_format.h" #include "crypto_digest.h" +#include "crypto_format.h" #include "crypto_rand.h" #include "crypto_util.h" #include "util.h" diff --git a/src/common/crypto_ed25519.c b/src/common/crypto_ed25519.c index baddb77ddc..25e0cd0341 100644 --- a/src/common/crypto_ed25519.c +++ b/src/common/crypto_ed25519.c @@ -22,9 +22,8 @@ #endif #include "crypto.h" - -#include "crypto_digest.h" #include "crypto_curve25519.h" +#include "crypto_digest.h" #include "crypto_ed25519.h" #include "crypto_format.h" #include "crypto_rand.h" diff --git a/src/common/crypto_format.c b/src/common/crypto_format.c index c0cade2f5a..a76203207a 100644 --- a/src/common/crypto_format.c +++ b/src/common/crypto_format.c @@ -17,9 +17,9 @@ #include "container.h" #include "crypto.h" #include "crypto_curve25519.h" +#include "crypto_digest.h" #include "crypto_ed25519.h" #include "crypto_format.h" -#include "crypto_digest.h" #include "crypto_util.h" #include "util.h" #include "util_format.h" diff --git a/src/common/crypto_pwbox.c b/src/common/crypto_pwbox.c index e49ca226ef..c2bd1d26cb 100644 --- a/src/common/crypto_pwbox.c +++ b/src/common/crypto_pwbox.c @@ -9,10 +9,10 @@ */ #include "crypto.h" -#include "crypto_s2k.h" -#include "crypto_pwbox.h" #include "crypto_digest.h" +#include "crypto_pwbox.h" #include "crypto_rand.h" +#include "crypto_s2k.h" #include "crypto_util.h" #include "di_ops.h" #include "util.h" diff --git a/src/common/crypto_rsa.c b/src/common/crypto_rsa.c index 0e006b0eb3..0a88b0e772 100644 --- a/src/common/crypto_rsa.c +++ b/src/common/crypto_rsa.c @@ -9,13 +9,13 @@ * \brief Block of functions related with RSA utilities and operations. **/ -#include "crypto_rsa.h" #include "crypto.h" -#include "compat_openssl.h" #include "crypto_curve25519.h" -#include "crypto_format.h" #include "crypto_digest.h" +#include "crypto_format.h" +#include "compat_openssl.h" #include "crypto_rand.h" +#include "crypto_rsa.h" #include "crypto_util.h" DISABLE_GCC_WARNING(redundant-decls) diff --git a/src/common/crypto_s2k.c b/src/common/crypto_s2k.c index 7d7f475b69..8543760ec5 100644 --- a/src/common/crypto_s2k.c +++ b/src/common/crypto_s2k.c @@ -12,13 +12,13 @@ #define CRYPTO_S2K_PRIVATE -#include "crypto.h" -#include "util.h" #include "compat.h" -#include "crypto_s2k.h" +#include "crypto.h" #include "crypto_digest.h" #include "crypto_rand.h" +#include "crypto_s2k.h" #include "crypto_util.h" +#include "util.h" #include <openssl/evp.h> diff --git a/src/common/include.am b/src/common/include.am index f0cbd0e1d3..81ae8fc27e 100644 --- a/src/common/include.am +++ b/src/common/include.am @@ -115,12 +115,12 @@ LIBOR_CRYPTO_A_SRC = \ src/common/compress_zstd.c \ src/common/crypto.c \ src/common/crypto_digest.c \ - src/common/crypto_rsa.c \ + src/common/crypto_format.c \ src/common/crypto_openssl_mgt.c \ src/common/crypto_pwbox.c \ src/common/crypto_rand.c \ + src/common/crypto_rsa.c \ src/common/crypto_s2k.c \ - src/common/crypto_format.c \ src/common/crypto_util.c \ src/common/tortls.c \ src/common/crypto_curve25519.c \ @@ -173,9 +173,9 @@ COMMONHEADERS = \ src/common/crypto_ed25519.h \ src/common/crypto_format.h \ src/common/crypto_openssl_mgt.h \ - src/common/crypto_rsa.h \ src/common/crypto_pwbox.h \ src/common/crypto_rand.h \ + src/common/crypto_rsa.h \ src/common/crypto_s2k.h \ src/common/crypto_util.h \ src/common/di_ops.h \ |