diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-05-10 10:53:48 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-05-10 10:53:48 +0000 |
commit | c507ebe56741d773bf6e7ad547863a2da1aee687 (patch) | |
tree | 916ea67eda6b10be64ad1d78ecadc4da1c344678 /source3/torture | |
parent | 05bc989ae88866951437dbcb88f76642aa8b6051 (diff) | |
download | samba-c507ebe56741d773bf6e7ad547863a2da1aee687.tar.gz samba-c507ebe56741d773bf6e7ad547863a2da1aee687.tar.xz samba-c507ebe56741d773bf6e7ad547863a2da1aee687.zip |
Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
(This used to be commit 74d9ecfe2dd7364643d32acb62ade957bd71cd0d)
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/locktest.c | 2 | ||||
-rw-r--r-- | source3/torture/locktest2.c | 2 | ||||
-rw-r--r-- | source3/torture/masktest.c | 2 | ||||
-rw-r--r-- | source3/torture/msgtest.c | 2 | ||||
-rw-r--r-- | source3/torture/nsstest.c | 2 | ||||
-rw-r--r-- | source3/torture/rpctorture.c | 2 | ||||
-rw-r--r-- | source3/torture/smbiconv.c | 2 | ||||
-rw-r--r-- | source3/torture/torture.c | 2 | ||||
-rw-r--r-- | source3/torture/vfstest.c | 6 |
9 files changed, 22 insertions, 0 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index 63b9590dd6..c18d2c100b 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -22,6 +22,8 @@ #include "includes.h" +#include "module_dummy.h" + static fstring password[2]; static fstring username[2]; static int got_user; diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c index 97844b5609..596596eb8a 100644 --- a/source3/torture/locktest2.c +++ b/source3/torture/locktest2.c @@ -22,6 +22,8 @@ #include "includes.h" +#include "module_dummy.h" + static fstring password; static fstring username; static int got_pass; diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index 06dead3f16..a4da1baff2 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -22,6 +22,8 @@ #include "includes.h" +#include "module_dummy.h" + static fstring password; static fstring username; static int got_pass; diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c index 8abb0a20d2..091b6337ab 100644 --- a/source3/torture/msgtest.c +++ b/source3/torture/msgtest.c @@ -25,6 +25,8 @@ #include "includes.h" +#include "module_dummy.h" + static int pong_count; /**************************************************************************** diff --git a/source3/torture/nsstest.c b/source3/torture/nsstest.c index a82fa05203..27b77e2a83 100644 --- a/source3/torture/nsstest.c +++ b/source3/torture/nsstest.c @@ -20,6 +20,8 @@ #include "includes.h" +#include "module_dummy.h" + static const char *so_path = "/lib/libnss_winbind.so"; static const char *nss_name = "winbind"; static int nss_errno; diff --git a/source3/torture/rpctorture.c b/source3/torture/rpctorture.c index 086f8d5d33..e88a39a483 100644 --- a/source3/torture/rpctorture.c +++ b/source3/torture/rpctorture.c @@ -20,6 +20,8 @@ #include "includes.h" +#include "module_dummy.h" + #ifndef REGISTER #define REGISTER 0 #endif diff --git a/source3/torture/smbiconv.c b/source3/torture/smbiconv.c index ce21a09025..613082225a 100644 --- a/source3/torture/smbiconv.c +++ b/source3/torture/smbiconv.c @@ -23,6 +23,8 @@ #include "includes.h" +#include "module_dummy.h" + static int process_block (smb_iconv_t cd, char *addr, size_t len, FILE *output) { diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 07d7f1547e..4141b29cc2 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -22,6 +22,8 @@ #include "includes.h" +#include "module_dummy.h" + static fstring host, workgroup, share, password, username, myname; static int max_protocol = PROTOCOL_NT1; static const char *sockops="TCP_NODELAY"; diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c index 3b28a3c496..d6b84126a0 100644 --- a/source3/torture/vfstest.c +++ b/source3/torture/vfstest.c @@ -27,6 +27,12 @@ #include "includes.h" #include "vfstest.h" +#define HAVE_SMB_REGISTER_AUTH +#define HAVE_SMB_REGISTER_PASSDB +#define HAVE_RPC_PIPE_REGISTER_COMMANDS +#define HAVE_SMB_REGISTER_VFS +#include "module_dummy.h" + /* List to hold groups of commands */ static struct cmd_list { struct cmd_list *prev, *next; |