diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-05-25 17:50:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:16 -0500 |
commit | fcd718c7d8a6850ae8719f23ed044b06b57501cd (patch) | |
tree | 78fe8265d44c4644b01963784a37f4505785fb97 /source4/torture/rpc | |
parent | f88bf54c7f6d1c2ef833047eb8327953c304b5ff (diff) | |
download | samba-fcd718c7d8a6850ae8719f23ed044b06b57501cd.tar.gz samba-fcd718c7d8a6850ae8719f23ed044b06b57501cd.tar.bz2 samba-fcd718c7d8a6850ae8719f23ed044b06b57501cd.zip |
r890: convert samba4 to use [u]int8_t instead of [u]int8
metze
(This used to be commit 2986c5f08c8f0c26a2ea7b6ce20aae025183109f)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/netlogon.c | 8 | ||||
-rw-r--r-- | source4/torture/rpc/samr.c | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index e3ff679d97..8fd4a0fd4c 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -241,7 +241,7 @@ static BOOL test_SetupCredentials(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct netr_ServerReqChallenge r; struct netr_ServerAuthenticate a; const char *plain_pass; - uint8 mach_pwd[16]; + uint8_t mach_pwd[16]; printf("Testing ServerReqChallenge\n"); @@ -295,7 +295,7 @@ static BOOL test_SetupCredentials2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct netr_ServerReqChallenge r; struct netr_ServerAuthenticate2 a; const char *plain_pass; - uint8 mach_pwd[16]; + uint8_t mach_pwd[16]; printf("Testing ServerReqChallenge\n"); @@ -374,8 +374,8 @@ static NTSTATUS check_samlogon(struct samlogon_state *samlogon_state, DATA_BLOB *chall, DATA_BLOB *lm_response, DATA_BLOB *nt_response, - uint8 lm_key[8], - uint8 user_session_key[16], + uint8_t lm_key[8], + uint8_t user_session_key[16], char **error_string) { NTSTATUS status; diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c index cce650983a..49faaa886c 100644 --- a/source4/torture/rpc/samr.c +++ b/source4/torture/rpc/samr.c @@ -232,7 +232,7 @@ static BOOL test_SetUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, s2.in.level = lvl1; \ u = *q.out.info; \ if (lvl1 == 21) { \ - uint8 *bitmap = u.info21.logon_hours.bitmap; \ + uint8_t *bitmap = u.info21.logon_hours.bitmap; \ ZERO_STRUCT(u.info21); \ if (fpval == SAMR_FIELD_LOGON_HOURS) { \ u.info21.logon_hours.units_per_week = 168; \ @@ -430,7 +430,7 @@ static BOOL test_SetUserPassEx(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, BOOL ret = True; DATA_BLOB session_key; DATA_BLOB confounded_session_key = data_blob_talloc(mem_ctx, NULL, 16); - uint8 confounder[16]; + uint8_t confounder[16]; char *newpass = samr_rand_pass(mem_ctx); struct MD5Context ctx; @@ -481,7 +481,7 @@ static BOOL test_SetUserPass_25(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, BOOL ret = True; DATA_BLOB session_key; DATA_BLOB confounded_session_key = data_blob_talloc(mem_ctx, NULL, 16); - uint8 confounder[16]; + uint8_t confounder[16]; char *newpass = samr_rand_pass(mem_ctx); struct MD5Context ctx; @@ -707,8 +707,8 @@ static BOOL test_ChangePasswordUser(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle user_handle; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); - uint8 old_nt_hash[16], new_nt_hash[16]; - uint8 old_lm_hash[16], new_lm_hash[16]; + uint8_t old_nt_hash[16], new_nt_hash[16]; + uint8_t old_lm_hash[16], new_lm_hash[16]; status = test_OpenUser_byname(p, mem_ctx, handle, TEST_USERNAME, &user_handle); if (!NT_STATUS_IS_OK(status)) { @@ -768,7 +768,7 @@ static BOOL test_OemChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_c struct samr_AsciiName server, account; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); - uint8 old_lm_hash[16], new_lm_hash[16]; + uint8_t old_lm_hash[16], new_lm_hash[16]; printf("Testing OemChangePasswordUser2\n"); @@ -810,8 +810,8 @@ static BOOL test_ChangePasswordUser2(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Hash nt_verifier, lm_verifier; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); - uint8 old_nt_hash[16], new_nt_hash[16]; - uint8 old_lm_hash[16], new_lm_hash[16]; + uint8_t old_nt_hash[16], new_nt_hash[16]; + uint8_t old_lm_hash[16], new_lm_hash[16]; printf("Testing ChangePasswordUser2\n"); @@ -863,8 +863,8 @@ static BOOL test_ChangePasswordUser3(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct samr_Hash nt_verifier, lm_verifier; char *oldpass = *password; char *newpass = samr_rand_pass(mem_ctx); - uint8 old_nt_hash[16], new_nt_hash[16]; - uint8 old_lm_hash[16], new_lm_hash[16]; + uint8_t old_nt_hash[16], new_nt_hash[16]; + uint8_t old_lm_hash[16], new_lm_hash[16]; printf("Testing ChangePasswordUser3\n"); |