s3:smbd: rework negprot remote arch detection
commit9d588a90d30e97d7ec41fd57f1b35d9083e0810b
authorJustin Maggard <jmaggard10@gmail.com>
Wed, 2 Mar 2016 18:18:34 +0000 (2 10:18 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 Mar 2016 09:02:15 +0000 (14 10:02 +0100)
treef7034393c165b447009e3f83e4b842b04297f2d9
parent28e5e957a4b923329b5494fba9698a7aebd5fb96
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.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11773

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