summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-06-04 16:40:42 +0200
committerStefan Metzmacher <metze@samba.org>2012-06-05 17:33:49 +0200
commit7ef4ae42fee5c672afab5af801705fea9a575051 (patch)
tree358fd725360fb8862f3062a8b5f2bb42b3cce8ab /source3/libsmb
parent2b5d4d4267fe00578124c076cd1c7d0038765fa1 (diff)
downloadsamba-7ef4ae42fee5c672afab5af801705fea9a575051.tar.gz
samba-7ef4ae42fee5c672afab5af801705fea9a575051.tar.bz2
samba-7ef4ae42fee5c672afab5af801705fea9a575051.zip
s3:libsmb: change cli_sesssetup_blob_* to use uint8_t instead of char for inbuf
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 9ddfe9501c..df8c6fcd8d 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1159,7 +1159,7 @@ struct cli_sesssetup_blob_state {
struct iovec *recv_iov;
NTSTATUS status;
- char *inbuf;
+ uint8_t *inbuf;
DATA_BLOB ret_blob;
};
@@ -1321,7 +1321,7 @@ static void cli_sesssetup_blob_done(struct tevent_req *subreq)
goto next;
}
- state->inbuf = (char *)in;
+ state->inbuf = in;
inhdr = in + NBT_HDR_SIZE;
cli_state_set_uid(state->cli, SVAL(inhdr, HDR_UID));
cli->is_guestlogin = ((SVAL(vwv+2, 0) & 1) != 0);
@@ -1392,13 +1392,13 @@ next:
static NTSTATUS cli_sesssetup_blob_recv(struct tevent_req *req,
TALLOC_CTX *mem_ctx,
DATA_BLOB *pblob,
- char **pinbuf,
+ uint8_t **pinbuf,
struct iovec **precv_iov)
{
struct cli_sesssetup_blob_state *state = tevent_req_data(
req, struct cli_sesssetup_blob_state);
NTSTATUS status;
- char *inbuf;
+ uint8_t *inbuf;
struct iovec *recv_iov;
if (tevent_req_is_nterror(req, &status)) {
@@ -1505,7 +1505,7 @@ static void cli_session_setup_kerberos_done(struct tevent_req *subreq)
subreq, struct tevent_req);
struct cli_session_setup_kerberos_state *state = tevent_req_data(
req, struct cli_session_setup_kerberos_state);
- char *inbuf = NULL;
+ uint8_t *inbuf = NULL;
struct iovec *recv_iov = NULL;
NTSTATUS status;
@@ -1530,7 +1530,7 @@ static void cli_session_setup_kerberos_done(struct tevent_req *subreq)
} else {
if (smb1cli_conn_activate_signing(state->cli->conn, state->session_key_krb5,
data_blob_null)
- && !smb1cli_conn_check_signing(state->cli->conn, (uint8_t *)inbuf, 1)) {
+ && !smb1cli_conn_check_signing(state->cli->conn, inbuf, 1)) {
tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
return;
}
@@ -1687,7 +1687,7 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq)
struct cli_session_setup_ntlmssp_state *state = tevent_req_data(
req, struct cli_session_setup_ntlmssp_state);
DATA_BLOB blob_in, msg_in, blob_out;
- char *inbuf = NULL;
+ uint8_t *inbuf = NULL;
struct iovec *recv_iov = NULL;
bool parse_ret;
NTSTATUS status;
@@ -1738,7 +1738,7 @@ static void cli_session_setup_ntlmssp_done(struct tevent_req *subreq)
if (smb1cli_conn_activate_signing(
state->cli->conn, state->ntlmssp_state->session_key,
data_blob_null)
- && !smb1cli_conn_check_signing(state->cli->conn, (uint8_t *)inbuf, 1)) {
+ && !smb1cli_conn_check_signing(state->cli->conn, inbuf, 1)) {
tevent_req_nterror(req, NT_STATUS_ACCESS_DENIED);
return;
}