diff options
author | Eric Milkie <milkie@10gen.com> | 2013-09-05 09:46:45 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2013-09-05 10:04:08 -0400 |
commit | 4b4fd431f5c28a4d138c113f9173abd5bb6526b3 (patch) | |
tree | f99801863cc12284b13f992579be991509de9630 /src/mongo/client/sasl_sspi.cpp | |
parent | 4d905c46a1cbc6f96bdd0522d0bd08f0c6c3f1c0 (diff) | |
download | mongo-4b4fd431f5c28a4d138c113f9173abd5bb6526b3.tar.gz |
SERVER-10156 SASL SSPI client plugin fixes
Diffstat (limited to 'src/mongo/client/sasl_sspi.cpp')
-rw-r--r-- | src/mongo/client/sasl_sspi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/client/sasl_sspi.cpp b/src/mongo/client/sasl_sspi.cpp index 9e0e522eee9..9aace66be6c 100644 --- a/src/mongo/client/sasl_sspi.cpp +++ b/src/mongo/client/sasl_sspi.cpp @@ -81,13 +81,13 @@ namespace { } std::string buffer(mongoutils::str::stream() << "SSPI: " << msg << ": " << err); - utils->seterror(utils->conn, 0, buffer.c_str()); + utils->seterror(utils->conn, 0, "%s", buffer.c_str()); LocalFree(err); } int sspiClientMechNew(void *glob_context, sasl_client_params_t *cparams, - void **conn_context) { + void **conn_context) throw() { // Prepare auth identity to pass to AcquireCredentialsHandle SEC_WINNT_AUTH_IDENTITY authIdentity; authIdentity.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE; @@ -352,7 +352,7 @@ namespace { sasl_interact_t **prompt_need, const char **clientout, unsigned *clientoutlen, - sasl_out_params_t *oparams) { + sasl_out_params_t *oparams) throw() { SspiConnContext* pcctx = static_cast<SspiConnContext*>(conn_context); *clientout = NULL; *clientoutlen = 0; |