summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/sasl_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/auth/sasl_options.h')
-rw-r--r--src/mongo/db/auth/sasl_options.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/mongo/db/auth/sasl_options.h b/src/mongo/db/auth/sasl_options.h
index cc649adeeba..f9a4bb15efd 100644
--- a/src/mongo/db/auth/sasl_options.h
+++ b/src/mongo/db/auth/sasl_options.h
@@ -36,27 +36,26 @@
namespace mongo {
namespace optionenvironment {
- class OptionSection;
- class Environment;
-} // namespace optionenvironment
+class OptionSection;
+class Environment;
+} // namespace optionenvironment
- namespace moe = optionenvironment;
+namespace moe = optionenvironment;
- struct SASLGlobalParams {
+struct SASLGlobalParams {
+ std::vector<std::string> authenticationMechanisms;
+ std::string hostName;
+ std::string serviceName;
+ std::string authdPath;
+ int scramIterationCount;
- std::vector<std::string> authenticationMechanisms;
- std::string hostName;
- std::string serviceName;
- std::string authdPath;
- int scramIterationCount;
+ SASLGlobalParams();
+};
- SASLGlobalParams();
- };
+extern SASLGlobalParams saslGlobalParams;
- extern SASLGlobalParams saslGlobalParams;
+Status addSASLOptions(moe::OptionSection* options);
- Status addSASLOptions(moe::OptionSection* options);
+Status storeSASLOptions(const moe::Environment& params);
- Status storeSASLOptions(const moe::Environment& params);
-
-} // namespace mongo
+} // namespace mongo