1
0
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:
Volker Lendecke 2011-08-05 17:00:42 +02:00
parent d4c4705e55
commit 7e70f85350
3 changed files with 5 additions and 3 deletions

View File

@ -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",

View File

@ -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,

View File

@ -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;