s3: auth: Add some const to the struct netr_SamInfo3 * arguments of copy_netr_SamInfo...
authorJeremy Allison <jra@samba.org>
Thu, 11 Jun 2015 17:16:01 +0000 (18:16 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 11 Jul 2015 19:59:25 +0000 (21:59 +0200)
Both functions only read from the struct netr_SamInfo3 * argument.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Simo Sorce <idra@samba.org>
(cherry picked from commit c2411767adb5ce48a4619349075f6f8faae41aab)

    Conflicts:
     source3/auth/proto.h
     source3/auth/server_info.c

source3/auth/auth_util.c
source3/auth/proto.h
source3/auth/server_info.c

index ceaa7064d5908d19347f696ee013c0b9a34a5d77..afa78ecf69273e507a9796de4a4c06ef3613e8e7 100644 (file)
@@ -1369,7 +1369,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
                                const char *sent_nt_username,
                                const char *domain,
                                struct auth_serversupplied_info **server_info,
-                               struct netr_SamInfo3 *info3)
+                               const struct netr_SamInfo3 *info3)
 {
        static const char zeros[16] = {0, };
 
index 76661fc833a5aefcfb41dfc7df5d062f852b9bed..6ec206ec81a98e98b7e908953e4097571dc0850f 100644 (file)
@@ -232,7 +232,7 @@ NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,
                                const char *sent_nt_username,
                                const char *domain,
                                struct auth_serversupplied_info **server_info,
-                               struct netr_SamInfo3 *info3);
+                               const struct netr_SamInfo3 *info3);
 struct wbcAuthUserInfo;
 NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
                                          const char *sent_nt_username,
@@ -287,7 +287,7 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
                          struct netr_SamInfo3 **_info3,
                          struct extra_auth_info *extra);
 struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
-                                        struct netr_SamInfo3 *orig);
+                                        const struct netr_SamInfo3 *orig);
 struct netr_SamInfo3 *wbcAuthUserInfo_to_netr_SamInfo3(TALLOC_CTX *mem_ctx,
                                        const struct wbcAuthUserInfo *info);
 
index d2b7d6e938f0483701e70cd267965463db615492..066b9a8156dee5dd608080ba1be84801b7a25c96 100644 (file)
@@ -445,7 +445,7 @@ NTSTATUS samu_to_SamInfo3(TALLOC_CTX *mem_ctx,
        } } while(0)
 
 struct netr_SamInfo3 *copy_netr_SamInfo3(TALLOC_CTX *mem_ctx,
-                                        struct netr_SamInfo3 *orig)
+                                        const struct netr_SamInfo3 *orig)
 {
        struct netr_SamInfo3 *info3;
        unsigned int i;