summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-12 21:47:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:12 -0500
commit38a472c994b5c4a02632bf55a044dfc12cf694fd (patch)
treeb76f59d3c0a48a64dbeaaa2bff56e98611895eab /source4/auth/gensec
parent6f733591330818fd3f7b79806098548fe7de650e (diff)
downloadsamba-38a472c994b5c4a02632bf55a044dfc12cf694fd.tar.gz
samba-38a472c994b5c4a02632bf55a044dfc12cf694fd.tar.bz2
samba-38a472c994b5c4a02632bf55a044dfc12cf694fd.zip
r20135: attach default gensec features to the cli_credentials structure,
so make it possible to force encryption or signing. metze (This used to be commit a91dc4a02a46370c52f59cbd4dea9580fa6efafa)
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/gensec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c
index 8c97a871ad..57bc1c6b5a 100644
--- a/source4/auth/gensec/gensec.c
+++ b/source4/auth/gensec/gensec.c
@@ -1047,6 +1047,8 @@ _PUBLIC_ BOOL gensec_have_feature(struct gensec_security *gensec_security,
_PUBLIC_ NTSTATUS gensec_set_credentials(struct gensec_security *gensec_security, struct cli_credentials *credentials)
{
gensec_security->credentials = talloc_reference(gensec_security, credentials);
+ NT_STATUS_HAVE_NO_MEMORY(gensec_security->credentials);
+ gensec_want_feature(gensec_security, cli_credentials_get_gensec_features(gensec_security->credentials));
return NT_STATUS_OK;
}