1524bc
From 5b8d3df9856f081cbca601926ca909085cc73f05 Mon Sep 17 00:00:00 2001
1524bc
From: Andreas Schneider <asn@samba.org>
1524bc
Date: Mon, 12 Aug 2019 18:49:31 +0200
1524bc
Subject: [PATCH 076/187] Revert "libcli:auth: Use generate_secret_buffer() for
1524bc
 netlogon challenge"
1524bc
1524bc
This reverts commit c3ba556f52b15dd80efc26e4fb8f43ce2ee3a7f0.
1524bc
1524bc
Reviewed-by: Alexander Bokovoy <ab@samba.org>
1524bc
(cherry picked from commit 689760f26521fe5b4c8964a25ddd3ab1c9e9977c)
1524bc
---
1524bc
 libcli/auth/netlogon_creds_cli.c | 3 +--
1524bc
 1 file changed, 1 insertion(+), 2 deletions(-)
1524bc
1524bc
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c
1524bc
index 18143ca36d0..50a5f50a57d 100644
1524bc
--- a/libcli/auth/netlogon_creds_cli.c
1524bc
+++ b/libcli/auth/netlogon_creds_cli.c
1524bc
@@ -1177,8 +1177,7 @@ static void netlogon_creds_cli_auth_challenge_start(struct tevent_req *req)
1524bc
 
1524bc
 	TALLOC_FREE(state->creds);
1524bc
 
1524bc
-	/* We need to use a CSPRNG which reseeds for generating session keys. */
1524bc
-	generate_secret_buffer(state->client_challenge.data,
1524bc
+	generate_random_buffer(state->client_challenge.data,
1524bc
 			       sizeof(state->client_challenge.data));
1524bc
 
1524bc
 	subreq = dcerpc_netr_ServerReqChallenge_send(state, state->ev,
1524bc
-- 
1524bc
2.23.0
1524bc