summaryrefslogtreecommitdiff
path: root/src/mongo/client/sasl_client_authenticate.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2015-07-29 15:43:51 -0400
committersamantharitter <samantha.ritter@10gen.com>2015-08-10 13:30:28 -0400
commiteecbe12db69e2b1a5bf83c8374200331a7ba5225 (patch)
treec52f4d6ba754050e8df869a6da32bede10f1176c /src/mongo/client/sasl_client_authenticate.cpp
parent5e384621d664132346df3044bb5007597faa123c (diff)
downloadmongo-eecbe12db69e2b1a5bf83c8374200331a7ba5225.tar.gz
SERVER-19155 Refactor auth methods for asynchronous handlers
Diffstat (limited to 'src/mongo/client/sasl_client_authenticate.cpp')
-rw-r--r--src/mongo/client/sasl_client_authenticate.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/client/sasl_client_authenticate.cpp b/src/mongo/client/sasl_client_authenticate.cpp
index 4222cc9a0f6..ecb7dfd7d1e 100644
--- a/src/mongo/client/sasl_client_authenticate.cpp
+++ b/src/mongo/client/sasl_client_authenticate.cpp
@@ -38,9 +38,10 @@ namespace mongo {
using namespace mongoutils;
-Status (*saslClientAuthenticate)(RunCommandHook runCommand,
- StringData hostname,
- const BSONObj& saslParameters) = NULL;
+void (*saslClientAuthenticate)(auth::RunCommandHook runCommand,
+ StringData hostname,
+ const BSONObj& saslParameters,
+ auth::AuthCompletionHandler handler) = nullptr;
const char* const saslStartCommandName = "saslStart";
const char* const saslContinueCommandName = "saslContinue";