CVE-2020-1472(ZeroLogon): libcli/auth: add netlogon_creds_random_challenge()
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Sep 2020 14:04:57 +0000 (16:04 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Sep 2020 12:48:38 +0000 (12:48 +0000)
commitb813cdcac377210c3ab18e0d0a0c1a76870b1d74
treee0b7579f45d09e26bd66d60ef7205ff28a9a5877
parent380938b00fb9fdb5b100e77000a059199695f43a
CVE-2020-1472(ZeroLogon): libcli/auth: add netlogon_creds_random_challenge()

It's good to have just a single isolated function that will generate
random challenges, in future we can add some logic in order to
avoid weak values, which are likely to be rejected by a server.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
libcli/auth/credentials.c
libcli/auth/proto.h