diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-10-30 13:44:14 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-10-31 09:41:41 -0400 |
commit | d48a2ccb657462603925f35e4f8fa58c6ddfd72b (patch) | |
tree | b07d5ad0c96acf72a7874d11514e11362d58b68c /src/mongo/db/auth/SConscript | |
parent | 2be7f2677a40a863f336d2964f456c9d87ddc838 (diff) | |
download | mongo-d48a2ccb657462603925f35e4f8fa58c6ddfd72b.tar.gz |
SERVER-37815 Support more than one key when parsing keyFile contents
Diffstat (limited to 'src/mongo/db/auth/SConscript')
-rw-r--r-- | src/mongo/db/auth/SConscript | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/mongo/db/auth/SConscript b/src/mongo/db/auth/SConscript index 85daa0221ae..48111b6be5e 100644 --- a/src/mongo/db/auth/SConscript +++ b/src/mongo/db/auth/SConscript @@ -234,7 +234,6 @@ env.Library( 'auth_impl_internal', 'authorization_manager_global', 'saslauth', - 'security_file', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/client/sasl_client', @@ -245,7 +244,9 @@ env.Library( ], ) -env.Library( +yamlEnv = env.Clone() +yamlEnv.InjectThirdPartyIncludePaths(libraries=['yaml']) +yamlEnv.Library( target='security_file', source=[ 'security_file.cpp', @@ -253,6 +254,19 @@ env.Library( LIBDEPS=[ '$BUILD_DIR/mongo/base', ], + LIBDEPS_PRIVATE=[ + '$BUILD_DIR/third_party/shim_yaml', + ], +) + +env.CppUnitTest( + target='security_file_test', + source=[ + 'security_file_test.cpp', + ], + LIBDEPS=[ + 'security_file', + ], ) env.Library( |