diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/oplock.c | 2 | ||||
-rw-r--r-- | source4/torture/rpc/echo.c | 4 | ||||
-rw-r--r-- | source4/torture/rpc/netlogon.c | 6 | ||||
-rw-r--r-- | source4/torture/rpc/samr.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c index 862e409fd4..28b7557f3e 100644 --- a/source4/torture/raw/oplock.c +++ b/source4/torture/raw/oplock.c @@ -38,7 +38,7 @@ static struct { int fnum; - unsigned char level; + uint8_t level; int count; } break_info; diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 37e57d0da7..625447705a 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -120,9 +120,9 @@ static BOOL test_sourcedata(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx) } for (i=0;i<len;i++) { - unsigned char *v = (unsigned char *)data_out; + uint8_t *v = (uint8_t *)data_out; if (v[i] != (i & 0xFF)) { - printf("bad data 0x%x at %d\n", (unsigned char)data_out[i], i); + printf("bad data 0x%x at %d\n", (uint8_t)data_out[i], i); return False; } } diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index 0fbd03fb83..916b18896b 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -688,11 +688,11 @@ static BOOL test_ntlm_in_both(struct samlogon_state *samlogon_state, char **erro SMBNTencrypt(samlogon_state->password, samlogon_state->chall.data, nt_response.data); - E_md4hash(samlogon_state->password, (unsigned char *)nt_hash); - SMBsesskeygen_ntv1((const unsigned char *)nt_hash, + E_md4hash(samlogon_state->password, (uint8_t *)nt_hash); + SMBsesskeygen_ntv1((const uint8_t *)nt_hash, session_key.data); - E_deshash(samlogon_state->password, (unsigned char *)lm_hash); + E_deshash(samlogon_state->password, (uint8_t *)lm_hash); nt_status = check_samlogon(samlogon_state, BREAK_NONE, diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index a7a6482da9..48ae84a9ea 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -452,7 +452,7 @@ static BOOL test_SetUserPassEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - generate_random_buffer((unsigned char *)confounder, 16, False); + generate_random_buffer((uint8_t *)confounder, 16, False); MD5Init(&ctx); MD5Update(&ctx, confounder, 16); @@ -506,7 +506,7 @@ static BOOL test_SetUserPass_25(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, return False; } - generate_random_buffer((unsigned char *)confounder, 16, False); + generate_random_buffer((uint8_t *)confounder, 16, False); MD5Init(&ctx); MD5Update(&ctx, confounder, 16); |