oid = GENSEC_OID_SPNEGO;
nt_status = gensec_start_mech_by_oid(gensec_security, oid);
-
+
+ gensec_set_max_update_size(gensec_security, 1024);
+
if (NT_STATUS_IS_OK(nt_status)) {
/* Get and push the proposed OID list into the packets */
nt_status = gensec_update(gensec_security, req, req->smb_conn->connection->event.ctx, null_data_blob, &blob);
goto failed;
}
+ gensec_set_max_update_size(gensec_security, req->smb_conn->negotiate.max_send);
+
/* allocate a new session */
smb_sess = smbsrv_session_new(req->smb_conn, req->smb_conn, gensec_ctx);
if (!smb_sess) {
return nt_status;
}
+ gensec_set_max_update_size(gensec_security, UINT16_MAX);
+
nt_status = gensec_update(gensec_security, req, req->smb_conn->connection->event.ctx, null_data_blob, &blob);
if (!NT_STATUS_IS_OK(nt_status) && !NT_STATUS_EQUAL(nt_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
DEBUG(0, ("Failed to get SPNEGO to give us the first token: %s\n", nt_errstr(nt_status)));
goto failed;
}
+ gensec_set_max_update_size(gensec_security, UINT16_MAX);
+
/* allocate a new session */
smb_sess = smbsrv_session_new(req->smb_conn, req->smb_conn, gensec_ctx);
if (!smb_sess) {