2 Unix SMB/CIFS implementation.
4 Copyright (C) Jeremy Allison 2003.
5 Copyright (C) Andrew Bartlett <abartlet@samba.org> 2002-2003
6 Copyright (C) Stefan Metzmacher 2009
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 struct smbXsrv_connection
;
24 bool smb1_srv_check_sign_mac(struct smbXsrv_connection
*conn
,
25 const char *inbuf
, uint32_t *seqnum
, bool trusted_channel
);
26 NTSTATUS
smb1_srv_calculate_sign_mac(struct smbXsrv_connection
*conn
,
27 char *outbuf
, uint32_t seqnum
);
28 void smb1_srv_cancel_sign_response(struct smbXsrv_connection
*conn
);
29 void smb1_srv_set_signing_negotiated(struct smbXsrv_connection
*conn
,
30 bool allowed
, bool mandatory
);
31 bool smb1_srv_is_signing_active(struct smbXsrv_connection
*conn
);
32 bool smb1_srv_is_signing_negotiated(struct smbXsrv_connection
*conn
);
33 void smb1_srv_set_signing(struct smbXsrv_connection
*conn
,
34 const DATA_BLOB user_session_key
,
35 const DATA_BLOB response
);
36 bool smb1_srv_init_signing(struct loadparm_context
*lp_ctx
,
37 struct smbXsrv_connection
*conn
);