diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /src/mongo/util/net/ssl_parameters_auth.cpp | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'src/mongo/util/net/ssl_parameters_auth.cpp')
-rw-r--r-- | src/mongo/util/net/ssl_parameters_auth.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mongo/util/net/ssl_parameters_auth.cpp b/src/mongo/util/net/ssl_parameters_auth.cpp index fd821f4e52d..612c2bc70cc 100644 --- a/src/mongo/util/net/ssl_parameters_auth.cpp +++ b/src/mongo/util/net/ssl_parameters_auth.cpp @@ -67,9 +67,9 @@ StatusWith<ServerGlobalParams::ClusterAuthModes> clusterAuthModeParse(StringData } else if (strMode == "x509") { return ServerGlobalParams::ClusterAuthMode_x509; } else { - return Status( - ErrorCodes::BadValue, - str::stream() << "Invalid clusterAuthMode '" << strMode + return Status(ErrorCodes::BadValue, + str::stream() + << "Invalid clusterAuthMode '" << strMode << "', expected one of: 'keyFile', 'sendKeyFile', 'sendX509', or 'x509'"); } } @@ -99,18 +99,16 @@ Status ClusterAuthModeServerParameter::setFromString(const std::string& strMode) "connections"}; } serverGlobalParams.clusterAuthMode.store(mode); - auth::setInternalUserAuthParams( - BSON(saslCommandMechanismFieldName << "MONGODB-X509" << saslCommandUserDBFieldName - << "$external")); + auth::setInternalUserAuthParams(BSON(saslCommandMechanismFieldName + << "MONGODB-X509" << saslCommandUserDBFieldName + << "$external")); } else if ((mode == ServerGlobalParams::ClusterAuthMode_x509) && (oldMode == ServerGlobalParams::ClusterAuthMode_sendX509)) { serverGlobalParams.clusterAuthMode.store(mode); } else { return {ErrorCodes::BadValue, str::stream() << "Illegal state transition for clusterAuthMode, change from " - << clusterAuthModeFormat() - << " to " - << strMode}; + << clusterAuthModeFormat() << " to " << strMode}; } return Status::OK(); |