[PATCH] Display status of encryption and signing in smbstatus

Jeremy Allison jra at samba.org
Wed Jan 20 23:57:37 UTC 2016


On Wed, Jan 20, 2016 at 03:03:26PM -0800, Jeremy Allison wrote:
> On Wed, Jan 20, 2016 at 09:11:29AM +0100, Ralph Boehme wrote:
> > Hi!
> > 
> > Looks like this one gut stuck, can someone take a look? Thanks!
> 
> Reviewing this now - minor change needed. More when
> I've finished.

OK, if you can merge the following patch to
the code that adds the SMB1 smb1srv_update_crypto_flags()
function then I'm OK for you to push with my
'Reviewed-by: Jeremy Allison' added.

Thanks Ralph !

Jeremy.
-------------- next part --------------
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index adcea25..4c49ea2 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -1444,7 +1444,7 @@ static void smb1srv_update_crypto_flags(struct smbXsrv_session *session,
 	bool update_session = false;
 	bool update_tcon = false;
 
-	if (ENCRYPTION_REQUIRED(conn)) {
+	if (req->encrypted) {
 		encrypt_flag = SMBXSRV_PROCESSED_ENCRYPTED_PACKET;
 	}
 


More information about the samba-technical mailing list