From a03fb78413465bfd4f35adcce8fd3137eaa567ad Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 28 Oct 2024 15:52:13 +0100 Subject: [PATCH] libcli/auth: make netlogon_creds_des_{de,en}crypt_LMKey() static BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit 1edcd5df80bdbc4d4da5bdd5e534d7a17ec61f77) --- libcli/auth/credentials.c | 4 ++-- libcli/auth/proto.h | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/libcli/auth/credentials.c b/libcli/auth/credentials.c index 3bc6b741c06..ec5552e60c0 100644 --- a/libcli/auth/credentials.c +++ b/libcli/auth/credentials.c @@ -290,7 +290,7 @@ static NTSTATUS netlogon_creds_step(struct netlogon_creds_CredentialState *creds /* DES encrypt a 8 byte LMSessionKey buffer using the Netlogon session key */ -NTSTATUS netlogon_creds_des_encrypt_LMKey(struct netlogon_creds_CredentialState *creds, +static NTSTATUS netlogon_creds_des_encrypt_LMKey(struct netlogon_creds_CredentialState *creds, struct netr_LMSessionKey *key) { int rc; @@ -308,7 +308,7 @@ NTSTATUS netlogon_creds_des_encrypt_LMKey(struct netlogon_creds_CredentialState /* DES decrypt a 8 byte LMSessionKey buffer using the Netlogon session key */ -NTSTATUS netlogon_creds_des_decrypt_LMKey(struct netlogon_creds_CredentialState *creds, +static NTSTATUS netlogon_creds_des_decrypt_LMKey(struct netlogon_creds_CredentialState *creds, struct netr_LMSessionKey *key) { int rc; diff --git a/libcli/auth/proto.h b/libcli/auth/proto.h index f108c756a1f..53a7d2062db 100644 --- a/libcli/auth/proto.h +++ b/libcli/auth/proto.h @@ -16,10 +16,6 @@ bool netlogon_creds_is_random_challenge(const struct netr_Credential *challenge); void netlogon_creds_random_challenge(struct netr_Credential *challenge); -NTSTATUS netlogon_creds_des_encrypt_LMKey(struct netlogon_creds_CredentialState *creds, - struct netr_LMSessionKey *key); -NTSTATUS netlogon_creds_des_decrypt_LMKey(struct netlogon_creds_CredentialState *creds, - struct netr_LMSessionKey *key); NTSTATUS netlogon_creds_des_encrypt(struct netlogon_creds_CredentialState *creds, struct samr_Password *pass); NTSTATUS netlogon_creds_des_decrypt(struct netlogon_creds_CredentialState *creds, -- 2.47.2