]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli: Remove two unused functions
authorVolker Lendecke <vl@samba.org>
Fri, 1 Nov 2024 11:44:42 +0000 (12:44 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 11 Nov 2024 14:03:04 +0000 (14:03 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/cldap/cldap.c
libcli/cldap/cldap.h

index d6a9bec47e13ae82ddfbefd5ba22d64b6d7d9fe3..0104fde9d5139f06061bdb6effed95014d919229 100644 (file)
@@ -898,30 +898,6 @@ NTSTATUS cldap_search(struct cldap_socket *cldap,
        return NT_STATUS_OK;
 }
 
-/*
-  send an empty reply (used on any error, so the client doesn't keep waiting
-  or send the bad request again)
-*/
-NTSTATUS cldap_empty_reply(struct cldap_socket *cldap,
-                          uint32_t message_id,
-                          struct tsocket_address *dest)
-{
-       NTSTATUS status;
-       struct cldap_reply reply;
-       struct ldap_Result result;
-
-       reply.messageid    = message_id;
-       reply.dest         = dest;
-       reply.response     = NULL;
-       reply.result       = &result;
-
-       ZERO_STRUCT(result);
-
-       status = cldap_reply_send(cldap, &reply);
-
-       return status;
-}
-
 /*
   send an error reply (used on any error, so the client doesn't keep waiting
   or send the bad request again)
@@ -949,49 +925,3 @@ NTSTATUS cldap_error_reply(struct cldap_socket *cldap,
 
        return status;
 }
-
-
-/*
-  send a netlogon reply 
-*/
-NTSTATUS cldap_netlogon_reply(struct cldap_socket *cldap,
-                             uint32_t message_id,
-                             struct tsocket_address *dest,
-                             uint32_t version,
-                             struct netlogon_samlogon_response *netlogon)
-{
-       NTSTATUS status;
-       struct cldap_reply reply;
-       struct ldap_SearchResEntry response;
-       struct ldap_Result result;
-       TALLOC_CTX *tmp_ctx = talloc_new(cldap);
-       DATA_BLOB blob;
-
-       status = push_netlogon_samlogon_response(&blob, tmp_ctx,
-                                                netlogon);
-       if (!NT_STATUS_IS_OK(status)) {
-               talloc_free(tmp_ctx);
-               return status;
-       }
-       reply.messageid    = message_id;
-       reply.dest         = dest;
-       reply.response     = &response;
-       reply.result       = &result;
-
-       ZERO_STRUCT(result);
-
-       response.dn = "";
-       response.num_attributes = 1;
-       response.attributes = talloc(tmp_ctx, struct ldb_message_element);
-       NT_STATUS_HAVE_NO_MEMORY(response.attributes);
-       response.attributes->name = "netlogon";
-       response.attributes->num_values = 1;
-       response.attributes->values = &blob;
-
-       status = cldap_reply_send(cldap, &reply);
-
-       talloc_free(tmp_ctx);
-
-       return status;
-}
-
index 8c664ffaa6170cd2097e4e820903644325c3c5d5..97b8e2bb864ab9d8151d478d3dc061c1af862665 100644 (file)
@@ -83,17 +83,8 @@ struct cldap_reply {
 
 NTSTATUS cldap_reply_send(struct cldap_socket *cldap, struct cldap_reply *io);
 
-NTSTATUS cldap_empty_reply(struct cldap_socket *cldap,
-                          uint32_t message_id,
-                          struct tsocket_address *dst);
 NTSTATUS cldap_error_reply(struct cldap_socket *cldap,
                           uint32_t message_id,
                           struct tsocket_address *dst,
                           int resultcode,
                           const char *errormessage);
-
-NTSTATUS cldap_netlogon_reply(struct cldap_socket *cldap,
-                             uint32_t message_id,
-                             struct tsocket_address *dst,
-                             uint32_t version,
-                             struct netlogon_samlogon_response *netlogon);