From: Stefan Metzmacher Date: Mon, 28 Oct 2024 14:52:13 +0000 (+0100) Subject: libcli/auth: make netlogon_creds_des_{de,en}crypt_LMKey() static X-Git-Tag: ldb-2.9.2~22 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a03fb78413465bfd4f35adcce8fd3137eaa567ad;p=thirdparty%2Fsamba.git 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) --- 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,