Revert "libcli:auth: Use generate_secret_buffer() for netlogon challenge"
authorAndreas Schneider <asn@samba.org>
Mon, 12 Aug 2019 16:49:31 +0000 (18:49 +0200)
committerAlexander Bokovoy <ab@samba.org>
Wed, 14 Aug 2019 15:07:24 +0000 (15:07 +0000)
This reverts commit c3ba556f52b15dd80efc26e4fb8f43ce2ee3a7f0.

Reviewed-by: Alexander Bokovoy <ab@samba.org>
libcli/auth/netlogon_creds_cli.c

index 18143ca..50a5f50 100644 (file)
@@ -1177,8 +1177,7 @@ static void netlogon_creds_cli_auth_challenge_start(struct tevent_req *req)
 
        TALLOC_FREE(state->creds);
 
-       /* We need to use a CSPRNG which reseeds for generating session keys. */
-       generate_secret_buffer(state->client_challenge.data,
+       generate_random_buffer(state->client_challenge.data,
                               sizeof(state->client_challenge.data));
 
        subreq = dcerpc_netr_ServerReqChallenge_send(state, state->ev,