summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.h
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2021-01-25 21:28:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-03 22:44:39 +0000
commit8efbaad2fd3b50352c9a0c4298137b4b4cabbae8 (patch)
tree0bda8356ef65ffc145aec91ded6c4e60ec56e2a1 /src/mongo/db/commands/authentication_commands.h
parent7b9b44aa12252dea6ae92dc2aaaf60f98f1873cf (diff)
downloadmongo-8efbaad2fd3b50352c9a0c4298137b4b4cabbae8.tar.gz
SERVER-54215 Rewire sasl/authenticate library dependencies
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.h')
-rw-r--r--src/mongo/db/commands/authentication_commands.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/authentication_commands.h b/src/mongo/db/commands/authentication_commands.h
index c211b799ef2..2e82168e050 100644
--- a/src/mongo/db/commands/authentication_commands.h
+++ b/src/mongo/db/commands/authentication_commands.h
@@ -32,13 +32,15 @@
#include "mongo/base/string_data.h"
#include "mongo/bson/bsonobj.h"
#include "mongo/bson/bsonobjbuilder.h"
+#include "mongo/db/service_context.h"
namespace mongo {
class OperationContext;
constexpr StringData kX509AuthMechanism = "MONGODB-X509"_sd;
-void disableAuthMechanism(StringData authMechanism);
+void disableX509Auth(ServiceContext* svcCtx);
+bool isX509AuthDisabled(ServiceContext* svcCtx);
void doSpeculativeAuthenticate(OperationContext* opCtx, BSONObj isMaster, BSONObjBuilder* result);