s3:libsmb/smb_seal: s/uint16/uint16_t
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 13:35:23 +0000 (15:35 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 19 Oct 2011 15:32:23 +0000 (17:32 +0200)
metze

source3/include/smb_crypt.h
source3/libsmb/smb_seal.c

index ed0063e2e2559e8d5473ae38487cb60cf3d113a7..e4070b56a6e60e32c9ab10261eca55f1038d6b5d 100644 (file)
@@ -49,7 +49,7 @@ struct smb_tran_enc_state_gss {
 
 struct smb_trans_enc_state {
         enum smb_trans_enc_type smb_enc_type;
-        uint16 enc_ctx_num;
+        uint16_t enc_ctx_num;
         bool enc_on;
         union {
                 struct auth_ntlmssp_state *auth_ntlmssp_state;
@@ -61,7 +61,7 @@ struct smb_trans_enc_state {
 
 /* The following definitions come from libsmb/smb_seal.c  */
 
-NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16 *p_enc_ctx_num);
+NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16_t *p_enc_ctx_num);
 bool common_encryption_on(struct smb_trans_enc_state *es);
 NTSTATUS common_encrypt_buffer(struct smb_trans_enc_state *es, char *buffer, char **buf_out);
 NTSTATUS common_decrypt_buffer(struct smb_trans_enc_state *es, char *buf);
index c5541107ab923b0c0d2e44556223d2ab4bac8860..e50215b36e6049d253b72a0a747405416bedae5a 100644 (file)
@@ -28,7 +28,7 @@
  Pull out the encryption context for this packet. 0 means global context.
 ******************************************************************************/
 
-NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16 *p_enc_ctx_num)
+NTSTATUS get_enc_ctx_num(const uint8_t *buf, uint16_t *p_enc_ctx_num)
 {
        if (smb_len(buf) < 8) {
                return NT_STATUS_INVALID_BUFFER_SIZE;
@@ -113,7 +113,7 @@ static NTSTATUS common_ntlm_decrypt_buffer(struct auth_ntlmssp_state *auth_ntlms
 ******************************************************************************/
 
 static NTSTATUS common_ntlm_encrypt_buffer(struct auth_ntlmssp_state *auth_ntlmssp_state,
-                               uint16 enc_ctx_num,
+                               uint16_t enc_ctx_num,
                                char *buf,
                                char **ppbuf_out)
 {
@@ -224,7 +224,7 @@ static NTSTATUS common_gss_decrypt_buffer(struct smb_tran_enc_state_gss *gss_sta
 ******************************************************************************/
 
 static NTSTATUS common_gss_encrypt_buffer(struct smb_tran_enc_state_gss *gss_state,
-                                       uint16 enc_ctx_num,
+                                       uint16_t enc_ctx_num,
                                        char *buf,
                                        char **ppbuf_out)
 {