]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/netlogon: add some const to pull_{netlogon_samlogon,nbt_netlogon}_response()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 May 2026 14:30:19 +0000 (16:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 2 Jul 2026 12:03:31 +0000 (12:03 +0000)
pull_* functions should use the data blob read-only.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libcli/netlogon/netlogon.c
libcli/netlogon/netlogon_proto.h

index 417991ada79fff3e99b0f67ba243595fdb664080..889180fd77722fdfbc8ba19d6d8b05f974ad648f 100644 (file)
@@ -51,7 +51,7 @@ NTSTATUS push_netlogon_samlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS pull_netlogon_samlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
+NTSTATUS pull_netlogon_samlogon_response(const DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct netlogon_samlogon_response *response)
 {
        uint32_t ntver;
@@ -222,7 +222,7 @@ NTSTATUS push_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
 }
 
 
-NTSTATUS pull_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
+NTSTATUS pull_nbt_netlogon_response(const DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct nbt_netlogon_response *response)
 {
        NTSTATUS status;
index ba82c0579a50d751bffb8a50ecb9fb665c9b7efb..d46f331605da0380c2f45a22c46cc95b4081ab0a 100644 (file)
@@ -20,12 +20,12 @@ struct nbt_netlogon_response;
 
 NTSTATUS push_netlogon_samlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct netlogon_samlogon_response *response);
-NTSTATUS pull_netlogon_samlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
+NTSTATUS pull_netlogon_samlogon_response(const DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct netlogon_samlogon_response *response);
 void map_netlogon_samlogon_response(struct netlogon_samlogon_response *response);
 NTSTATUS push_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                    struct nbt_netlogon_response *response);
-NTSTATUS pull_nbt_netlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
+NTSTATUS pull_nbt_netlogon_response(const DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct nbt_netlogon_response *response);
 #undef _PRINTF_ATTRIBUTE
 #define _PRINTF_ATTRIBUTE(a1, a2)