diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2021-06-16 10:41:25 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-16 15:40:35 +0000 |
commit | c73b1c09eb5ce2053577abac0a4ba360e3845de8 (patch) | |
tree | 90ebcc920053920129cd0c2d4e60d0ca4146f3a2 /src/mongo/db/auth/security_key.h | |
parent | a616859a60e6cbb40ab0b7ddbeed06e726bd40bc (diff) | |
download | mongo-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.h | 4 |
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 |