summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-07-06 00:22:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:51 -0500
commit1828f5d50696682be5f81408fe3cc0dd44d8406e (patch)
tree3ccd5bb67718f66642cb47ccfbba7acbf1d1fea7 /source4
parentfff5d40ab5f23b9ca8c2c38b3f962ade4c02de2c (diff)
downloadsamba-1828f5d50696682be5f81408fe3cc0dd44d8406e.tar.gz
samba-1828f5d50696682be5f81408fe3cc0dd44d8406e.tar.bz2
samba-1828f5d50696682be5f81408fe3cc0dd44d8406e.zip
r1348: get gensec backend by OID instead of name
metze (This used to be commit 38e00f87191b86901b603e66aec1e7e71f74c29f)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/auth/gensec.c11
-rw-r--r--source4/libcli/raw/clisession.c2
2 files changed, 1 insertions, 12 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c
index 8ece7c76dc..f6d6db9e62 100644
--- a/source4/libcli/auth/gensec.c
+++ b/source4/libcli/auth/gensec.c
@@ -162,17 +162,6 @@ static NTSTATUS gensec_start_mech(struct gensec_security *gensec_security)
return NT_STATUS_INVALID_PARAMETER;
}
-NTSTATUS gensec_start_mech_by_name(struct gensec_security *gensec_security,
- const char *name)
-{
- gensec_security->ops = gensec_security_by_name(name);
- if (!gensec_security->ops) {
- DEBUG(1, ("Could not find GENSEC backend for name=%s\n", name));
- return NT_STATUS_INVALID_PARAMETER;
- }
- return gensec_start_mech(gensec_security);
-}
-
NTSTATUS gensec_start_mech_by_authtype(struct gensec_security *gensec_security,
uint8_t authtype)
{
diff --git a/source4/libcli/raw/clisession.c b/source4/libcli/raw/clisession.c
index 7ff5db59c3..fd6737eeb7 100644
--- a/source4/libcli/raw/clisession.c
+++ b/source4/libcli/raw/clisession.c
@@ -421,7 +421,7 @@ static NTSTATUS smb_raw_session_setup_generic_spnego(struct cli_session *session
goto done;
}
- status = gensec_start_mech_by_name(session->gensec, "spnego");
+ status = gensec_start_mech_by_oid(session->gensec, OID_SPNEGO);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("Failed to start set GENSEC client SPNEGO mechanism: %s\n",
nt_errstr(status)));