From 1dcb72dcac27dff8ad999bada4a053460db88034 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 2 Oct 2024 19:06:59 +0200 Subject: [PATCH] libcli/auth: remove unused netlogon_creds_client_init_session_key() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit cf0e07a3d2a085d31f7d682633af9ec57c155e57) --- libcli/auth/credentials.c | 19 ------------------- libcli/auth/proto.h | 2 -- 2 files changed, 21 deletions(-) diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index 84838be6e73..d1875960448 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -563,25 +563,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_client_init(TALLOC_CTX *me return creds; } -/* - initialise the credentials structure with only a session key. The caller better know what they are doing! - */ - -struct netlogon_creds_CredentialState *netlogon_creds_client_init_session_key(TALLOC_CTX *mem_ctx, - const uint8_t session_key[16]) -{ - struct netlogon_creds_CredentialState *creds; - - creds = talloc_zero(mem_ctx, struct netlogon_creds_CredentialState); - if (!creds) { - return NULL; - } - - memcpy(creds->session_key, session_key, 16); - - return creds; -} - /* step the credentials to the next element in the chain, updating the current client and server credentials and the seed diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index b202542068d..9f6a8b68b8b 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -47,8 +47,6 @@ struct netlogon_creds_CredentialState *netlogon_creds_client_init(TALLOC_CTX *me const struct samr_Password *machine_password, struct netr_Credential *initial_credential, uint32_t negotiate_flags); -struct netlogon_creds_CredentialState *netlogon_creds_client_init_session_key(TALLOC_CTX *mem_ctx, - const uint8_t session_key[16]); NTSTATUS netlogon_creds_client_authenticator(struct netlogon_creds_CredentialState *creds, struct netr_Authenticator *next); -- 2.47.2