summaryrefslogtreecommitdiff
path: root/src/mongo/client/sasl_sspi.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2013-09-05 09:46:45 -0400
committerEric Milkie <milkie@10gen.com>2013-09-05 10:04:08 -0400
commit4b4fd431f5c28a4d138c113f9173abd5bb6526b3 (patch)
treef99801863cc12284b13f992579be991509de9630 /src/mongo/client/sasl_sspi.cpp
parent4d905c46a1cbc6f96bdd0522d0bd08f0c6c3f1c0 (diff)
downloadmongo-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.cpp6
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;