mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3: Pass smbd_server_connection to srv_encrypt_buffer
This commit is contained in:
parent
d4c4705e55
commit
7e70f85350
@ -144,7 +144,7 @@ bool srv_send_smb(struct smbd_server_connection *sconn, char *buffer,
|
||||
}
|
||||
|
||||
if (do_encrypt) {
|
||||
NTSTATUS status = srv_encrypt_buffer(buffer, &buf_out);
|
||||
NTSTATUS status = srv_encrypt_buffer(sconn, buffer, &buf_out);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
DEBUG(0, ("send_smb: SMB encryption failed "
|
||||
"on outgoing packet! Error %s\n",
|
||||
|
@ -940,7 +940,8 @@ 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(struct smbd_server_connection *sconn, char *buf);
|
||||
NTSTATUS srv_encrypt_buffer(char *buf, char **buf_out);
|
||||
NTSTATUS srv_encrypt_buffer(struct smbd_server_connection *sconn, char *buf,
|
||||
char **buf_out);
|
||||
NTSTATUS srv_request_encryption_setup(connection_struct *conn,
|
||||
unsigned char **ppdata,
|
||||
size_t *p_data_size,
|
||||
|
@ -361,7 +361,8 @@ NTSTATUS srv_decrypt_buffer(struct smbd_server_connection *sconn, char *buf)
|
||||
Encrypt an outgoing buffer. Return the encrypted pointer in buf_out.
|
||||
******************************************************************************/
|
||||
|
||||
NTSTATUS srv_encrypt_buffer(char *buf, char **buf_out)
|
||||
NTSTATUS srv_encrypt_buffer(struct smbd_server_connection *sconn, char *buf,
|
||||
char **buf_out)
|
||||
{
|
||||
*buf_out = buf;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user