Revert "s4:rpc_server: Use generate_secret_buffer() to create a session key"
authorAndreas Schneider <asn@samba.org>
Mon, 12 Aug 2019 16:50:02 +0000 (18:50 +0200)
committerAlexander Bokovoy <ab@samba.org>
Wed, 14 Aug 2019 15:07:24 +0000 (15:07 +0000)
This reverts commit 4b2480518bd3887be3a6cfb713523ac084e09fd5.

Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/rpc_server/samr/samr_password.c

index 6bf9071..b04e37f 100644 (file)
@@ -733,10 +733,9 @@ NTSTATUS samr_set_password_buffers(struct dcesrv_call_state *dce_call,
                         nt_errstr(nt_status)));
 
                /*
-                * Windows just uses a random key. We need to use a CSPRNG
-                * which reseeds for generating session keys.
+                * Windows just uses a random key
                 */
-               generate_secret_buffer(random_session_key,
+               generate_random_buffer(random_session_key,
                                       sizeof(random_session_key));
                session_key = data_blob_const(random_session_key,
                                              sizeof(random_session_key));