static bool valid_smb_header(struct smbd_server_connection *sconn,
const uint8_t *inbuf)
{
- if (is_encrypted_packet(sconn, inbuf)) {
+ if (is_encrypted_packet(inbuf)) {
return true;
}
/*
return status;
}
- if (is_encrypted_packet(sconn, (uint8_t *)*buffer)) {
+ if (is_encrypted_packet((uint8_t *)*buffer)) {
status = srv_decrypt_buffer(sconn, *buffer);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("receive_smb_talloc: SMB decryption failed on "
/* The following definitions come from smbd/seal.c */
-bool is_encrypted_packet(struct smbd_server_connection *sconn,
- const uint8_t *inbuf);
+bool is_encrypted_packet(const uint8_t *inbuf);
void srv_free_enc_buffer(struct smbd_server_connection *sconn, char *buf);
NTSTATUS srv_decrypt_buffer(struct smbd_server_connection *sconn, char *buf);
NTSTATUS srv_encrypt_buffer(struct smbd_server_connection *sconn, char *buf,
struct files_struct *fsp = NULL;
NTSTATUS status;
- if (is_encrypted_packet(sconn, inbuf)) {
+ if (is_encrypted_packet(inbuf)) {
/* Can't do this on encrypted
* connections. */
return false;
Is this an incoming encrypted packet ?
******************************************************************************/
-bool is_encrypted_packet(struct smbd_server_connection *sconn,
- const uint8_t *inbuf)
+bool is_encrypted_packet(const uint8_t *inbuf)
{
NTSTATUS status;
uint16_t enc_num;