1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-23 06:50:21 +03:00

s3: smbd: Look at the correct signing state for the debug messages in make_connection_snum().

The rest of the changes should now be just renaming
the SMB1 signing functions to make it clear they are
SMB1 specific.

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: David Mulder <dmulder@samba.org>
This commit is contained in:
Jeremy Allison 2022-03-07 19:06:34 -08:00 committed by David Mulder
parent 1f3f6e20dc
commit b879d475bf

View File

@ -852,10 +852,18 @@ static NTSTATUS make_connection_snum(struct smbXsrv_connection *xconn,
*/
if( DEBUGLVL( IS_IPC(conn) ? 3 : 2 ) ) {
bool signing_active;
dbgtext( "%s (%s) ", get_remote_machine_name(),
tsocket_address_string(conn->sconn->remote_address,
talloc_tos()) );
dbgtext( "%s", srv_is_signing_active(xconn) ? "signed " : "");
if (sconn->using_smb2) {
signing_active = smb2_signing_key_valid(
session->global->encryption_key);
} else {
signing_active = srv_is_signing_active(xconn);
}
dbgtext( "%s", signing_active ? "signed " : "");
dbgtext( "connect to service %s ",
lp_const_servicename(snum) );
dbgtext( "initially as user %s ",