libcli/auth: pass an array of nt_hashes to netlogon_creds_cli_auth*()
commitddd7ac68ccae8b4df6c6a65b3dad20e21924f538
authorStefan Metzmacher <metze@samba.org>
Mon, 22 May 2017 18:44:40 +0000 (22 20:44 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Jun 2017 14:57:45 +0000 (27 16:57 +0200)
tree4cbdc5640e86f6a0f08bb6c318ba567f430fc37f
parent1421abfc733247a6b71eefd819dfeae7151a6d78
libcli/auth: pass an array of nt_hashes to netlogon_creds_cli_auth*()

This way the caller can pass more than 2 hashes and can only
know which hash was used for a successful connection.

We allow up to 4 hashes (next, current, old, older).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libcli/auth/netlogon_creds_cli.c
libcli/auth/netlogon_creds_cli.h
source3/libsmb/trusts_util.c
source3/rpc_client/cli_netlogon.c