diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/process.c | 2 | ||||
-rw-r--r-- | source3/smbd/proto.h | 3 | ||||
-rw-r--r-- | source3/smbd/seal.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c index c2ce867b6e..76f0e06cfe 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -465,7 +465,7 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx, } if (is_encrypted_packet(sconn, (uint8_t *)*buffer)) { - status = srv_decrypt_buffer(*buffer); + status = srv_decrypt_buffer(sconn, *buffer); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("receive_smb_talloc: SMB decryption failed on " "incoming packet! Error %s\n", diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index b8e9557560..efbaa2ee89 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -48,7 +48,6 @@ /* The following definitions come from smbd/signing.c */ -struct smbd_server_connection; bool srv_check_sign_mac(struct smbd_server_connection *conn, const char *inbuf, uint32_t *seqnum, bool trusted_channel); void srv_calculate_sign_mac(struct smbd_server_connection *conn, @@ -940,7 +939,7 @@ void reply_getattrE(struct smb_request *req); bool is_encrypted_packet(struct smbd_server_connection *sconn, const uint8_t *inbuf); void srv_free_enc_buffer(struct smbd_server_connection *sconn, char *buf); -NTSTATUS srv_decrypt_buffer(char *buf); +NTSTATUS srv_decrypt_buffer(struct smbd_server_connection *sconn, char *buf); NTSTATUS srv_encrypt_buffer(char *buf, char **buf_out); NTSTATUS srv_request_encryption_setup(connection_struct *conn, unsigned char **ppdata, diff --git a/source3/smbd/seal.c b/source3/smbd/seal.c index 7ec8c2d75f..2883b4e55d 100644 --- a/source3/smbd/seal.c +++ b/source3/smbd/seal.c @@ -343,7 +343,7 @@ void srv_free_enc_buffer(struct smbd_server_connection *sconn, char *buf) Decrypt an incoming buffer. ******************************************************************************/ -NTSTATUS srv_decrypt_buffer(char *buf) +NTSTATUS srv_decrypt_buffer(struct smbd_server_connection *sconn, char *buf) { /* Ignore non-session messages. */ if(CVAL(buf,0)) { |