Convert all uses of uint32/16/8 to _t in source3/auth.
authorRichard Sharpe <rsharpe@samba.org>
Mon, 11 May 2015 01:17:56 +0000 (18:17 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 13 May 2015 17:11:24 +0000 (19:11 +0200)
Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/auth/auth_util.c
source3/auth/check_samsec.c
source3/auth/proto.h

index 585afd31386c8cfef0b8baa73cfcf99ac6e21fae..69e150fc972be54fc7b01d089f4fb07344771b78 100644 (file)
@@ -167,7 +167,7 @@ bool make_user_info_netlogon_network(TALLOC_CTX *mem_ctx,
                                     const char *client_domain, 
                                     const char *workstation_name,
                                     const struct tsocket_address *remote_address,
-                                    uint32 logon_parameters,
+                                    uint32_t logon_parameters,
                                     const uchar *lm_network_pwd,
                                     int lm_pwd_len,
                                     const uchar *nt_network_pwd,
@@ -208,7 +208,7 @@ bool make_user_info_netlogon_interactive(TALLOC_CTX *mem_ctx,
                                         const char *client_domain, 
                                         const char *workstation_name,
                                         const struct tsocket_address *remote_address,
-                                        uint32 logon_parameters,
+                                        uint32_t logon_parameters,
                                         const uchar chal[8], 
                                         const uchar lm_interactive_pwd[16], 
                                         const uchar nt_interactive_pwd[16])
@@ -280,7 +280,7 @@ bool make_user_info_for_reply(TALLOC_CTX *mem_ctx,
                              const char *smb_name, 
                              const char *client_domain,
                              const struct tsocket_address *remote_address,
-                             const uint8 chal[8],
+                             const uint8_t chal[8],
                              DATA_BLOB plaintext_password)
 {
 
index ff634aa4968e947a706ac14ea382ad79b030e601..cbcde08412895831c1c05e538e146df3873c9f97 100644 (file)
@@ -119,11 +119,11 @@ static NTSTATUS sam_password_ok(TALLOC_CTX *mem_ctx,
 static bool logon_hours_ok(struct samu *sampass)
 {
        /* In logon hours first bit is Sunday from 12AM to 1AM */
-       const uint8 *hours;
+       const uint8_t *hours;
        struct tm *utctime;
        time_t lasttime;
        const char *asct;
-       uint8 bitmask, bitpos;
+       uint8_t bitmask, bitpos;
 
        hours = pdb_get_hours(sampass);
        if (!hours) {
@@ -176,7 +176,7 @@ static NTSTATUS sam_account_ok(TALLOC_CTX *mem_ctx,
                               struct samu *sampass,
                               const struct auth_usersupplied_info *user_info)
 {
-       uint32  acct_ctrl = pdb_get_acct_ctrl(sampass);
+       uint32_t acct_ctrl = pdb_get_acct_ctrl(sampass);
        char *workstation_list;
        time_t kickoff_time;
 
index 792e96d1facfd8973ab3136f59a422311f20a351..5fd315846d87e83748b6154756e7be49c55a70ce 100644 (file)
@@ -165,7 +165,7 @@ bool make_user_info_netlogon_network(TALLOC_CTX *mem_ctx,
                                     const char *client_domain,
                                     const char *workstation_name,
                                     const struct tsocket_address *remote_address,
-                                    uint32 logon_parameters,
+                                    uint32_t logon_parameters,
                                     const uchar *lm_network_pwd,
                                     int lm_pwd_len,
                                     const uchar *nt_network_pwd,
@@ -176,7 +176,7 @@ bool make_user_info_netlogon_interactive(TALLOC_CTX *mem_ctx,
                                         const char *client_domain,
                                         const char *workstation_name,
                                         const struct tsocket_address *remote_address,
-                                        uint32 logon_parameters,
+                                        uint32_t logon_parameters,
                                         const uchar chal[8],
                                         const uchar lm_interactive_pwd[16],
                                         const uchar nt_interactive_pwd[16]);
@@ -185,7 +185,7 @@ bool make_user_info_for_reply(TALLOC_CTX *mem_ctx,
                              const char *smb_name,
                              const char *client_domain,
                              const struct tsocket_address *remote_address,
-                             const uint8 chal[8],
+                             const uint8_t chal[8],
                              DATA_BLOB plaintext_password);
 NTSTATUS make_user_info_for_reply_enc(TALLOC_CTX *mem_ctx,
                                      struct auth_usersupplied_info **user_info,
@@ -336,7 +336,7 @@ NTSTATUS pass_check(const struct passwd *pass,
 /* The following definitions come from auth/token_util.c  */
 
 bool nt_token_check_sid ( const struct dom_sid *sid, const struct security_token *token );
-bool nt_token_check_domain_rid( struct security_token *token, uint32 rid );
+bool nt_token_check_domain_rid( struct security_token *token, uint32_t rid );
 struct security_token *get_root_nt_token( void );
 NTSTATUS add_aliases(const struct dom_sid *domain_sid,
                     struct security_token *token);