diff options
author | Eric Milkie <milkie@10gen.com> | 2014-07-29 16:45:23 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2014-07-29 16:45:26 -0400 |
commit | 81676bfa36c68b1247f0e08b666e33c3e3875755 (patch) | |
tree | 42e3c5c5c4563c897a995e9283d31ff2c165f908 /SConstruct | |
parent | c7590ac4ec54f52af224248f83a4f722b0abf319 (diff) | |
download | mongo-81676bfa36c68b1247f0e08b666e33c3e3875755.tar.gz |
SERVER-9482 add flag to enable activation of FIPS mode (off by default)
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 1b1c80d628a..16e9edde0c8 100644 --- a/SConstruct +++ b/SConstruct @@ -225,6 +225,7 @@ add_option( "no-glibc-check" , "don't check for new versions of glibc" , 0 , Fal # experimental features add_option( "mm", "use main memory instead of memory mapped files" , 0 , True ) add_option( "ssl" , "Enable SSL" , 0 , True ) +add_option( "ssl-fips-capability", "Enable the ability to activate FIPS 140-2 mode", 0, True ); add_option( "rocksdb" , "Enable RocksDB" , 0 , False ) # library choices @@ -941,6 +942,8 @@ if has_option( "ssl" ): else: env.Append( LIBS=["ssl"] ) env.Append( LIBS=["crypto"] ) + if has_option("ssl-fips-capability"): + env.Append( CPPDEFINES=["MONGO_SSL_FIPS"] ) try: umask = os.umask(022) |