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 11:27:15 +0000 (13:27 +0200)
commitb57b6004db8ac9fef38227e67d1d77a237600f30
treed7c8bb71ab36b51d72ed725464c7db07a529ab6d
parent45d4e54606743ad076987a33d28f6d4b9a59d9ba
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>
libcli/auth/credentials.c
libcli/auth/proto.h