summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/security_key.h
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2021-06-16 10:41:25 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-16 15:40:35 +0000
commitc73b1c09eb5ce2053577abac0a4ba360e3845de8 (patch)
tree90ebcc920053920129cd0c2d4e60d0ca4146f3a2 /src/mongo/db/auth/security_key.h
parenta616859a60e6cbb40ab0b7ddbeed06e726bd40bc (diff)
downloadmongo-c73b1c09eb5ce2053577abac0a4ba360e3845de8.tar.gz
SERVER-55792 Verify credentials when clusterAuthMode is set via setParameter
Diffstat (limited to 'src/mongo/db/auth/security_key.h')
-rw-r--r--src/mongo/db/auth/security_key.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/auth/security_key.h b/src/mongo/db/auth/security_key.h
index 02a87aa5b23..bf53276994f 100644
--- a/src/mongo/db/auth/security_key.h
+++ b/src/mongo/db/auth/security_key.h
@@ -31,6 +31,8 @@
#include <string>
+#include "mongo/db/auth/cluster_auth_mode.h"
+
namespace mongo {
template <class T>
class StatusWith;
@@ -42,6 +44,6 @@ class StatusWith;
* @param filename the file containing the key
* @return if the key was successfully stored
*/
-bool setUpSecurityKey(const std::string& filename);
+bool setUpSecurityKey(const std::string& filename, ClusterAuthMode mode);
} // namespace mongo