summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2022-05-05 21:27:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-06 00:08:12 +0000
commit330458e81f9baa3f936d639dc3edbe1a8c4c5a32 (patch)
tree276be3a42c0a9aaff01340157a6fddd80509d831 /src/mongo/crypto
parent6bf7fbe9eefff52f49b0f7898c86d7bec4d5985a (diff)
downloadmongo-330458e81f9baa3f936d639dc3edbe1a8c4c5a32.tar.gz
SERVER-66203 move MONGO_LOGV2_DEFAULT_COMPONENT defs below includes
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/mechanism_scram_test.cpp4
-rw-r--r--src/mongo/crypto/symmetric_crypto.cpp4
-rw-r--r--src/mongo/crypto/symmetric_crypto_openssl.cpp4
-rw-r--r--src/mongo/crypto/symmetric_crypto_test.cpp4
-rw-r--r--src/mongo/crypto/symmetric_crypto_tom.cpp4
-rw-r--r--src/mongo/crypto/symmetric_crypto_windows.cpp4
-rw-r--r--src/mongo/crypto/symmetric_key.cpp4
7 files changed, 21 insertions, 7 deletions
diff --git a/src/mongo/crypto/mechanism_scram_test.cpp b/src/mongo/crypto/mechanism_scram_test.cpp
index 6a401fb2942..6185844fe71 100644
--- a/src/mongo/crypto/mechanism_scram_test.cpp
+++ b/src/mongo/crypto/mechanism_scram_test.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
#include "mongo/platform/basic.h"
@@ -36,6 +35,9 @@
#include "mongo/crypto/sha256_block.h"
#include "mongo/unittest/unittest.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
+
+
namespace mongo {
namespace scram {
namespace {
diff --git a/src/mongo/crypto/symmetric_crypto.cpp b/src/mongo/crypto/symmetric_crypto.cpp
index 375a8264f59..7c7dde399ba 100644
--- a/src/mongo/crypto/symmetric_crypto.cpp
+++ b/src/mongo/crypto/symmetric_crypto.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
#include "mongo/platform/basic.h"
@@ -44,6 +43,9 @@
#include "mongo/util/net/ssl_manager.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
+
namespace mongo {
namespace crypto {
diff --git a/src/mongo/crypto/symmetric_crypto_openssl.cpp b/src/mongo/crypto/symmetric_crypto_openssl.cpp
index d0e843dd7d9..42efc9a1d8d 100644
--- a/src/mongo/crypto/symmetric_crypto_openssl.cpp
+++ b/src/mongo/crypto/symmetric_crypto_openssl.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -45,6 +44,9 @@
#include "mongo/util/net/ssl_manager.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
+
namespace mongo {
namespace crypto {
diff --git a/src/mongo/crypto/symmetric_crypto_test.cpp b/src/mongo/crypto/symmetric_crypto_test.cpp
index 44dc27a024d..8f7acbd03dc 100644
--- a/src/mongo/crypto/symmetric_crypto_test.cpp
+++ b/src/mongo/crypto/symmetric_crypto_test.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
#include "mongo/platform/basic.h"
@@ -744,5 +743,8 @@ TEST_F(AESTestVectors, CTRTestCase1234) {
// we will have them in a separate file so that they do not overtake the code space
#include "symmetric_crypto_tests.gen"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
+
+
} // namespace crypto
} // namespace mongo
diff --git a/src/mongo/crypto/symmetric_crypto_tom.cpp b/src/mongo/crypto/symmetric_crypto_tom.cpp
index 174bcb8e0b7..2f659f817ba 100644
--- a/src/mongo/crypto/symmetric_crypto_tom.cpp
+++ b/src/mongo/crypto/symmetric_crypto_tom.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -53,6 +52,9 @@
#include <tomcrypt.h>
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
+
#ifdef MONGO_CONFIG_SSL
#error This file should not be included if compiling with SSL support
#endif
diff --git a/src/mongo/crypto/symmetric_crypto_windows.cpp b/src/mongo/crypto/symmetric_crypto_windows.cpp
index 10ea5ed3c9c..0f0b5a011fb 100644
--- a/src/mongo/crypto/symmetric_crypto_windows.cpp
+++ b/src/mongo/crypto/symmetric_crypto_windows.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -45,6 +44,9 @@
#include "mongo/util/errno_util.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
+
namespace mongo {
namespace crypto {
diff --git a/src/mongo/crypto/symmetric_key.cpp b/src/mongo/crypto/symmetric_key.cpp
index 0e5ef2f1ff0..66e084e3a74 100644
--- a/src/mongo/crypto/symmetric_key.cpp
+++ b/src/mongo/crypto/symmetric_key.cpp
@@ -27,7 +27,6 @@
* it in the license file.
*/
-#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
#include "mongo/platform/basic.h"
@@ -40,6 +39,9 @@
#include "mongo/util/secure_zero_memory.h"
#include "mongo/util/str.h"
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kStorage
+
+
namespace mongo {
std::string SymmetricKeyId::_initStrRep() const {