s4:libcli/smb2: allow the caller to specify a specific value for max_protocol.
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Nov 2014 13:35:38 +0000 (14:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 27 Nov 2014 15:45:05 +0000 (16:45 +0100)
commitd0a1995b934895ae9f0bbeed52772a4ef5d4b0dd
tree7b8133bd8bac833f1db094008e6b6092431c80a7
parentbc83e45a19deccfb0106c9ad79b0624b1c5d1fa7
s4:libcli/smb2: allow the caller to specify a specific value for max_protocol.

The default is still PROTOCOL_LATEST. As smb2_connect*() is about SMB2/3 only
we upgrade to PROTOCOL_LATEST if PROTOCOL_NT1 or lower is given.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/libcli/smb2/connect.c
source4/libcli/smb2/transport.c