Skip to content

Commit a058588

Browse files
jeroenajdavis
authored andcommitted
Windows: fix SSPI compiler warnings (CDRIVER-2427)
1 parent 3497a51 commit a058588

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mongoc/mongoc-cluster-sspi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ _mongoc_cluster_auth_node_sspi (mongoc_cluster_t *cluster,
140140
{
141141
mongoc_cmd_parts_t parts;
142142
mongoc_sspi_client_state_t *state;
143-
uint8_t buf[4096] = {0};
143+
SEC_CHAR buf[4096] = {0};
144144
bson_iter_t iter;
145145
uint32_t buflen;
146146
bson_t reply;
147-
char *tmpstr;
147+
const char *tmpstr;
148148
int conv_id;
149149
bson_t cmd;
150150
int res = MONGOC_SSPI_AUTH_GSS_CONTINUE;
@@ -178,7 +178,7 @@ _mongoc_cluster_auth_node_sspi (mongoc_cluster_t *cluster,
178178
res = _mongoc_sspi_auth_sspi_client_unwrap (state, buf);
179179
response = bson_strdup (state->response);
180180
_mongoc_sspi_auth_sspi_client_wrap (
181-
state, response, tmp_creds, tmp_creds_len, 0);
181+
state, response, (SEC_CHAR*) tmp_creds, tmp_creds_len, 0);
182182
bson_free (response);
183183
}
184184

src/mongoc/mongoc-sspi-private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef struct {
4747
ULONG flags;
4848
UCHAR haveCred;
4949
UCHAR haveCtx;
50-
INT qop;
50+
ULONG qop;
5151
} mongoc_sspi_client_state_t;
5252

5353
void

0 commit comments

Comments
 (0)