diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-24 01:14:26 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-12 13:15:08 +0100 |
commit | 6eea2c33c797065f7b189d32648d2cfde5d2e3b9 (patch) | |
tree | 9e4e714d6a7a1c65b714891ea1a2c192a435288e /auth/gensec/gensec_start.c | |
parent | 17986097a39bf2479f244abf40acafa84dfbcd1d (diff) | |
download | samba-6eea2c33c797065f7b189d32648d2cfde5d2e3b9.tar.gz samba-6eea2c33c797065f7b189d32648d2cfde5d2e3b9.tar.xz samba-6eea2c33c797065f7b189d32648d2cfde5d2e3b9.zip |
auth/gensec: add gensec_*max_update_size()
This is only a hint for the backend, which may want to fragment
update tokens.
metze
Diffstat (limited to 'auth/gensec/gensec_start.c')
-rw-r--r-- | auth/gensec/gensec_start.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c index 9576e53ec6..b09a76b345 100644 --- a/auth/gensec/gensec_start.c +++ b/auth/gensec/gensec_start.c @@ -518,6 +518,8 @@ static NTSTATUS gensec_start(TALLOC_CTX *mem_ctx, (*gensec_security) = talloc_zero(mem_ctx, struct gensec_security); NT_STATUS_HAVE_NO_MEMORY(*gensec_security); + (*gensec_security)->max_update_size = UINT32_MAX; + SMB_ASSERT(settings->lp_ctx != NULL); (*gensec_security)->settings = talloc_reference(*gensec_security, settings); @@ -550,6 +552,7 @@ _PUBLIC_ NTSTATUS gensec_subcontext_start(TALLOC_CTX *mem_ctx, (*gensec_security)->subcontext = true; (*gensec_security)->want_features = parent->want_features; + (*gensec_security)->max_update_size = parent->max_update_size; (*gensec_security)->dcerpc_auth_level = parent->dcerpc_auth_level; (*gensec_security)->auth_context = talloc_reference(*gensec_security, parent->auth_context); (*gensec_security)->settings = talloc_reference(*gensec_security, parent->settings); |