diff options
author | Ben Caimano <ben.caimano@10gen.com> | 2021-01-25 21:28:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-03 22:44:39 +0000 |
commit | 8efbaad2fd3b50352c9a0c4298137b4b4cabbae8 (patch) | |
tree | 0bda8356ef65ffc145aec91ded6c4e60ec56e2a1 /src/mongo/db/commands/authentication_commands.h | |
parent | 7b9b44aa12252dea6ae92dc2aaaf60f98f1873cf (diff) | |
download | mongo-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.h | 4 |
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); |