summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-03-26 18:00:00 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-03-26 18:30:00 -0400
commitef7f17be8085488ba965286fb97927a7ce3600e7 (patch)
tree48caef5aaf331f1035c02489a78feab2ccaef789 /src/mongo/crypto
parent66c14dd70dd4427fef0d424b9675570614e13ca7 (diff)
downloadmongo-ef7f17be8085488ba965286fb97927a7ce3600e7.tar.gz
SERVER-9563 Add support for config.h header
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/crypto_openssl.cpp8
-rw-r--r--src/mongo/crypto/crypto_tom.cpp8
2 files changed, 10 insertions, 6 deletions
diff --git a/src/mongo/crypto/crypto_openssl.cpp b/src/mongo/crypto/crypto_openssl.cpp
index 576adf9d54e..3d22ad406a6 100644
--- a/src/mongo/crypto/crypto_openssl.cpp
+++ b/src/mongo/crypto/crypto_openssl.cpp
@@ -26,12 +26,14 @@
* it in the license file.
*/
-#ifndef MONGO_SSL
-#error This file should only be included in SSL-enabled builds
-#endif
+#include "mongo/config.h"
#include "mongo/platform/basic.h"
+#ifndef MONGO_CONFIG_SSL
+#error This file should only be included in SSL-enabled builds
+#endif
+
#include <openssl/sha.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
diff --git a/src/mongo/crypto/crypto_tom.cpp b/src/mongo/crypto/crypto_tom.cpp
index 9051d647f2c..85cc8387bb3 100644
--- a/src/mongo/crypto/crypto_tom.cpp
+++ b/src/mongo/crypto/crypto_tom.cpp
@@ -26,12 +26,14 @@
* it in the license file.
*/
-#ifdef MONGO_SSL
-#error This file should not be included if compiling with SSL support
-#endif
+#include "mongo/config.h"
#include "mongo/platform/basic.h"
+#ifdef MONGO_CONFIG_SSL
+#error This file should not be included if compiling with SSL support
+#endif
+
#include "mongo/crypto/tom/tomcrypt.h"
namespace mongo {