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;
/* 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);
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;
******************************************************************************/
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)
{
******************************************************************************/
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)
{