From ea69efd5e269e3ec0c93121d0448a1f6fb4275ac Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 12 Aug 2019 18:50:02 +0200 Subject: [PATCH 079/187] Revert "s4:rpc_server: Use generate_secret_buffer() to create a session key" This reverts commit 4b2480518bd3887be3a6cfb713523ac084e09fd5. Reviewed-by: Alexander Bokovoy (cherry picked from commit d73be972ea58d564c770698bf6374a6074f111fe) --- source4/rpc_server/samr/samr_password.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c index 6bf907181c8..b04e37f06f3 100644 --- a/source4/rpc_server/samr/samr_password.c +++ b/source4/rpc_server/samr/samr_password.c @@ -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)); -- 2.23.0