diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-05-13 07:59:41 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-05-14 23:25:45 +1000 |
commit | b5dc39496272cbccdd45152f349362c2b779c326 (patch) | |
tree | a4792955392e6a1ac3a319eb0f2a486c3ed2f97f /source4/auth/gensec/gensec.c | |
parent | 8da50c8da1527bafbb0ff4e86cc12fb54dd2b4b7 (diff) | |
download | samba-b5dc39496272cbccdd45152f349362c2b779c326.tar.gz samba-b5dc39496272cbccdd45152f349362c2b779c326.tar.bz2 samba-b5dc39496272cbccdd45152f349362c2b779c326.zip |
s4:gensec expose gensec_set_target_principal for use outside GENSEC
This allows for the rare case where the caller knows the target
principal. The check for lp_client_use_spnego_principal() is moved to
the spengo code to make this work.
Andrew Bartlett
Diffstat (limited to 'source4/auth/gensec/gensec.c')
-rw-r--r-- | source4/auth/gensec/gensec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec.c b/source4/auth/gensec/gensec.c index b532c1502d..c19d5ff5d5 100644 --- a/source4/auth/gensec/gensec.c +++ b/source4/auth/gensec/gensec.c @@ -1302,7 +1302,7 @@ _PUBLIC_ const struct tsocket_address *gensec_get_remote_address(struct gensec_s * */ -NTSTATUS gensec_set_target_principal(struct gensec_security *gensec_security, const char *principal) +_PUBLIC_ NTSTATUS gensec_set_target_principal(struct gensec_security *gensec_security, const char *principal) { gensec_security->target.principal = talloc_strdup(gensec_security, principal); if (!gensec_security->target.principal) { |