mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:libsmb/smb_seal: s/uint16/uint16_t
metze
This commit is contained in:
parent
1b9c8d4867
commit
0e0e44a626
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user