]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: remove unused netlogon_creds_client_init_session_key()
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Oct 2024 17:06:59 +0000 (19:06 +0200)
committerJule Anger <janger@samba.org>
Wed, 13 Nov 2024 10:39:11 +0000 (10:39 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit cf0e07a3d2a085d31f7d682633af9ec57c155e57)

libcli/auth/credentials.c
libcli/auth/proto.h

index 84838be6e73c71e5654a75cd70a7c84725444937..d18759604480875094b2b7f86f629d3fcb2fe68f 100644 (file)
@@ -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
index b202542068d179b1a5c32233a8802d545c078060..9f6a8b68b8b1368e78361978578eec41c204103f 100644 (file)
@@ -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);