s3:smbd: rework negprot remote arch detection
authorJustin Maggard <jmaggard10@gmail.com>
Wed, 2 Mar 2016 18:18:34 +0000 (10:18 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 3 Mar 2016 04:50:17 +0000 (05:50 +0100)
commitb69b96fc14128f50a906b4f5b34934efbc94afbc
tree3e158f0fddd4433c7a74a1d199ee8fd7a729adbf
parent9c67ff461d73305530ea257820215cf1ba97f703
s3:smbd: rework negprot remote arch detection

Negprot remote arch detection is very cryptic.  Rework it so it's easier
to understand, and therefore more extensible, following the protocol table
in inline comments.  This also allows us to remove some hacks.

Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
Reviewed-by: Ralph Boehme <rb@sernet.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smb_constants.h
source3/smbd/negprot.c
source3/smbd/smb2_negprot.c