diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 23:58:49 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-02 23:58:49 +0100 |
commit | b45caa44e1a563a3af42e39bd61ee4a2b74db14f (patch) | |
tree | 7192b08a17144b826a6b60bacf0317a7aabe5c1b /source4/torture | |
parent | 4147ad1e98f04627f9072784e69c72cd72ea206c (diff) | |
download | samba-b45caa44e1a563a3af42e39bd61ee4a2b74db14f.tar.gz samba-b45caa44e1a563a3af42e39bd61ee4a2b74db14f.tar.bz2 samba-b45caa44e1a563a3af42e39bd61ee4a2b74db14f.zip |
Fix the build.
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/mgmt.c | 2 | ||||
-rw-r--r-- | source4/torture/smbtorture.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c index fed432f31c..7f618ab776 100644 --- a/source4/torture/rpc/mgmt.c +++ b/source4/torture/rpc/mgmt.c @@ -128,7 +128,7 @@ static bool test_inq_princ_name(struct dcerpc_pipe *p, continue; } if (W_ERROR_IS_OK(r.out.result)) { - const char *name = gensec_get_name_by_authtype(i); + const char *name = gensec_get_name_by_authtype(NULL, i); ret = true; if (name) { printf("\tprinciple name for proto %u (%s) is '%s'\n", diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c index bfe6d0503d..0c2c8c0f6b 100644 --- a/source4/torture/smbtorture.c +++ b/source4/torture/smbtorture.c @@ -33,6 +33,7 @@ #include "torture/smbtorture.h" #include "../lib/util/dlinklist.h" #include "librpc/rpc/dcerpc.h" +#include "auth/gensec/gensec.h" #include "param/param.h" #include "auth/credentials/credentials.h" @@ -648,6 +649,8 @@ int main(int argc,char *argv[]) torture->lp_ctx = cmdline_lp_ctx; + gensec_init(cmdline_lp_ctx); + if (argc_new == 0) { printf("You must specify a test to run, or 'ALL'\n"); } else if (shell) { |