s4:torture: Use init_lsa_String() from init_lsa.h
authorAndreas Schneider <asn@samba.org>
Tue, 27 Feb 2024 08:14:24 +0000 (09:14 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Apr 2024 22:52:38 +0000 (22:52 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/lsa.c
source4/torture/wscript_build

index c2190e55da3792890f095fdb7c4b0f13638bd09c..47292b2e7fb75ab16bacbd54a7a1839086341e50 100644 (file)
@@ -36,6 +36,7 @@
 #include "source4/auth/kerberos/kerberos_util.h"
 #include "lib/util/util_net.h"
 #include "libcli/resolve/resolve.h"
+#include "source3/rpc_client/init_lsa.h"
 
 #include <gnutls/gnutls.h>
 #include <gnutls/crypto.h>
 #define TEST_MACHINENAME "lsatestmach"
 #define TRUSTPW "12345678"
 
-static void init_lsa_String(struct lsa_String *name, const char *s)
-{
-       name->string = s;
-}
-
 static bool test_OpenPolicy(struct dcerpc_binding_handle *b,
                            struct torture_context *tctx)
 {
index 1ddce713dfb90ca97455c35b07d000886da8697e..59db9f8f7d70cf6be6ac37f10d1f2936ac8ab5ee 100644 (file)
@@ -169,6 +169,7 @@ bld.SAMBA_MODULE('torture_rpc',
                       RPC_NDR_NTSVCS
                       %s
                       LIBCLI_AUTH
+                      INIT_LSA
                       popt
                       CMDLINE_S4
                       TORTURE_LDAP