s3:libsmb: make use of smb1cli_session_setup_{nt1,lm21}_send/recv()
authorStefan Metzmacher <metze@samba.org>
Wed, 26 Oct 2016 10:01:45 +0000 (12:01 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 15 Nov 2016 10:00:27 +0000 (11:00 +0100)
commita54d250e0962e1c3777653af5c6f7b7c6eb04d24
tree529481a841f25179dda04886e56c1a8ee2c98f9f
parent9fffec88033a385f3ebb8fe8520b9b39c831d98f
s3:libsmb: make use of smb1cli_session_setup_{nt1,lm21}_send/recv()

This separates the construction of the ASCII-Password (lm_response)
and UNICODE-Password (nt_response) values from the marshalling logic.

We don't need the NT1 marshalling logic 3 times (guest, plain, nt1),
we just need it once now in smb1cli_session_setup_nt1*.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/cliconnect.c