state              47 lib/async_req/async_req.c 			       "priv=%s", req->state, (int)req->error,
state              68 lib/async_req/async_req.c 	result->state = ASYNC_REQ_IN_PROGRESS;
state              75 lib/async_req/async_req.c 	req->state = state;
state             187 lib/async_req/async_req.c 	if (req->state == ASYNC_REQ_DONE) {
state             190 lib/async_req/async_req.c 	if (req->state == ASYNC_REQ_USER_ERROR) {
state             193 lib/async_req/async_req.c 	*state = req->state;
state             279 lib/async_req/async_req.c 	void *state;
state             285 lib/async_req/async_req.c 	state = talloc_size(req, state_size);
state             286 lib/async_req/async_req.c 	if (state == NULL) {
state             290 lib/async_req/async_req.c 	talloc_set_name_const(state, typename);
state             291 lib/async_req/async_req.c 	req->private_data = state;
state             294 lib/async_req/async_req.c 	*ppstate = state;
state              79 lib/async_req/async_req.h 	enum async_req_state state;
state              39 lib/async_req/async_req_ntstatus.c 	enum async_req_state state;
state              42 lib/async_req/async_req_ntstatus.c 	if (!async_req_is_error(req, &state, &error)) {
state              45 lib/async_req/async_req_ntstatus.c 	switch (state) {
state              42 lib/async_req/async_sock.c 	enum async_req_state state;
state              45 lib/async_req/async_sock.c 	if (!async_req_is_error(req, &state, &error)) {
state              49 lib/async_req/async_sock.c 	switch (state) {
state              99 lib/async_req/async_sock.c 	struct async_send_state *state;
state             102 lib/async_req/async_sock.c 	result = tevent_req_create(mem_ctx, &state, struct async_send_state);
state             106 lib/async_req/async_sock.c 	state->fd = fd;
state             107 lib/async_req/async_sock.c 	state->buf = buf;
state             108 lib/async_req/async_sock.c 	state->len = len;
state             109 lib/async_req/async_sock.c 	state->flags = flags;
state             111 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_WRITE, async_send_handler,
state             126 lib/async_req/async_sock.c 	struct async_send_state *state =
state             129 lib/async_req/async_sock.c 	state->sent = send(state->fd, state->buf, state->len, state->flags);
state             130 lib/async_req/async_sock.c 	if (state->sent == -1) {
state             139 lib/async_req/async_sock.c 	struct async_send_state *state =
state             145 lib/async_req/async_sock.c 	return state->sent;
state             165 lib/async_req/async_sock.c 	struct async_recv_state *state;
state             168 lib/async_req/async_sock.c 	result = tevent_req_create(mem_ctx, &state, struct async_recv_state);
state             172 lib/async_req/async_sock.c 	state->fd = fd;
state             173 lib/async_req/async_sock.c 	state->buf = buf;
state             174 lib/async_req/async_sock.c 	state->len = len;
state             175 lib/async_req/async_sock.c 	state->flags = flags;
state             177 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, async_recv_handler,
state             192 lib/async_req/async_sock.c 	struct async_recv_state *state =
state             195 lib/async_req/async_sock.c 	state->received = recv(state->fd, state->buf, state->len,
state             196 lib/async_req/async_sock.c 			       state->flags);
state             197 lib/async_req/async_sock.c 	if (state->received == -1) {
state             206 lib/async_req/async_sock.c 	struct async_recv_state *state =
state             212 lib/async_req/async_sock.c 	return state->received;
state             245 lib/async_req/async_sock.c 	struct async_connect_state *state;
state             249 lib/async_req/async_sock.c 		mem_ctx, &state, struct async_connect_state);
state             259 lib/async_req/async_sock.c 	state->fd = fd;
state             260 lib/async_req/async_sock.c 	state->sys_errno = 0;
state             262 lib/async_req/async_sock.c 	state->old_sockflags = fcntl(fd, F_GETFL, 0);
state             263 lib/async_req/async_sock.c 	if (state->old_sockflags == -1) {
state             269 lib/async_req/async_sock.c 	state->result = connect(fd, address, address_len);
state             270 lib/async_req/async_sock.c 	if (state->result == 0) {
state             287 lib/async_req/async_sock.c 		state->sys_errno = errno;
state             291 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ | TEVENT_FD_WRITE,
state             294 lib/async_req/async_sock.c 		state->sys_errno = ENOMEM;
state             300 lib/async_req/async_sock.c 	tevent_req_error(result, state->sys_errno);
state             302 lib/async_req/async_sock.c 	fcntl(fd, F_SETFL, state->old_sockflags);
state             320 lib/async_req/async_sock.c 	struct async_connect_state *state =
state             335 lib/async_req/async_sock.c 		if (getsockopt(state->fd, SOL_SOCKET, SO_ERROR,
state             340 lib/async_req/async_sock.c 		state->sys_errno = errno;
state             344 lib/async_req/async_sock.c 		fcntl(state->fd, F_SETFL, state->old_sockflags);
state             345 lib/async_req/async_sock.c 		tevent_req_error(req, state->sys_errno);
state             349 lib/async_req/async_sock.c 	state->sys_errno = 0;
state             355 lib/async_req/async_sock.c 	struct async_connect_state *state =
state             359 lib/async_req/async_sock.c 	fcntl(state->fd, F_SETFL, state->old_sockflags);
state             366 lib/async_req/async_sock.c 	if (state->sys_errno == 0) {
state             370 lib/async_req/async_sock.c 	*perrno = state->sys_errno;
state             391 lib/async_req/async_sock.c 	struct writev_state *state;
state             393 lib/async_req/async_sock.c 	result = tevent_req_create(mem_ctx, &state, struct writev_state);
state             397 lib/async_req/async_sock.c 	state->ev = ev;
state             398 lib/async_req/async_sock.c 	state->fd = fd;
state             399 lib/async_req/async_sock.c 	state->total_size = 0;
state             400 lib/async_req/async_sock.c 	state->count = count;
state             401 lib/async_req/async_sock.c 	state->iov = (struct iovec *)talloc_memdup(
state             402 lib/async_req/async_sock.c 		state, iov, sizeof(struct iovec) * count);
state             403 lib/async_req/async_sock.c 	if (state->iov == NULL) {
state             418 lib/async_req/async_sock.c 	struct writev_state *state = tevent_req_data(req, struct writev_state);
state             421 lib/async_req/async_sock.c 	fde = tevent_add_fd(state->ev, state, state->fd, TEVENT_FD_WRITE,
state             433 lib/async_req/async_sock.c 	struct writev_state *state =
state             440 lib/async_req/async_sock.c 	for (i=0; i<state->count; i++) {
state             441 lib/async_req/async_sock.c 		to_write += state->iov[i].iov_len;
state             444 lib/async_req/async_sock.c 	written = sys_writev(state->fd, state->iov, state->count);
state             453 lib/async_req/async_sock.c 	state->total_size += written;
state             466 lib/async_req/async_sock.c 		if (written < state->iov[0].iov_len) {
state             467 lib/async_req/async_sock.c 			state->iov[0].iov_base =
state             468 lib/async_req/async_sock.c 				(char *)state->iov[0].iov_base + written;
state             469 lib/async_req/async_sock.c 			state->iov[0].iov_len -= written;
state             472 lib/async_req/async_sock.c 		written -= state->iov[0].iov_len;
state             473 lib/async_req/async_sock.c 		state->iov += 1;
state             474 lib/async_req/async_sock.c 		state->count -= 1;
state             480 lib/async_req/async_sock.c 	struct writev_state *state =
state             486 lib/async_req/async_sock.c 	return state->total_size;
state             510 lib/async_req/async_sock.c 	struct read_packet_state *state;
state             513 lib/async_req/async_sock.c 	result = tevent_req_create(mem_ctx, &state, struct read_packet_state);
state             517 lib/async_req/async_sock.c 	state->fd = fd;
state             518 lib/async_req/async_sock.c 	state->nread = 0;
state             519 lib/async_req/async_sock.c 	state->more = more;
state             520 lib/async_req/async_sock.c 	state->private_data = private_data;
state             522 lib/async_req/async_sock.c 	state->buf = talloc_array(state, uint8_t, initial);
state             523 lib/async_req/async_sock.c 	if (state->buf == NULL) {
state             527 lib/async_req/async_sock.c 	fde = tevent_add_fd(ev, state, fd, TEVENT_FD_READ, read_packet_handler,
state             544 lib/async_req/async_sock.c 	struct read_packet_state *state =
state             546 lib/async_req/async_sock.c 	size_t total = talloc_get_size(state->buf);
state             550 lib/async_req/async_sock.c 	nread = recv(state->fd, state->buf+state->nread, total-state->nread,
state             561 lib/async_req/async_sock.c 	state->nread += nread;
state             562 lib/async_req/async_sock.c 	if (state->nread < total) {
state             570 lib/async_req/async_sock.c 	if (state->more == NULL) {
state             576 lib/async_req/async_sock.c 	more = state->more(state->buf, total, state->private_data);
state             588 lib/async_req/async_sock.c 	tmp = TALLOC_REALLOC_ARRAY(state, state->buf, uint8_t, total+more);
state             592 lib/async_req/async_sock.c 	state->buf = tmp;
state             598 lib/async_req/async_sock.c 	struct read_packet_state *state =
state             604 lib/async_req/async_sock.c 	*pbuf = talloc_move(mem_ctx, &state->buf);
state              30 lib/crypto/arcfour.c 	for (ind = 0; ind < sizeof(state->sbox); ind++) {
state              31 lib/crypto/arcfour.c 		state->sbox[ind] = (uint8_t)ind;
state              34 lib/crypto/arcfour.c 	for (ind = 0; ind < sizeof(state->sbox); ind++) {
state              37 lib/crypto/arcfour.c 		j += (state->sbox[ind] + key->data[ind%key->length]);
state              39 lib/crypto/arcfour.c 		tc = state->sbox[ind];
state              40 lib/crypto/arcfour.c 		state->sbox[ind] = state->sbox[j];
state              41 lib/crypto/arcfour.c 		state->sbox[j] = tc;
state              43 lib/crypto/arcfour.c 	state->index_i = 0;
state              44 lib/crypto/arcfour.c 	state->index_j = 0;
state              56 lib/crypto/arcfour.c 		state->index_i++;
state              57 lib/crypto/arcfour.c 		state->index_j += state->sbox[state->index_i];
state              59 lib/crypto/arcfour.c 		tc = state->sbox[state->index_i];
state              60 lib/crypto/arcfour.c 		state->sbox[state->index_i] = state->sbox[state->index_j];
state              61 lib/crypto/arcfour.c 		state->sbox[state->index_j] = tc;
state              63 lib/crypto/arcfour.c 		t = state->sbox[state->index_i] + state->sbox[state->index_j];
state              64 lib/crypto/arcfour.c 		data[ind] = data[ind] ^ state->sbox[t];
state              73 lib/crypto/arcfour.c 	struct arcfour_state state;
state              74 lib/crypto/arcfour.c 	arcfour_init(&state, key);
state              75 lib/crypto/arcfour.c 	arcfour_crypt_sbox(&state, data, len);
state             136 lib/crypto/md4.c 	struct mdfour_state state;
state             138 lib/crypto/md4.c 	state.A = 0x67452301;
state             139 lib/crypto/md4.c 	state.B = 0xefcdab89;
state             140 lib/crypto/md4.c 	state.C = 0x98badcfe;
state             141 lib/crypto/md4.c 	state.D = 0x10325476;
state             145 lib/crypto/md4.c 		mdfour64(&state, M);
state             158 lib/crypto/md4.c 		mdfour64(&state, M);
state             162 lib/crypto/md4.c 		mdfour64(&state, M);
state             164 lib/crypto/md4.c 		mdfour64(&state, M);
state             171 lib/crypto/md4.c 	copy4(out, state.A);
state             172 lib/crypto/md4.c 	copy4(out+4, state.B);
state             173 lib/crypto/md4.c 	copy4(out+8, state.C);
state             174 lib/crypto/md4.c 	copy4(out+12, state.D);
state             243 lib/replace/snprintf.c 	int state;
state             258 lib/replace/snprintf.c 	state = DP_S_DEFAULT;
state             268 lib/replace/snprintf.c 	while (state != DP_S_DONE) {
state             270 lib/replace/snprintf.c 			state = DP_S_DONE;
state             272 lib/replace/snprintf.c 		switch(state) {
state             285 lib/replace/snprintf.c 				state = DP_S_FLAGS;
state             321 lib/replace/snprintf.c 				state = DP_S_MIN;
state             369 lib/replace/snprintf.c 				state = DP_S_DOT;
state             372 lib/replace/snprintf.c 				state = DP_S_DOT;
state             377 lib/replace/snprintf.c 				state = DP_S_MAX;
state             380 lib/replace/snprintf.c 				state = DP_S_MOD;
state             425 lib/replace/snprintf.c 				state = DP_S_MOD;
state             427 lib/replace/snprintf.c 				state = DP_S_MOD;
state             459 lib/replace/snprintf.c 			state = DP_S_CONV;
state             519 lib/replace/snprintf.c 			state = DP_S_DEFAULT;
state             819 lib/tdb/common/tdb.c 	struct traverse_state *state = (struct traverse_state *)private;
state             820 lib/tdb/common/tdb.c 	if (tdb_store(state->dest_db, key, data, TDB_INSERT) != 0) {
state             821 lib/tdb/common/tdb.c 		state->error = true;
state             833 lib/tdb/common/tdb.c 	struct traverse_state state;
state             847 lib/tdb/common/tdb.c 	state.error = false;
state             848 lib/tdb/common/tdb.c 	state.dest_db = tmp_db;
state             850 lib/tdb/common/tdb.c 	if (tdb_traverse_read(tdb, repack_traverse, &state) == -1) {
state             857 lib/tdb/common/tdb.c 	if (state.error) {
state             871 lib/tdb/common/tdb.c 	state.error = false;
state             872 lib/tdb/common/tdb.c 	state.dest_db = tdb;
state             874 lib/tdb/common/tdb.c 	if (tdb_traverse_read(tmp_db, repack_traverse, &state) == -1) {
state             881 lib/tdb/common/tdb.c 	if (state.error) {
state              71 lib/tdb/tools/tdbbackup.c 	TDB_CONTEXT *tdb_new = (TDB_CONTEXT *)state;
state             128 lib/tevent/tevent_internal.h 		enum tevent_req_state state;
state              47 lib/tevent/tevent_req.c 			       req->internal.state,
state             100 lib/tevent/tevent_req.c 	req->internal.state		= TEVENT_REQ_IN_PROGRESS;
state             132 lib/tevent/tevent_req.c 	req->internal.state = state;
state             233 lib/tevent/tevent_req.c 	tevent_req_finish(req, req->internal.state,
state             271 lib/tevent/tevent_req.c 	if (req->internal.state == TEVENT_REQ_IN_PROGRESS) {
state             293 lib/tevent/tevent_req.c 	req->internal.state = TEVENT_REQ_RECEIVED;
state             331 lib/tevent/tevent_req.c 	if (req->internal.state == TEVENT_REQ_DONE) {
state             334 lib/tevent/tevent_req.c 	if (req->internal.state == TEVENT_REQ_USER_ERROR) {
state             337 lib/tevent/tevent_req.c 	*state = req->internal.state;
state              39 lib/tevent/tevent_wakeup.c 	struct tevent_wakeup_state *state;
state              41 lib/tevent/tevent_wakeup.c 	req = tevent_req_create(mem_ctx, &state,
state              46 lib/tevent/tevent_wakeup.c 	state->wakeup_time = wakeup_time;
state              59 lib/tevent/tevent_wakeup.c 	enum tevent_req_state state;
state              62 lib/tevent/tevent_wakeup.c 	if (tevent_req_is_error(req, &state, &error)) {
state              63 lib/tevent/tevent_wakeup.c 		if (state == TEVENT_REQ_TIMED_OUT) {
state              53 lib/util/debug.c } state;
state              58 lib/util/debug.c 	if (state.fd == 0 || reopen_logs_scheduled) {
state              63 lib/util/debug.c 	if (state.fd <= 0) 
state              81 lib/util/debug.c 	if (state.logtype != DEBUG_FILE) return;
state              90 lib/util/debug.c 	write(state.fd, s, strlen(s));
state             129 lib/util/debug.c 	write(state.fd, s, strlen(s));
state             141 lib/util/debug.c 	int old_fd = state.fd;
state             143 lib/util/debug.c 	switch (state.logtype) {
state             145 lib/util/debug.c 		state.fd = 1;
state             149 lib/util/debug.c 		state.fd = 2;
state             156 lib/util/debug.c 			asprintf(&fname, "%s/%s.log", dyn_LOGFILEBASE, state.prog_name);
state             164 lib/util/debug.c 				state.fd = newfd;
state             185 lib/util/debug.c 	if (state.logtype < new_logtype) {
state             186 lib/util/debug.c 		state.logtype = new_logtype;
state             189 lib/util/debug.c 		state.prog_name = prog_name;
state             242 lib/util/debug.c 	debug_handlers.ops.log_task_id(state.fd);
state              30 lib/util/tevent_ntstatus.c 	enum tevent_req_state state;
state              33 lib/util/tevent_ntstatus.c 	if (!tevent_req_is_error(req, &state, &err)) {
state              36 lib/util/tevent_ntstatus.c 	switch (state) {
state              25 lib/util/tevent_unix.c 	enum tevent_req_state state;
state              28 lib/util/tevent_unix.c 	if (!tevent_req_is_error(req, &state, &err)) {
state              31 lib/util/tevent_unix.c 	switch (state) {
state             379 lib/zlib/contrib/blast/blast.c     struct state s;             /* input/output state */
state              25 lib/zlib/contrib/infback9/infback9.c     struct inflate_state FAR *state;
state              38 lib/zlib/contrib/infback9/infback9.c     state = (struct inflate_state FAR *)ZALLOC(strm, 1,
state              40 lib/zlib/contrib/infback9/infback9.c     if (state == Z_NULL) return Z_MEM_ERROR;
state              42 lib/zlib/contrib/infback9/infback9.c     strm->state = (voidpf)state;
state              43 lib/zlib/contrib/infback9/infback9.c     state->window = window;
state              58 lib/zlib/contrib/infback9/infback9.c     struct inflate_state state;
state              63 lib/zlib/contrib/infback9/infback9.c     while (sym < 144) state.lens[sym++] = 8;
state              64 lib/zlib/contrib/infback9/infback9.c     while (sym < 256) state.lens[sym++] = 9;
state              65 lib/zlib/contrib/infback9/infback9.c     while (sym < 280) state.lens[sym++] = 7;
state              66 lib/zlib/contrib/infback9/infback9.c     while (sym < 288) state.lens[sym++] = 8;
state              70 lib/zlib/contrib/infback9/infback9.c     inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work);
state              74 lib/zlib/contrib/infback9/infback9.c     while (sym < 32) state.lens[sym++] = 5;
state              77 lib/zlib/contrib/infback9/infback9.c     inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work);
state             224 lib/zlib/contrib/infback9/infback9.c     struct inflate_state FAR *state;
state             254 lib/zlib/contrib/infback9/infback9.c     if (strm == Z_NULL || strm->state == Z_NULL)
state             256 lib/zlib/contrib/infback9/infback9.c     state = (struct inflate_state FAR *)strm->state;
state             264 lib/zlib/contrib/infback9/infback9.c     window = state->window;
state             349 lib/zlib/contrib/infback9/infback9.c             state->nlen = BITS(5) + 257;
state             351 lib/zlib/contrib/infback9/infback9.c             state->ndist = BITS(5) + 1;
state             353 lib/zlib/contrib/infback9/infback9.c             state->ncode = BITS(4) + 4;
state             355 lib/zlib/contrib/infback9/infback9.c             if (state->nlen > 286) {
state             363 lib/zlib/contrib/infback9/infback9.c             state->have = 0;
state             364 lib/zlib/contrib/infback9/infback9.c             while (state->have < state->ncode) {
state             366 lib/zlib/contrib/infback9/infback9.c                 state->lens[order[state->have++]] = (unsigned short)BITS(3);
state             369 lib/zlib/contrib/infback9/infback9.c             while (state->have < 19)
state             370 lib/zlib/contrib/infback9/infback9.c                 state->lens[order[state->have++]] = 0;
state             371 lib/zlib/contrib/infback9/infback9.c             state->next = state->codes;
state             372 lib/zlib/contrib/infback9/infback9.c             lencode = (code const FAR *)(state->next);
state             374 lib/zlib/contrib/infback9/infback9.c             ret = inflate_table9(CODES, state->lens, 19, &(state->next),
state             375 lib/zlib/contrib/infback9/infback9.c                                 &(lenbits), state->work);
state             384 lib/zlib/contrib/infback9/infback9.c             state->have = 0;
state             385 lib/zlib/contrib/infback9/infback9.c             while (state->have < state->nlen + state->ndist) {
state             394 lib/zlib/contrib/infback9/infback9.c                     state->lens[state->have++] = this.val;
state             400 lib/zlib/contrib/infback9/infback9.c                         if (state->have == 0) {
state             405 lib/zlib/contrib/infback9/infback9.c                         len = (unsigned)(state->lens[state->have - 1]);
state             423 lib/zlib/contrib/infback9/infback9.c                     if (state->have + copy > state->nlen + state->ndist) {
state             429 lib/zlib/contrib/infback9/infback9.c                         state->lens[state->have++] = (unsigned short)len;
state             437 lib/zlib/contrib/infback9/infback9.c             state->next = state->codes;
state             438 lib/zlib/contrib/infback9/infback9.c             lencode = (code const FAR *)(state->next);
state             440 lib/zlib/contrib/infback9/infback9.c             ret = inflate_table9(LENS, state->lens, state->nlen,
state             441 lib/zlib/contrib/infback9/infback9.c                             &(state->next), &(lenbits), state->work);
state             447 lib/zlib/contrib/infback9/infback9.c             distcode = (code const FAR *)(state->next);
state             449 lib/zlib/contrib/infback9/infback9.c             ret = inflate_table9(DISTS, state->lens + state->nlen,
state             450 lib/zlib/contrib/infback9/infback9.c                             state->ndist, &(state->next), &(distbits),
state             451 lib/zlib/contrib/infback9/infback9.c                             state->work);
state             602 lib/zlib/contrib/infback9/infback9.c     if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
state             604 lib/zlib/contrib/infback9/infback9.c     ZFREE(strm, strm->state);
state             605 lib/zlib/contrib/infback9/infback9.c     strm->state = Z_NULL;
state              75 lib/zlib/contrib/inflate86/inffas86.c     struct inflate_state FAR *state;
state             109 lib/zlib/contrib/inflate86/inffas86.c     state = (struct inflate_state FAR *)strm->state;
state             115 lib/zlib/contrib/inflate86/inffas86.c     ar.wsize = state->wsize;
state             116 lib/zlib/contrib/inflate86/inffas86.c     ar.write = state->write;
state             117 lib/zlib/contrib/inflate86/inffas86.c     ar.window = state->window;
state             118 lib/zlib/contrib/inflate86/inffas86.c     ar.hold = state->hold;
state             119 lib/zlib/contrib/inflate86/inffas86.c     ar.bits = state->bits;
state             120 lib/zlib/contrib/inflate86/inffas86.c     ar.lcode = state->lencode;
state             121 lib/zlib/contrib/inflate86/inffas86.c     ar.dcode = state->distcode;
state             122 lib/zlib/contrib/inflate86/inffas86.c     ar.lmask = (1U << state->lenbits) - 1;
state             123 lib/zlib/contrib/inflate86/inffas86.c     ar.dmask = (1U << state->distbits) - 1;
state            1132 lib/zlib/contrib/inflate86/inffas86.c         state->mode = BAD;
state            1135 lib/zlib/contrib/inflate86/inffas86.c         state->mode = TYPE;
state            1153 lib/zlib/contrib/inflate86/inffas86.c     state->hold = ar.hold;
state            1154 lib/zlib/contrib/inflate86/inffas86.c     state->bits = ar.bits;
state             110 lib/zlib/contrib/masmx64/inffas8664.c     struct inflate_state FAR *state;
state             125 lib/zlib/contrib/masmx64/inffas8664.c     state = (struct inflate_state FAR *)strm->state;
state             132 lib/zlib/contrib/masmx64/inffas8664.c     ar.wsize = state->wsize;
state             133 lib/zlib/contrib/masmx64/inffas8664.c     ar.write = state->write;
state             134 lib/zlib/contrib/masmx64/inffas8664.c     ar.window = state->window;
state             135 lib/zlib/contrib/masmx64/inffas8664.c     ar.hold = state->hold;
state             136 lib/zlib/contrib/masmx64/inffas8664.c     ar.bits = state->bits;
state             137 lib/zlib/contrib/masmx64/inffas8664.c     ar.lcode = state->lencode;
state             138 lib/zlib/contrib/masmx64/inffas8664.c     ar.dcode = state->distcode;
state             139 lib/zlib/contrib/masmx64/inffas8664.c     ar.lmask = (1U << state->lenbits) - 1;
state             140 lib/zlib/contrib/masmx64/inffas8664.c     ar.dmask = (1U << state->distbits) - 1;
state             160 lib/zlib/contrib/masmx64/inffas8664.c         state->mode = BAD;
state             163 lib/zlib/contrib/masmx64/inffas8664.c         state->mode = TYPE;
state             181 lib/zlib/contrib/masmx64/inffas8664.c     state->hold = (unsigned long)ar.hold;
state             182 lib/zlib/contrib/masmx64/inffas8664.c     state->bits = ar.bits;
state             745 lib/zlib/contrib/puff/puff.c     struct state s;             /* input/output state */
state             270 lib/zlib/deflate.c     strm->state = (struct internal_state FAR *)s;
state             322 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL || dictionary == Z_NULL ||
state             323 lib/zlib/deflate.c         strm->state->wrap == 2 ||
state             324 lib/zlib/deflate.c         (strm->state->wrap == 1 && strm->state->status != INIT_STATE))
state             327 lib/zlib/deflate.c     s = strm->state;
state             359 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL ||
state             368 lib/zlib/deflate.c     s = (deflate_state *)strm->state;
state             394 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             395 lib/zlib/deflate.c     if (strm->state->wrap != 2) return Z_STREAM_ERROR;
state             396 lib/zlib/deflate.c     strm->state->gzhead = head;
state             406 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             407 lib/zlib/deflate.c     strm->state->bi_valid = bits;
state             408 lib/zlib/deflate.c     strm->state->bi_buf = (ush)(value & ((1 << bits) - 1));
state             422 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             423 lib/zlib/deflate.c     s = strm->state;
state             460 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             461 lib/zlib/deflate.c     s = strm->state;
state             498 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL)
state             502 lib/zlib/deflate.c     s = strm->state;
state             532 lib/zlib/deflate.c     unsigned len = strm->state->pending;
state             537 lib/zlib/deflate.c     zmemcpy(strm->next_out, strm->state->pending_out, len);
state             539 lib/zlib/deflate.c     strm->state->pending_out  += len;
state             542 lib/zlib/deflate.c     strm->state->pending -= len;
state             543 lib/zlib/deflate.c     if (strm->state->pending == 0) {
state             544 lib/zlib/deflate.c         strm->state->pending_out = strm->state->pending_buf;
state             556 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL ||
state             560 lib/zlib/deflate.c     s = strm->state;
state             861 lib/zlib/deflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             863 lib/zlib/deflate.c     status = strm->state->status;
state             875 lib/zlib/deflate.c     TRY_FREE(strm, strm->state->pending_buf);
state             876 lib/zlib/deflate.c     TRY_FREE(strm, strm->state->head);
state             877 lib/zlib/deflate.c     TRY_FREE(strm, strm->state->prev);
state             878 lib/zlib/deflate.c     TRY_FREE(strm, strm->state->window);
state             880 lib/zlib/deflate.c     ZFREE(strm, strm->state);
state             881 lib/zlib/deflate.c     strm->state = Z_NULL;
state             903 lib/zlib/deflate.c     if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL) {
state             907 lib/zlib/deflate.c     ss = source->state;
state             913 lib/zlib/deflate.c     dest->state = (struct internal_state FAR *) ds;
state             965 lib/zlib/deflate.c     if (strm->state->wrap == 1) {
state             969 lib/zlib/deflate.c     else if (strm->state->wrap == 2) {
state             362 lib/zlib/gzio.c     if (s->stream.state != NULL) {
state              35 lib/zlib/infback.c     struct inflate_state FAR *state;
state              49 lib/zlib/infback.c     state = (struct inflate_state FAR *)ZALLOC(strm, 1,
state              51 lib/zlib/infback.c     if (state == Z_NULL) return Z_MEM_ERROR;
state              53 lib/zlib/infback.c     strm->state = (struct internal_state FAR *)state;
state              54 lib/zlib/infback.c     state->dmax = 32768U;
state              55 lib/zlib/infback.c     state->wbits = windowBits;
state              56 lib/zlib/infback.c     state->wsize = 1U << windowBits;
state              57 lib/zlib/infback.c     state->window = window;
state              58 lib/zlib/infback.c     state->write = 0;
state              59 lib/zlib/infback.c     state->whave = 0;
state              88 lib/zlib/infback.c         while (sym < 144) state->lens[sym++] = 8;
state              89 lib/zlib/infback.c         while (sym < 256) state->lens[sym++] = 9;
state              90 lib/zlib/infback.c         while (sym < 280) state->lens[sym++] = 7;
state              91 lib/zlib/infback.c         while (sym < 288) state->lens[sym++] = 8;
state              95 lib/zlib/infback.c         inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
state              99 lib/zlib/infback.c         while (sym < 32) state->lens[sym++] = 5;
state             102 lib/zlib/infback.c         inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
state             110 lib/zlib/infback.c     state->lencode = lenfix;
state             111 lib/zlib/infback.c     state->lenbits = 9;
state             112 lib/zlib/infback.c     state->distcode = distfix;
state             113 lib/zlib/infback.c     state->distbits = 5;
state             125 lib/zlib/infback.c         hold = state->hold; \
state             126 lib/zlib/infback.c         bits = state->bits; \
state             136 lib/zlib/infback.c         state->hold = hold; \
state             137 lib/zlib/infback.c         state->bits = bits; \
state             204 lib/zlib/infback.c             put = state->window; \
state             205 lib/zlib/infback.c             left = state->wsize; \
state             206 lib/zlib/infback.c             state->whave = left; \
state             248 lib/zlib/infback.c     struct inflate_state FAR *state;
state             264 lib/zlib/infback.c     if (strm == Z_NULL || strm->state == Z_NULL)
state             266 lib/zlib/infback.c     state = (struct inflate_state FAR *)strm->state;
state             270 lib/zlib/infback.c     state->mode = TYPE;
state             271 lib/zlib/infback.c     state->last = 0;
state             272 lib/zlib/infback.c     state->whave = 0;
state             277 lib/zlib/infback.c     put = state->window;
state             278 lib/zlib/infback.c     left = state->wsize;
state             282 lib/zlib/infback.c         switch (state->mode) {
state             285 lib/zlib/infback.c             if (state->last) {
state             287 lib/zlib/infback.c                 state->mode = DONE;
state             291 lib/zlib/infback.c             state->last = BITS(1);
state             296 lib/zlib/infback.c                         state->last ? " (last)" : ""));
state             297 lib/zlib/infback.c                 state->mode = STORED;
state             300 lib/zlib/infback.c                 fixedtables(state);
state             302 lib/zlib/infback.c                         state->last ? " (last)" : ""));
state             303 lib/zlib/infback.c                 state->mode = LEN;              /* decode codes */
state             307 lib/zlib/infback.c                         state->last ? " (last)" : ""));
state             308 lib/zlib/infback.c                 state->mode = TABLE;
state             312 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             323 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             326 lib/zlib/infback.c             state->length = (unsigned)hold & 0xffff;
state             328 lib/zlib/infback.c                     state->length));
state             332 lib/zlib/infback.c             while (state->length != 0) {
state             333 lib/zlib/infback.c                 copy = state->length;
state             343 lib/zlib/infback.c                 state->length -= copy;
state             346 lib/zlib/infback.c             state->mode = TYPE;
state             352 lib/zlib/infback.c             state->nlen = BITS(5) + 257;
state             354 lib/zlib/infback.c             state->ndist = BITS(5) + 1;
state             356 lib/zlib/infback.c             state->ncode = BITS(4) + 4;
state             359 lib/zlib/infback.c             if (state->nlen > 286 || state->ndist > 30) {
state             361 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             368 lib/zlib/infback.c             state->have = 0;
state             369 lib/zlib/infback.c             while (state->have < state->ncode) {
state             371 lib/zlib/infback.c                 state->lens[order[state->have++]] = (unsigned short)BITS(3);
state             374 lib/zlib/infback.c             while (state->have < 19)
state             375 lib/zlib/infback.c                 state->lens[order[state->have++]] = 0;
state             376 lib/zlib/infback.c             state->next = state->codes;
state             377 lib/zlib/infback.c             state->lencode = (code const FAR *)(state->next);
state             378 lib/zlib/infback.c             state->lenbits = 7;
state             379 lib/zlib/infback.c             ret = inflate_table(CODES, state->lens, 19, &(state->next),
state             380 lib/zlib/infback.c                                 &(state->lenbits), state->work);
state             383 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             389 lib/zlib/infback.c             state->have = 0;
state             390 lib/zlib/infback.c             while (state->have < state->nlen + state->ndist) {
state             392 lib/zlib/infback.c                     this = state->lencode[BITS(state->lenbits)];
state             399 lib/zlib/infback.c                     state->lens[state->have++] = this.val;
state             405 lib/zlib/infback.c                         if (state->have == 0) {
state             407 lib/zlib/infback.c                             state->mode = BAD_DATA;
state             410 lib/zlib/infback.c                         len = (unsigned)(state->lens[state->have - 1]);
state             428 lib/zlib/infback.c                     if (state->have + copy > state->nlen + state->ndist) {
state             430 lib/zlib/infback.c                         state->mode = BAD_DATA;
state             434 lib/zlib/infback.c                         state->lens[state->have++] = (unsigned short)len;
state             439 lib/zlib/infback.c             if (state->mode == BAD_DATA) break;
state             442 lib/zlib/infback.c             state->next = state->codes;
state             443 lib/zlib/infback.c             state->lencode = (code const FAR *)(state->next);
state             444 lib/zlib/infback.c             state->lenbits = 9;
state             445 lib/zlib/infback.c             ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
state             446 lib/zlib/infback.c                                 &(state->lenbits), state->work);
state             449 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             452 lib/zlib/infback.c             state->distcode = (code const FAR *)(state->next);
state             453 lib/zlib/infback.c             state->distbits = 6;
state             454 lib/zlib/infback.c             ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
state             455 lib/zlib/infback.c                             &(state->next), &(state->distbits), state->work);
state             458 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             462 lib/zlib/infback.c             state->mode = LEN;
state             468 lib/zlib/infback.c                 if (state->whave < state->wsize)
state             469 lib/zlib/infback.c                     state->whave = state->wsize - left;
state             470 lib/zlib/infback.c                 inflate_fast(strm, state->wsize);
state             477 lib/zlib/infback.c                 this = state->lencode[BITS(state->lenbits)];
state             484 lib/zlib/infback.c                     this = state->lencode[last.val +
state             492 lib/zlib/infback.c             state->length = (unsigned)this.val;
state             500 lib/zlib/infback.c                 *put++ = (unsigned char)(state->length);
state             502 lib/zlib/infback.c                 state->mode = LEN;
state             509 lib/zlib/infback.c                 state->mode = TYPE;
state             516 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             521 lib/zlib/infback.c             state->extra = (unsigned)(this.op) & 15;
state             522 lib/zlib/infback.c             if (state->extra != 0) {
state             523 lib/zlib/infback.c                 NEEDBITS(state->extra);
state             524 lib/zlib/infback.c                 state->length += BITS(state->extra);
state             525 lib/zlib/infback.c                 DROPBITS(state->extra);
state             527 lib/zlib/infback.c             Tracevv((stderr, "inflate:         length %u\n", state->length));
state             531 lib/zlib/infback.c                 this = state->distcode[BITS(state->distbits)];
state             538 lib/zlib/infback.c                     this = state->distcode[last.val +
state             548 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             551 lib/zlib/infback.c             state->offset = (unsigned)this.val;
state             554 lib/zlib/infback.c             state->extra = (unsigned)(this.op) & 15;
state             555 lib/zlib/infback.c             if (state->extra != 0) {
state             556 lib/zlib/infback.c                 NEEDBITS(state->extra);
state             557 lib/zlib/infback.c                 state->offset += BITS(state->extra);
state             558 lib/zlib/infback.c                 DROPBITS(state->extra);
state             560 lib/zlib/infback.c             if (state->offset > state->wsize - (state->whave < state->wsize ?
state             563 lib/zlib/infback.c                 state->mode = BAD_DATA;
state             566 lib/zlib/infback.c             Tracevv((stderr, "inflate:         distance %u\n", state->offset));
state             571 lib/zlib/infback.c                 copy = state->wsize - state->offset;
state             577 lib/zlib/infback.c                     from = put - state->offset;
state             580 lib/zlib/infback.c                 if (copy > state->length) copy = state->length;
state             581 lib/zlib/infback.c                 state->length -= copy;
state             586 lib/zlib/infback.c             } while (state->length != 0);
state             592 lib/zlib/infback.c             if (left < state->wsize) {
state             593 lib/zlib/infback.c                 if (out(out_desc, state->window, state->wsize - left))
state             617 lib/zlib/infback.c     if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
state             619 lib/zlib/infback.c     ZFREE(strm, strm->state);
state             620 lib/zlib/infback.c     strm->state = Z_NULL;
state              71 lib/zlib/inffast.c     struct inflate_state FAR *state;
state              98 lib/zlib/inffast.c     state = (struct inflate_state FAR *)strm->state;
state             105 lib/zlib/inffast.c     dmax = state->dmax;
state             107 lib/zlib/inffast.c     wsize = state->wsize;
state             108 lib/zlib/inffast.c     whave = state->whave;
state             109 lib/zlib/inffast.c     write = state->write;
state             110 lib/zlib/inffast.c     window = state->window;
state             111 lib/zlib/inffast.c     hold = state->hold;
state             112 lib/zlib/inffast.c     bits = state->bits;
state             113 lib/zlib/inffast.c     lcode = state->lencode;
state             114 lib/zlib/inffast.c     dcode = state->distcode;
state             115 lib/zlib/inffast.c     lmask = (1U << state->lenbits) - 1;
state             116 lib/zlib/inffast.c     dmask = (1U << state->distbits) - 1;
state             179 lib/zlib/inffast.c                     state->mode = BAD_DATA;
state             191 lib/zlib/inffast.c                         state->mode = BAD_DATA;
state             267 lib/zlib/inffast.c                 state->mode = BAD_DATA;
state             277 lib/zlib/inffast.c             state->mode = TYPE;
state             282 lib/zlib/inffast.c             state->mode = BAD_DATA;
state             299 lib/zlib/inffast.c     state->hold = hold;
state             300 lib/zlib/inffast.c     state->bits = bits;
state             106 lib/zlib/inflate.c     struct inflate_state FAR *state;
state             108 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             109 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state             110 lib/zlib/inflate.c     strm->total_in = strm->total_out = state->total = 0;
state             113 lib/zlib/inflate.c     state->mode = HEAD;
state             114 lib/zlib/inflate.c     state->last = 0;
state             115 lib/zlib/inflate.c     state->havedict = 0;
state             116 lib/zlib/inflate.c     state->dmax = 32768U;
state             117 lib/zlib/inflate.c     state->head = Z_NULL;
state             118 lib/zlib/inflate.c     state->wsize = 0;
state             119 lib/zlib/inflate.c     state->whave = 0;
state             120 lib/zlib/inflate.c     state->write = 0;
state             121 lib/zlib/inflate.c     state->hold = 0;
state             122 lib/zlib/inflate.c     state->bits = 0;
state             123 lib/zlib/inflate.c     state->lencode = state->distcode = state->next = state->codes;
state             133 lib/zlib/inflate.c     struct inflate_state FAR *state;
state             135 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state             136 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state             137 lib/zlib/inflate.c     if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR;
state             139 lib/zlib/inflate.c     state->hold += value << state->bits;
state             140 lib/zlib/inflate.c     state->bits += bits;
state             150 lib/zlib/inflate.c     struct inflate_state FAR *state;
state             162 lib/zlib/inflate.c     state = (struct inflate_state FAR *)
state             164 lib/zlib/inflate.c     if (state == Z_NULL) return Z_MEM_ERROR;
state             166 lib/zlib/inflate.c     strm->state = (struct internal_state FAR *)state;
state             168 lib/zlib/inflate.c         state->wrap = 0;
state             172 lib/zlib/inflate.c         state->wrap = (windowBits >> 4) + 1;
state             178 lib/zlib/inflate.c         ZFREE(strm, state);
state             179 lib/zlib/inflate.c         strm->state = Z_NULL;
state             182 lib/zlib/inflate.c     state->wbits = (unsigned)windowBits;
state             183 lib/zlib/inflate.c     state->window = Z_NULL;
state             220 lib/zlib/inflate.c         while (sym < 144) state->lens[sym++] = 8;
state             221 lib/zlib/inflate.c         while (sym < 256) state->lens[sym++] = 9;
state             222 lib/zlib/inflate.c         while (sym < 280) state->lens[sym++] = 7;
state             223 lib/zlib/inflate.c         while (sym < 288) state->lens[sym++] = 8;
state             227 lib/zlib/inflate.c         inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
state             231 lib/zlib/inflate.c         while (sym < 32) state->lens[sym++] = 5;
state             234 lib/zlib/inflate.c         inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
state             242 lib/zlib/inflate.c     state->lencode = lenfix;
state             243 lib/zlib/inflate.c     state->lenbits = 9;
state             244 lib/zlib/inflate.c     state->distcode = distfix;
state             245 lib/zlib/inflate.c     state->distbits = 5;
state             272 lib/zlib/inflate.c     struct inflate_state state;
state             274 lib/zlib/inflate.c     fixedtables(&state);
state             289 lib/zlib/inflate.c         printf("{%u,%u,%d}", state.lencode[low].op, state.lencode[low].bits,
state             290 lib/zlib/inflate.c                state.lencode[low].val);
state             300 lib/zlib/inflate.c         printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits,
state             301 lib/zlib/inflate.c                state.distcode[low].val);
state             327 lib/zlib/inflate.c     struct inflate_state FAR *state;
state             330 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state             333 lib/zlib/inflate.c     if (state->window == Z_NULL) {
state             334 lib/zlib/inflate.c         state->window = (unsigned char FAR *)
state             335 lib/zlib/inflate.c                         ZALLOC(strm, 1U << state->wbits,
state             337 lib/zlib/inflate.c         if (state->window == Z_NULL) return 1;
state             341 lib/zlib/inflate.c     if (state->wsize == 0) {
state             342 lib/zlib/inflate.c         state->wsize = 1U << state->wbits;
state             343 lib/zlib/inflate.c         state->write = 0;
state             344 lib/zlib/inflate.c         state->whave = 0;
state             349 lib/zlib/inflate.c     if (copy >= state->wsize) {
state             350 lib/zlib/inflate.c         zmemcpy(state->window, strm->next_out - state->wsize, state->wsize);
state             351 lib/zlib/inflate.c         state->write = 0;
state             352 lib/zlib/inflate.c         state->whave = state->wsize;
state             355 lib/zlib/inflate.c         dist = state->wsize - state->write;
state             357 lib/zlib/inflate.c         zmemcpy(state->window + state->write, strm->next_out - copy, dist);
state             360 lib/zlib/inflate.c             zmemcpy(state->window, strm->next_out - copy, copy);
state             361 lib/zlib/inflate.c             state->write = copy;
state             362 lib/zlib/inflate.c             state->whave = state->wsize;
state             365 lib/zlib/inflate.c             state->write += dist;
state             366 lib/zlib/inflate.c             if (state->write == state->wsize) state->write = 0;
state             367 lib/zlib/inflate.c             if (state->whave < state->wsize) state->whave += dist;
state             378 lib/zlib/inflate.c     (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
state             409 lib/zlib/inflate.c         hold = state->hold; \
state             410 lib/zlib/inflate.c         bits = state->bits; \
state             420 lib/zlib/inflate.c         state->hold = hold; \
state             421 lib/zlib/inflate.c         state->bits = bits; \
state             558 lib/zlib/inflate.c     struct inflate_state FAR *state;
state             577 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL ||
state             581 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state             582 lib/zlib/inflate.c     if (state->mode == TYPE) state->mode = TYPEDO;      /* skip check */
state             588 lib/zlib/inflate.c         switch (state->mode) {
state             590 lib/zlib/inflate.c             if (state->wrap == 0) {
state             591 lib/zlib/inflate.c                 state->mode = TYPEDO;
state             596 lib/zlib/inflate.c             if ((state->wrap & 2) && hold == 0x8b1f) {  /* gzip header */
state             597 lib/zlib/inflate.c                 state->check = crc32(0L, Z_NULL, 0);
state             598 lib/zlib/inflate.c                 CRC2(state->check, hold);
state             600 lib/zlib/inflate.c                 state->mode = FLAGS;
state             603 lib/zlib/inflate.c             state->flags = 0;           /* expect zlib header */
state             604 lib/zlib/inflate.c             if (state->head != Z_NULL)
state             605 lib/zlib/inflate.c                 state->head->done = -1;
state             606 lib/zlib/inflate.c             if (!(state->wrap & 1) ||   /* check if zlib header allowed */
state             612 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             617 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             622 lib/zlib/inflate.c             if (len > state->wbits) {
state             624 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             627 lib/zlib/inflate.c             state->dmax = 1U << len;
state             629 lib/zlib/inflate.c             strm->adler = state->check = adler32(0L, Z_NULL, 0);
state             630 lib/zlib/inflate.c             state->mode = hold & 0x200 ? DICTID : TYPE;
state             636 lib/zlib/inflate.c             state->flags = (int)(hold);
state             637 lib/zlib/inflate.c             if ((state->flags & 0xff) != Z_DEFLATED) {
state             639 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             642 lib/zlib/inflate.c             if (state->flags & 0xe000) {
state             644 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             647 lib/zlib/inflate.c             if (state->head != Z_NULL)
state             648 lib/zlib/inflate.c                 state->head->text = (int)((hold >> 8) & 1);
state             649 lib/zlib/inflate.c             if (state->flags & 0x0200) CRC2(state->check, hold);
state             651 lib/zlib/inflate.c             state->mode = TIME;
state             654 lib/zlib/inflate.c             if (state->head != Z_NULL)
state             655 lib/zlib/inflate.c                 state->head->time = hold;
state             656 lib/zlib/inflate.c             if (state->flags & 0x0200) CRC4(state->check, hold);
state             658 lib/zlib/inflate.c             state->mode = OS;
state             661 lib/zlib/inflate.c             if (state->head != Z_NULL) {
state             662 lib/zlib/inflate.c                 state->head->xflags = (int)(hold & 0xff);
state             663 lib/zlib/inflate.c                 state->head->os = (int)(hold >> 8);
state             665 lib/zlib/inflate.c             if (state->flags & 0x0200) CRC2(state->check, hold);
state             667 lib/zlib/inflate.c             state->mode = EXLEN;
state             669 lib/zlib/inflate.c             if (state->flags & 0x0400) {
state             671 lib/zlib/inflate.c                 state->length = (unsigned)(hold);
state             672 lib/zlib/inflate.c                 if (state->head != Z_NULL)
state             673 lib/zlib/inflate.c                     state->head->extra_len = (unsigned)hold;
state             674 lib/zlib/inflate.c                 if (state->flags & 0x0200) CRC2(state->check, hold);
state             677 lib/zlib/inflate.c             else if (state->head != Z_NULL)
state             678 lib/zlib/inflate.c                 state->head->extra = Z_NULL;
state             679 lib/zlib/inflate.c             state->mode = EXTRA;
state             681 lib/zlib/inflate.c             if (state->flags & 0x0400) {
state             682 lib/zlib/inflate.c                 copy = state->length;
state             685 lib/zlib/inflate.c                     if (state->head != Z_NULL &&
state             686 lib/zlib/inflate.c                         state->head->extra != Z_NULL) {
state             687 lib/zlib/inflate.c                         len = state->head->extra_len - state->length;
state             688 lib/zlib/inflate.c                         zmemcpy(state->head->extra + len, next,
state             689 lib/zlib/inflate.c                                 len + copy > state->head->extra_max ?
state             690 lib/zlib/inflate.c                                 state->head->extra_max - len : copy);
state             692 lib/zlib/inflate.c                     if (state->flags & 0x0200)
state             693 lib/zlib/inflate.c                         state->check = crc32(state->check, next, copy);
state             696 lib/zlib/inflate.c                     state->length -= copy;
state             698 lib/zlib/inflate.c                 if (state->length) goto inf_leave;
state             700 lib/zlib/inflate.c             state->length = 0;
state             701 lib/zlib/inflate.c             state->mode = NAME;
state             703 lib/zlib/inflate.c             if (state->flags & 0x0800) {
state             708 lib/zlib/inflate.c                     if (state->head != Z_NULL &&
state             709 lib/zlib/inflate.c                             state->head->name != Z_NULL &&
state             710 lib/zlib/inflate.c                             state->length < state->head->name_max)
state             711 lib/zlib/inflate.c                         state->head->name[state->length++] = len;
state             713 lib/zlib/inflate.c                 if (state->flags & 0x0200)
state             714 lib/zlib/inflate.c                     state->check = crc32(state->check, next, copy);
state             719 lib/zlib/inflate.c             else if (state->head != Z_NULL)
state             720 lib/zlib/inflate.c                 state->head->name = Z_NULL;
state             721 lib/zlib/inflate.c             state->length = 0;
state             722 lib/zlib/inflate.c             state->mode = COMMENT;
state             724 lib/zlib/inflate.c             if (state->flags & 0x1000) {
state             729 lib/zlib/inflate.c                     if (state->head != Z_NULL &&
state             730 lib/zlib/inflate.c                             state->head->comment != Z_NULL &&
state             731 lib/zlib/inflate.c                             state->length < state->head->comm_max)
state             732 lib/zlib/inflate.c                         state->head->comment[state->length++] = len;
state             734 lib/zlib/inflate.c                 if (state->flags & 0x0200)
state             735 lib/zlib/inflate.c                     state->check = crc32(state->check, next, copy);
state             740 lib/zlib/inflate.c             else if (state->head != Z_NULL)
state             741 lib/zlib/inflate.c                 state->head->comment = Z_NULL;
state             742 lib/zlib/inflate.c             state->mode = HCRC;
state             744 lib/zlib/inflate.c             if (state->flags & 0x0200) {
state             746 lib/zlib/inflate.c                 if (hold != (state->check & 0xffff)) {
state             748 lib/zlib/inflate.c                     state->mode = BAD_DATA;
state             753 lib/zlib/inflate.c             if (state->head != Z_NULL) {
state             754 lib/zlib/inflate.c                 state->head->hcrc = (int)((state->flags >> 9) & 1);
state             755 lib/zlib/inflate.c                 state->head->done = 1;
state             757 lib/zlib/inflate.c             strm->adler = state->check = crc32(0L, Z_NULL, 0);
state             758 lib/zlib/inflate.c             state->mode = TYPE;
state             763 lib/zlib/inflate.c             strm->adler = state->check = REVERSE(hold);
state             765 lib/zlib/inflate.c             state->mode = DICT;
state             767 lib/zlib/inflate.c             if (state->havedict == 0) {
state             771 lib/zlib/inflate.c             strm->adler = state->check = adler32(0L, Z_NULL, 0);
state             772 lib/zlib/inflate.c             state->mode = TYPE;
state             776 lib/zlib/inflate.c             if (state->last) {
state             778 lib/zlib/inflate.c                 state->mode = CHECK;
state             782 lib/zlib/inflate.c             state->last = BITS(1);
state             787 lib/zlib/inflate.c                         state->last ? " (last)" : ""));
state             788 lib/zlib/inflate.c                 state->mode = STORED;
state             791 lib/zlib/inflate.c                 fixedtables(state);
state             793 lib/zlib/inflate.c                         state->last ? " (last)" : ""));
state             794 lib/zlib/inflate.c                 state->mode = LEN;              /* decode codes */
state             798 lib/zlib/inflate.c                         state->last ? " (last)" : ""));
state             799 lib/zlib/inflate.c                 state->mode = TABLE;
state             803 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             812 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             815 lib/zlib/inflate.c             state->length = (unsigned)hold & 0xffff;
state             817 lib/zlib/inflate.c                     state->length));
state             819 lib/zlib/inflate.c             state->mode = COPY;
state             821 lib/zlib/inflate.c             copy = state->length;
state             831 lib/zlib/inflate.c                 state->length -= copy;
state             835 lib/zlib/inflate.c             state->mode = TYPE;
state             839 lib/zlib/inflate.c             state->nlen = BITS(5) + 257;
state             841 lib/zlib/inflate.c             state->ndist = BITS(5) + 1;
state             843 lib/zlib/inflate.c             state->ncode = BITS(4) + 4;
state             846 lib/zlib/inflate.c             if (state->nlen > 286 || state->ndist > 30) {
state             848 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             853 lib/zlib/inflate.c             state->have = 0;
state             854 lib/zlib/inflate.c             state->mode = LENLENS;
state             856 lib/zlib/inflate.c             while (state->have < state->ncode) {
state             858 lib/zlib/inflate.c                 state->lens[order[state->have++]] = (unsigned short)BITS(3);
state             861 lib/zlib/inflate.c             while (state->have < 19)
state             862 lib/zlib/inflate.c                 state->lens[order[state->have++]] = 0;
state             863 lib/zlib/inflate.c             state->next = state->codes;
state             864 lib/zlib/inflate.c             state->lencode = (code const FAR *)(state->next);
state             865 lib/zlib/inflate.c             state->lenbits = 7;
state             866 lib/zlib/inflate.c             ret = inflate_table(CODES, state->lens, 19, &(state->next),
state             867 lib/zlib/inflate.c                                 &(state->lenbits), state->work);
state             870 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             874 lib/zlib/inflate.c             state->have = 0;
state             875 lib/zlib/inflate.c             state->mode = CODELENS;
state             877 lib/zlib/inflate.c             while (state->have < state->nlen + state->ndist) {
state             879 lib/zlib/inflate.c                     this = state->lencode[BITS(state->lenbits)];
state             886 lib/zlib/inflate.c                     state->lens[state->have++] = this.val;
state             892 lib/zlib/inflate.c                         if (state->have == 0) {
state             894 lib/zlib/inflate.c                             state->mode = BAD_DATA;
state             897 lib/zlib/inflate.c                         len = state->lens[state->have - 1];
state             915 lib/zlib/inflate.c                     if (state->have + copy > state->nlen + state->ndist) {
state             917 lib/zlib/inflate.c                         state->mode = BAD_DATA;
state             921 lib/zlib/inflate.c                         state->lens[state->have++] = (unsigned short)len;
state             926 lib/zlib/inflate.c             if (state->mode == BAD_DATA) break;
state             929 lib/zlib/inflate.c             state->next = state->codes;
state             930 lib/zlib/inflate.c             state->lencode = (code const FAR *)(state->next);
state             931 lib/zlib/inflate.c             state->lenbits = 9;
state             932 lib/zlib/inflate.c             ret = inflate_table(LENS, state->lens, state->nlen, &(state->next),
state             933 lib/zlib/inflate.c                                 &(state->lenbits), state->work);
state             936 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             939 lib/zlib/inflate.c             state->distcode = (code const FAR *)(state->next);
state             940 lib/zlib/inflate.c             state->distbits = 6;
state             941 lib/zlib/inflate.c             ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist,
state             942 lib/zlib/inflate.c                             &(state->next), &(state->distbits), state->work);
state             945 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             949 lib/zlib/inflate.c             state->mode = LEN;
state             958 lib/zlib/inflate.c                 this = state->lencode[BITS(state->lenbits)];
state             965 lib/zlib/inflate.c                     this = state->lencode[last.val +
state             973 lib/zlib/inflate.c             state->length = (unsigned)this.val;
state             978 lib/zlib/inflate.c                 state->mode = LIT;
state             983 lib/zlib/inflate.c                 state->mode = TYPE;
state             988 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state             991 lib/zlib/inflate.c             state->extra = (unsigned)(this.op) & 15;
state             992 lib/zlib/inflate.c             state->mode = LENEXT;
state             994 lib/zlib/inflate.c             if (state->extra) {
state             995 lib/zlib/inflate.c                 NEEDBITS(state->extra);
state             996 lib/zlib/inflate.c                 state->length += BITS(state->extra);
state             997 lib/zlib/inflate.c                 DROPBITS(state->extra);
state             999 lib/zlib/inflate.c             Tracevv((stderr, "inflate:         length %u\n", state->length));
state            1000 lib/zlib/inflate.c             state->mode = DIST;
state            1003 lib/zlib/inflate.c                 this = state->distcode[BITS(state->distbits)];
state            1010 lib/zlib/inflate.c                     this = state->distcode[last.val +
state            1020 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state            1023 lib/zlib/inflate.c             state->offset = (unsigned)this.val;
state            1024 lib/zlib/inflate.c             state->extra = (unsigned)(this.op) & 15;
state            1025 lib/zlib/inflate.c             state->mode = DISTEXT;
state            1027 lib/zlib/inflate.c             if (state->extra) {
state            1028 lib/zlib/inflate.c                 NEEDBITS(state->extra);
state            1029 lib/zlib/inflate.c                 state->offset += BITS(state->extra);
state            1030 lib/zlib/inflate.c                 DROPBITS(state->extra);
state            1033 lib/zlib/inflate.c             if (state->offset > state->dmax) {
state            1035 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state            1039 lib/zlib/inflate.c             if (state->offset > state->whave + out - left) {
state            1041 lib/zlib/inflate.c                 state->mode = BAD_DATA;
state            1044 lib/zlib/inflate.c             Tracevv((stderr, "inflate:         distance %u\n", state->offset));
state            1045 lib/zlib/inflate.c             state->mode = MATCH;
state            1049 lib/zlib/inflate.c             if (state->offset > copy) {         /* copy from window */
state            1050 lib/zlib/inflate.c                 copy = state->offset - copy;
state            1051 lib/zlib/inflate.c                 if (copy > state->write) {
state            1052 lib/zlib/inflate.c                     copy -= state->write;
state            1053 lib/zlib/inflate.c                     from = state->window + (state->wsize - copy);
state            1056 lib/zlib/inflate.c                     from = state->window + (state->write - copy);
state            1057 lib/zlib/inflate.c                 if (copy > state->length) copy = state->length;
state            1060 lib/zlib/inflate.c                 from = put - state->offset;
state            1061 lib/zlib/inflate.c                 copy = state->length;
state            1065 lib/zlib/inflate.c             state->length -= copy;
state            1069 lib/zlib/inflate.c             if (state->length == 0) state->mode = LEN;
state            1073 lib/zlib/inflate.c             *put++ = (unsigned char)(state->length);
state            1075 lib/zlib/inflate.c             state->mode = LEN;
state            1078 lib/zlib/inflate.c             if (state->wrap) {
state            1082 lib/zlib/inflate.c                 state->total += out;
state            1084 lib/zlib/inflate.c                     strm->adler = state->check =
state            1085 lib/zlib/inflate.c                         UPDATE(state->check, put - out, out);
state            1089 lib/zlib/inflate.c                      state->flags ? hold :
state            1091 lib/zlib/inflate.c                      REVERSE(hold)) != state->check) {
state            1093 lib/zlib/inflate.c                     state->mode = BAD_DATA;
state            1100 lib/zlib/inflate.c             state->mode = LENGTH;
state            1102 lib/zlib/inflate.c             if (state->wrap && state->flags) {
state            1104 lib/zlib/inflate.c                 if (hold != (state->total & 0xffffffffUL)) {
state            1106 lib/zlib/inflate.c                     state->mode = BAD_DATA;
state            1113 lib/zlib/inflate.c             state->mode = DONE;
state            1135 lib/zlib/inflate.c     if (state->wsize || (state->mode < CHECK && out != strm->avail_out))
state            1137 lib/zlib/inflate.c             state->mode = MEM;
state            1144 lib/zlib/inflate.c     state->total += out;
state            1145 lib/zlib/inflate.c     if (state->wrap && out)
state            1146 lib/zlib/inflate.c         strm->adler = state->check =
state            1147 lib/zlib/inflate.c             UPDATE(state->check, strm->next_out - out, out);
state            1148 lib/zlib/inflate.c     strm->data_type = state->bits + (state->last ? 64 : 0) +
state            1149 lib/zlib/inflate.c                       (state->mode == TYPE ? 128 : 0);
state            1158 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1159 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
state            1161 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state            1162 lib/zlib/inflate.c     if (state->window != Z_NULL) ZFREE(strm, state->window);
state            1163 lib/zlib/inflate.c     ZFREE(strm, strm->state);
state            1164 lib/zlib/inflate.c     strm->state = Z_NULL;
state            1174 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1178 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state            1179 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state            1180 lib/zlib/inflate.c     if (state->wrap != 0 && state->mode != DICT)
state            1184 lib/zlib/inflate.c     if (state->mode == DICT) {
state            1187 lib/zlib/inflate.c         if (id != state->check)
state            1193 lib/zlib/inflate.c         state->mode = MEM;
state            1196 lib/zlib/inflate.c     if (dictLength > state->wsize) {
state            1197 lib/zlib/inflate.c         zmemcpy(state->window, dictionary + dictLength - state->wsize,
state            1198 lib/zlib/inflate.c                 state->wsize);
state            1199 lib/zlib/inflate.c         state->whave = state->wsize;
state            1202 lib/zlib/inflate.c         zmemcpy(state->window + state->wsize - dictLength, dictionary,
state            1204 lib/zlib/inflate.c         state->whave = dictLength;
state            1206 lib/zlib/inflate.c     state->havedict = 1;
state            1215 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1218 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state            1219 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state            1220 lib/zlib/inflate.c     if ((state->wrap & 2) == 0) return Z_STREAM_ERROR;
state            1223 lib/zlib/inflate.c     state->head = head;
state            1268 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1271 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state            1272 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state            1273 lib/zlib/inflate.c     if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR;
state            1276 lib/zlib/inflate.c     if (state->mode != SYNC) {
state            1277 lib/zlib/inflate.c         state->mode = SYNC;
state            1278 lib/zlib/inflate.c         state->hold <<= state->bits & 7;
state            1279 lib/zlib/inflate.c         state->bits -= state->bits & 7;
state            1281 lib/zlib/inflate.c         while (state->bits >= 8) {
state            1282 lib/zlib/inflate.c             buf[len++] = (unsigned char)(state->hold);
state            1283 lib/zlib/inflate.c             state->hold >>= 8;
state            1284 lib/zlib/inflate.c             state->bits -= 8;
state            1286 lib/zlib/inflate.c         state->have = 0;
state            1287 lib/zlib/inflate.c         syncsearch(&(state->have), buf, len);
state            1291 lib/zlib/inflate.c     len = syncsearch(&(state->have), strm->next_in, strm->avail_in);
state            1297 lib/zlib/inflate.c     if (state->have != 4) return Z_DATA_ERROR;
state            1301 lib/zlib/inflate.c     state->mode = TYPE;
state            1316 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1318 lib/zlib/inflate.c     if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
state            1319 lib/zlib/inflate.c     state = (struct inflate_state FAR *)strm->state;
state            1320 lib/zlib/inflate.c     return state->mode == STORED && state->bits == 0;
state            1327 lib/zlib/inflate.c     struct inflate_state FAR *state;
state            1333 lib/zlib/inflate.c     if (dest == Z_NULL || source == Z_NULL || source->state == Z_NULL ||
state            1336 lib/zlib/inflate.c     state = (struct inflate_state FAR *)source->state;
state            1343 lib/zlib/inflate.c     if (state->window != Z_NULL) {
state            1345 lib/zlib/inflate.c                  ZALLOC(source, 1U << state->wbits, sizeof(unsigned char));
state            1354 lib/zlib/inflate.c     zmemcpy(copy, state, sizeof(struct inflate_state));
state            1355 lib/zlib/inflate.c     if (state->lencode >= state->codes &&
state            1356 lib/zlib/inflate.c         state->lencode <= state->codes + ENOUGH - 1) {
state            1357 lib/zlib/inflate.c         copy->lencode = copy->codes + (state->lencode - state->codes);
state            1358 lib/zlib/inflate.c         copy->distcode = copy->codes + (state->distcode - state->codes);
state            1360 lib/zlib/inflate.c     copy->next = copy->codes + (state->next - state->codes);
state            1362 lib/zlib/inflate.c         wsize = 1U << state->wbits;
state            1363 lib/zlib/inflate.c         zmemcpy(window, state->window, wsize);
state            1366 lib/zlib/inflate.c     dest->state = (struct internal_state FAR *)copy;
state              98 lib/zlib/zlib.h     struct internal_state FAR *state; /* not visible by applications */
state              43 libcli/nbt/libnbt.h 	enum nbt_request_state state;
state             163 libcli/nbt/namerefresh.c 	struct refresh_wins_state *state = talloc_get_type(c->private_data,
state             167 libcli/nbt/namerefresh.c 	status = nbt_name_refresh_recv(state->req, state, state->io);
state             170 libcli/nbt/namerefresh.c 		state->wins_servers++;
state             171 libcli/nbt/namerefresh.c 		state->address_idx = 0;
state             172 libcli/nbt/namerefresh.c 		if (state->wins_servers[0] == NULL) {
state             173 libcli/nbt/namerefresh.c 			c->state = COMPOSITE_STATE_ERROR;
state             177 libcli/nbt/namerefresh.c 		state->io->in.dest_addr = state->wins_servers[0];
state             178 libcli/nbt/namerefresh.c 		state->io->in.dest_port = state->wins_port;
state             179 libcli/nbt/namerefresh.c 		state->io->in.address   = state->addresses[0];
state             180 libcli/nbt/namerefresh.c 		state->req = nbt_name_refresh_send(state->nbtsock, state->io);
state             181 libcli/nbt/namerefresh.c 		if (state->req == NULL) {
state             182 libcli/nbt/namerefresh.c 			c->state = COMPOSITE_STATE_ERROR;
state             185 libcli/nbt/namerefresh.c 			state->req->async.fn      = name_refresh_wins_handler;
state             186 libcli/nbt/namerefresh.c 			state->req->async.private_data = c;
state             189 libcli/nbt/namerefresh.c 		c->state = COMPOSITE_STATE_ERROR;
state             192 libcli/nbt/namerefresh.c 		if (state->io->out.rcode == 0 &&
state             193 libcli/nbt/namerefresh.c 		    state->addresses[state->address_idx+1] != NULL) {
state             195 libcli/nbt/namerefresh.c 			state->io->in.address = state->addresses[++(state->address_idx)];
state             196 libcli/nbt/namerefresh.c 			state->req = nbt_name_refresh_send(state->nbtsock, state->io);
state             197 libcli/nbt/namerefresh.c 			if (state->req == NULL) {
state             198 libcli/nbt/namerefresh.c 				c->state = COMPOSITE_STATE_ERROR;
state             201 libcli/nbt/namerefresh.c 				state->req->async.fn      = name_refresh_wins_handler;
state             202 libcli/nbt/namerefresh.c 				state->req->async.private_data = c;
state             205 libcli/nbt/namerefresh.c 			c->state = COMPOSITE_STATE_DONE;
state             211 libcli/nbt/namerefresh.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             224 libcli/nbt/namerefresh.c 	struct refresh_wins_state *state;
state             229 libcli/nbt/namerefresh.c 	state = talloc(c, struct refresh_wins_state);
state             230 libcli/nbt/namerefresh.c 	if (state == NULL) goto failed;
state             232 libcli/nbt/namerefresh.c 	state->io = talloc(state, struct nbt_name_refresh);
state             233 libcli/nbt/namerefresh.c 	if (state->io == NULL) goto failed;
state             235 libcli/nbt/namerefresh.c 	state->wins_port = io->in.wins_port;
state             236 libcli/nbt/namerefresh.c 	state->wins_servers = (const char **)str_list_copy(state, io->in.wins_servers);
state             237 libcli/nbt/namerefresh.c 	if (state->wins_servers == NULL ||
state             238 libcli/nbt/namerefresh.c 	    state->wins_servers[0] == NULL) goto failed;
state             240 libcli/nbt/namerefresh.c 	state->addresses = (const char **)str_list_copy(state, io->in.addresses);
state             241 libcli/nbt/namerefresh.c 	if (state->addresses == NULL ||
state             242 libcli/nbt/namerefresh.c 	    state->addresses[0] == NULL) goto failed;
state             244 libcli/nbt/namerefresh.c 	state->io->in.name            = io->in.name;
state             245 libcli/nbt/namerefresh.c 	state->io->in.dest_addr       = state->wins_servers[0];
state             246 libcli/nbt/namerefresh.c 	state->io->in.dest_port       = state->wins_port;
state             247 libcli/nbt/namerefresh.c 	state->io->in.address         = io->in.addresses[0];
state             248 libcli/nbt/namerefresh.c 	state->io->in.nb_flags        = io->in.nb_flags;
state             249 libcli/nbt/namerefresh.c 	state->io->in.broadcast       = false;
state             250 libcli/nbt/namerefresh.c 	state->io->in.ttl             = io->in.ttl;
state             251 libcli/nbt/namerefresh.c 	state->io->in.timeout         = 2;
state             252 libcli/nbt/namerefresh.c 	state->io->in.retries         = 2;
state             254 libcli/nbt/namerefresh.c 	state->nbtsock     = nbtsock;
state             255 libcli/nbt/namerefresh.c 	state->address_idx = 0;
state             257 libcli/nbt/namerefresh.c 	state->req = nbt_name_refresh_send(nbtsock, state->io);
state             258 libcli/nbt/namerefresh.c 	if (state->req == NULL) goto failed;
state             260 libcli/nbt/namerefresh.c 	state->req->async.fn      = name_refresh_wins_handler;
state             261 libcli/nbt/namerefresh.c 	state->req->async.private_data = c;
state             263 libcli/nbt/namerefresh.c 	c->private_data	= state;
state             264 libcli/nbt/namerefresh.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             283 libcli/nbt/namerefresh.c 		struct refresh_wins_state *state =
state             285 libcli/nbt/namerefresh.c 		io->out.wins_server = talloc_steal(mem_ctx, state->wins_servers[0]);
state             286 libcli/nbt/namerefresh.c 		io->out.rcode = state->io->out.rcode;
state             164 libcli/nbt/nameregister.c 	struct register_bcast_state *state = talloc_get_type(c->private_data, struct register_bcast_state);
state             167 libcli/nbt/nameregister.c 	status = nbt_name_register_recv(state->req, state, state->io);
state             169 libcli/nbt/nameregister.c 		if (state->io->in.register_demand == true) {
state             171 libcli/nbt/nameregister.c 			c->state = COMPOSITE_STATE_DONE;
state             177 libcli/nbt/nameregister.c 		state->io->in.register_demand = true;
state             178 libcli/nbt/nameregister.c 		state->io->in.retries         = 0;
state             179 libcli/nbt/nameregister.c 		state->req = nbt_name_register_send(state->nbtsock, state->io);
state             180 libcli/nbt/nameregister.c 		if (state->req == NULL) {
state             181 libcli/nbt/nameregister.c 			c->state = COMPOSITE_STATE_ERROR;
state             184 libcli/nbt/nameregister.c 			state->req->async.fn      = name_register_bcast_handler;
state             185 libcli/nbt/nameregister.c 			state->req->async.private_data = c;
state             188 libcli/nbt/nameregister.c 		c->state = COMPOSITE_STATE_ERROR;
state             191 libcli/nbt/nameregister.c 		c->state = COMPOSITE_STATE_ERROR;
state             194 libcli/nbt/nameregister.c 			 state->io->out.reply_from,
state             195 libcli/nbt/nameregister.c 			 nbt_name_string(state, &state->io->out.name),
state             196 libcli/nbt/nameregister.c 			 state->io->out.reply_addr,
state             197 libcli/nbt/nameregister.c 			 state->io->out.rcode));
state             201 libcli/nbt/nameregister.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             214 libcli/nbt/nameregister.c 	struct register_bcast_state *state;
state             219 libcli/nbt/nameregister.c 	state = talloc(c, struct register_bcast_state);
state             220 libcli/nbt/nameregister.c 	if (state == NULL) goto failed;
state             222 libcli/nbt/nameregister.c 	state->io = talloc(state, struct nbt_name_register);
state             223 libcli/nbt/nameregister.c 	if (state->io == NULL) goto failed;
state             225 libcli/nbt/nameregister.c 	state->io->in.name            = io->in.name;
state             226 libcli/nbt/nameregister.c 	state->io->in.dest_addr       = io->in.dest_addr;
state             227 libcli/nbt/nameregister.c 	state->io->in.dest_port       = io->in.dest_port;
state             228 libcli/nbt/nameregister.c 	state->io->in.address         = io->in.address;
state             229 libcli/nbt/nameregister.c 	state->io->in.nb_flags        = io->in.nb_flags;
state             230 libcli/nbt/nameregister.c 	state->io->in.register_demand = false;
state             231 libcli/nbt/nameregister.c 	state->io->in.broadcast       = true;
state             232 libcli/nbt/nameregister.c 	state->io->in.multi_homed     = false;
state             233 libcli/nbt/nameregister.c 	state->io->in.ttl             = io->in.ttl;
state             234 libcli/nbt/nameregister.c 	state->io->in.timeout         = 1;
state             235 libcli/nbt/nameregister.c 	state->io->in.retries         = 2;
state             237 libcli/nbt/nameregister.c 	state->nbtsock = nbtsock;
state             239 libcli/nbt/nameregister.c 	state->req = nbt_name_register_send(nbtsock, state->io);
state             240 libcli/nbt/nameregister.c 	if (state->req == NULL) goto failed;
state             242 libcli/nbt/nameregister.c 	state->req->async.fn      = name_register_bcast_handler;
state             243 libcli/nbt/nameregister.c 	state->req->async.private_data = c;
state             245 libcli/nbt/nameregister.c 	c->private_data	= state;
state             246 libcli/nbt/nameregister.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             301 libcli/nbt/nameregister.c 	struct register_wins_state *state = talloc_get_type(c->private_data,
state             305 libcli/nbt/nameregister.c 	status = nbt_name_register_recv(state->req, state, state->io);
state             308 libcli/nbt/nameregister.c 		state->wins_servers++;
state             309 libcli/nbt/nameregister.c 		state->address_idx = 0;
state             310 libcli/nbt/nameregister.c 		if (state->wins_servers[0] == NULL) {
state             311 libcli/nbt/nameregister.c 			c->state = COMPOSITE_STATE_ERROR;
state             315 libcli/nbt/nameregister.c 		state->io->in.dest_addr = state->wins_servers[0];
state             316 libcli/nbt/nameregister.c 		state->io->in.dest_port = state->wins_port;
state             317 libcli/nbt/nameregister.c 		state->io->in.address   = state->addresses[0];
state             318 libcli/nbt/nameregister.c 		state->req = nbt_name_register_send(state->nbtsock, state->io);
state             319 libcli/nbt/nameregister.c 		if (state->req == NULL) {
state             320 libcli/nbt/nameregister.c 			c->state = COMPOSITE_STATE_ERROR;
state             323 libcli/nbt/nameregister.c 			state->req->async.fn      = name_register_wins_handler;
state             324 libcli/nbt/nameregister.c 			state->req->async.private_data = c;
state             327 libcli/nbt/nameregister.c 		c->state = COMPOSITE_STATE_ERROR;
state             330 libcli/nbt/nameregister.c 		if (state->io->out.rcode == 0 &&
state             331 libcli/nbt/nameregister.c 		    state->addresses[state->address_idx+1] != NULL) {
state             333 libcli/nbt/nameregister.c 			state->io->in.address = state->addresses[++(state->address_idx)];
state             334 libcli/nbt/nameregister.c 			state->req = nbt_name_register_send(state->nbtsock, state->io);
state             335 libcli/nbt/nameregister.c 			if (state->req == NULL) {
state             336 libcli/nbt/nameregister.c 				c->state = COMPOSITE_STATE_ERROR;
state             339 libcli/nbt/nameregister.c 				state->req->async.fn      = name_register_wins_handler;
state             340 libcli/nbt/nameregister.c 				state->req->async.private_data = c;
state             343 libcli/nbt/nameregister.c 			c->state = COMPOSITE_STATE_DONE;
state             349 libcli/nbt/nameregister.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             362 libcli/nbt/nameregister.c 	struct register_wins_state *state;
state             367 libcli/nbt/nameregister.c 	state = talloc(c, struct register_wins_state);
state             368 libcli/nbt/nameregister.c 	if (state == NULL) goto failed;
state             370 libcli/nbt/nameregister.c 	state->io = talloc(state, struct nbt_name_register);
state             371 libcli/nbt/nameregister.c 	if (state->io == NULL) goto failed;
state             373 libcli/nbt/nameregister.c 	state->wins_port = io->in.wins_port;
state             374 libcli/nbt/nameregister.c 	state->wins_servers = (const char **)str_list_copy(state, io->in.wins_servers);
state             375 libcli/nbt/nameregister.c 	if (state->wins_servers == NULL ||
state             376 libcli/nbt/nameregister.c 	    state->wins_servers[0] == NULL) goto failed;
state             378 libcli/nbt/nameregister.c 	state->addresses = (const char **)str_list_copy(state, io->in.addresses);
state             379 libcli/nbt/nameregister.c 	if (state->addresses == NULL ||
state             380 libcli/nbt/nameregister.c 	    state->addresses[0] == NULL) goto failed;
state             382 libcli/nbt/nameregister.c 	state->io->in.name            = io->in.name;
state             383 libcli/nbt/nameregister.c 	state->io->in.dest_addr       = state->wins_servers[0];
state             384 libcli/nbt/nameregister.c 	state->io->in.dest_port       = state->wins_port;
state             385 libcli/nbt/nameregister.c 	state->io->in.address         = io->in.addresses[0];
state             386 libcli/nbt/nameregister.c 	state->io->in.nb_flags        = io->in.nb_flags;
state             387 libcli/nbt/nameregister.c 	state->io->in.broadcast       = false;
state             388 libcli/nbt/nameregister.c 	state->io->in.register_demand = false;
state             389 libcli/nbt/nameregister.c 	state->io->in.multi_homed     = (io->in.nb_flags & NBT_NM_GROUP)?false:true;
state             390 libcli/nbt/nameregister.c 	state->io->in.ttl             = io->in.ttl;
state             391 libcli/nbt/nameregister.c 	state->io->in.timeout         = 3;
state             392 libcli/nbt/nameregister.c 	state->io->in.retries         = 2;
state             394 libcli/nbt/nameregister.c 	state->nbtsock     = nbtsock;
state             395 libcli/nbt/nameregister.c 	state->address_idx = 0;
state             397 libcli/nbt/nameregister.c 	state->req = nbt_name_register_send(nbtsock, state->io);
state             398 libcli/nbt/nameregister.c 	if (state->req == NULL) goto failed;
state             400 libcli/nbt/nameregister.c 	state->req->async.fn      = name_register_wins_handler;
state             401 libcli/nbt/nameregister.c 	state->req->async.private_data = c;
state             403 libcli/nbt/nameregister.c 	c->private_data	= state;
state             404 libcli/nbt/nameregister.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             423 libcli/nbt/nameregister.c 		struct register_wins_state *state =
state             425 libcli/nbt/nameregister.c 		io->out.wins_server = talloc_steal(mem_ctx, state->wins_servers[0]);
state             426 libcli/nbt/nameregister.c 		io->out.rcode = state->io->out.rcode;
state              38 libcli/nbt/nbtsocket.c 	if (req->state == NBT_REQUEST_SEND) {
state              41 libcli/nbt/nbtsocket.c 	if (req->state == NBT_REQUEST_WAIT) {
state              86 libcli/nbt/nbtsocket.c 		req->state = NBT_REQUEST_WAIT;
state             103 libcli/nbt/nbtsocket.c 	req->state = NBT_REQUEST_ERROR;
state             128 libcli/nbt/nbtsocket.c 		if (req->state != NBT_REQUEST_SEND) {
state             129 libcli/nbt/nbtsocket.c 			req->state = NBT_REQUEST_SEND;
state             139 libcli/nbt/nbtsocket.c 		req->state = NBT_REQUEST_TIMEOUT;
state             142 libcli/nbt/nbtsocket.c 		req->state = NBT_REQUEST_DONE;
state             251 libcli/nbt/nbtsocket.c 			req->state  = NBT_REQUEST_ERROR;
state             286 libcli/nbt/nbtsocket.c 		req->state  = NBT_REQUEST_ERROR;
state             304 libcli/nbt/nbtsocket.c 	req->state  = NBT_REQUEST_DONE;
state             392 libcli/nbt/nbtsocket.c 	req->state                  = NBT_REQUEST_SEND;
state             458 libcli/nbt/nbtsocket.c 	req->state     = NBT_REQUEST_SEND;
state             494 libcli/nbt/nbtsocket.c 	while (req->state < NBT_REQUEST_DONE) {
state             496 libcli/nbt/nbtsocket.c 			req->state = NBT_REQUEST_ERROR;
state             662 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state             718 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state            1303 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state            1361 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state            2098 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state            2162 librpc/gen_ndr/cli_svcctl.c 	r.in.state = state;
state              48 librpc/gen_ndr/dfs.h 	uint32_t state;
state              58 librpc/gen_ndr/dfs.h 	uint32_t state;
state              66 librpc/gen_ndr/dfs.h 	uint32_t state;
state              74 librpc/gen_ndr/dfs.h 	uint32_t state;
state              91 librpc/gen_ndr/dfs.h 	uint32_t state;
state             134 librpc/gen_ndr/dfs.h 	uint32_t state;
state             152 librpc/gen_ndr/dfs.h 	uint32_t state;
state             169 librpc/gen_ndr/dfs.h 	uint32_t state;
state             176 librpc/gen_ndr/dfs.h 	uint32_t state;
state             154 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state             194 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state             242 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state             275 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
state             304 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
state             351 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_StorageState(ndr, "state", r->state);
state             374 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state             428 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state             502 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state             529 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state             585 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state             661 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state             715 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state             759 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state             811 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state             927 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state             985 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state            1063 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state            1181 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
state            1192 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
state            1203 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_StorageState(ndr, "state", r->state);
state            1302 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_VolumeState(ndr, NDR_SCALARS, r->state));
state            1330 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_VolumeState(ndr, NDR_SCALARS, &r->state));
state            1362 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_VolumeState(ndr, "state", r->state);
state            1373 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_push_dfs_StorageState(ndr, NDR_SCALARS, r->state));
state            1385 librpc/gen_ndr/ndr_dfs.c 		NDR_CHECK(ndr_pull_dfs_StorageState(ndr, NDR_SCALARS, &r->state));
state            1397 librpc/gen_ndr/ndr_dfs.c 	ndr_print_dfs_StorageState(ndr, "state", r->state);
state             138 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceStatus(ndr, NDR_SCALARS, r->state));
state             155 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceStatus(ndr, NDR_SCALARS, &r->state));
state             172 librpc/gen_ndr/ndr_svcctl.c 	ndr_print_svcctl_ServiceStatus(ndr, "state", r->state);
state            2752 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            2789 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            2849 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state            2882 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            2930 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            3015 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state            4650 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            4688 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            4741 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state            4776 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            4821 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            4893 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state            6359 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            6417 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            6512 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state            6564 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_push_svcctl_ServiceState(ndr, NDR_SCALARS, r->in.state));
state            6622 librpc/gen_ndr/ndr_svcctl.c 		NDR_CHECK(ndr_pull_svcctl_ServiceState(ndr, NDR_SCALARS, &r->in.state));
state            6732 librpc/gen_ndr/ndr_svcctl.c 		ndr_print_svcctl_ServiceState(ndr, "state", r->in.state);
state              75 librpc/gen_ndr/svcctl.h 	enum svcctl_ServiceStatus state;
state             487 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             505 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             691 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             709 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             927 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             949 librpc/gen_ndr/svcctl.h 		enum svcctl_ServiceState state;
state             574 nsswitch/winbind_nss_irix.c 	nsd_logprintf(NSD_LOG_MIN, "entering do_list (winbind) state = %d\n",state);
state             585 nsswitch/winbind_nss_irix.c 	    switch (state) {
state             603 nsswitch/winbind_nss_irix.c 	    switch (state) {
state             165 source3/auth/auth_server.c 	struct server_security_state *state = talloc_get_type_abort(
state             168 source3/auth/auth_server.c 	if (!state->cli || !state->cli->initialised) {
state             172 source3/auth/auth_server.c 	if (send_keepalive(state->cli->fd)) {
state             178 source3/auth/auth_server.c 	cli_shutdown(state->cli);
state             179 source3/auth/auth_server.c 	state->cli = NULL;
state             185 source3/auth/auth_server.c 	if (state->cli) {
state             186 source3/auth/auth_server.c 		cli_shutdown(state->cli);
state             276 source3/auth/auth_server.c 	struct server_security_state *state = talloc_get_type_abort(
state             284 source3/auth/auth_server.c 	cli = state->cli;
state             228 source3/client/client.c 	struct push_state *state = (struct push_state *)priv;
state             231 source3/client/client.c 	if (x_feof(state->f)) {
state             235 source3/client/client.c 	result = readfile(buf, n, state->f);
state             236 source3/client/client.c 	state->nread += result;
state            1628 source3/client/client.c 	struct push_state state;
state            1684 source3/client/client.c 	state.f = f;
state            1685 source3/client/client.c 	state.nread = 0;
state            1688 source3/client/client.c 			  &state);
state            1712 source3/client/client.c 		put_total_size += state.nread;
state            1715 source3/client/client.c 			 state.nread / (1.024*this_time + 1.0e-4),
state            3726 source3/client/client.c 		d_printf("%s|%s|%s\n",(char *)state, name, comment);
state            3736 source3/client/client.c 	fstring state;
state            3745 source3/client/client.c 	fstrcpy( state, "Server" );
state            3747 source3/client/client.c 			  state);
state            3754 source3/client/client.c 	fstrcpy( state, "Workgroup" );
state            3756 source3/client/client.c 			  server_fn, state);
state            4113 source3/client/client.c 	completion_remote_t *info = (completion_remote_t *)state;
state             559 source3/groupdb/mapping_ldb.c 		*(int *)state = -1;
state             567 source3/groupdb/mapping_ldb.c 		*(int *)state = -1;
state             580 source3/groupdb/mapping_ldb.c 		*(int *)state = -1;
state             606 source3/groupdb/mapping_ldb.c 		*(int *)state = -1;
state             621 source3/groupdb/mapping_ldb.c 			*(int *)state = -1;
state             220 source3/groupdb/mapping_tdb.c 	struct find_map_state *state = (struct find_map_state *)private_data;
state             222 source3/groupdb/mapping_tdb.c 	if (!dbrec2map(rec, state->map)) {
state             227 source3/groupdb/mapping_tdb.c 	if (state->name != NULL) {
state             228 source3/groupdb/mapping_tdb.c 		if (strequal(state->name, state->map->nt_name)) {
state             229 source3/groupdb/mapping_tdb.c 			state->found = true;
state             234 source3/groupdb/mapping_tdb.c 		if (state->map->gid == state->gid) {
state             235 source3/groupdb/mapping_tdb.c 			state->found = true;
state             249 source3/groupdb/mapping_tdb.c 	struct find_map_state state;
state             251 source3/groupdb/mapping_tdb.c 	state.found = false;
state             252 source3/groupdb/mapping_tdb.c 	state.name = NULL;	/* Indicate we're looking for gid */
state             253 source3/groupdb/mapping_tdb.c 	state.gid = gid;
state             254 source3/groupdb/mapping_tdb.c 	state.map = map;
state             256 source3/groupdb/mapping_tdb.c 	db->traverse_read(db, find_map, (void *)&state);
state             258 source3/groupdb/mapping_tdb.c 	return state.found;
state             267 source3/groupdb/mapping_tdb.c 	struct find_map_state state;
state             269 source3/groupdb/mapping_tdb.c 	state.found = false;
state             270 source3/groupdb/mapping_tdb.c 	state.name = name;
state             271 source3/groupdb/mapping_tdb.c 	state.map = map;
state             273 source3/groupdb/mapping_tdb.c 	db->traverse_read(db, find_map, (void *)&state);
state             275 source3/groupdb/mapping_tdb.c 	return state.found;
state             313 source3/groupdb/mapping_tdb.c 	struct enum_map_state *state = (struct enum_map_state *)private_data;
state             321 source3/groupdb/mapping_tdb.c 	if (state->sid_name_use != SID_NAME_UNKNOWN
state             322 source3/groupdb/mapping_tdb.c 	    && state->sid_name_use != map.sid_name_use) {
state             328 source3/groupdb/mapping_tdb.c 	if ((state->unix_only == ENUM_ONLY_MAPPED) && (map.gid == -1)) {
state             334 source3/groupdb/mapping_tdb.c 	if ((state->domsid != NULL) &&
state             335 source3/groupdb/mapping_tdb.c 	    (sid_compare_domain(state->domsid, &map.sid) != 0)) {
state             341 source3/groupdb/mapping_tdb.c 	if (!(tmp = SMB_REALLOC_ARRAY(state->maps, GROUP_MAP,
state             342 source3/groupdb/mapping_tdb.c 				      state->num_maps+1))) {
state             348 source3/groupdb/mapping_tdb.c 	state->maps = tmp;
state             349 source3/groupdb/mapping_tdb.c 	state->maps[state->num_maps] = map;
state             350 source3/groupdb/mapping_tdb.c 	state->num_maps++;
state             359 source3/groupdb/mapping_tdb.c 	struct enum_map_state state;
state             361 source3/groupdb/mapping_tdb.c 	state.domsid = domsid;
state             362 source3/groupdb/mapping_tdb.c 	state.sid_name_use = sid_name_use;
state             363 source3/groupdb/mapping_tdb.c 	state.unix_only = unix_only;
state             364 source3/groupdb/mapping_tdb.c 	state.num_maps = 0;
state             365 source3/groupdb/mapping_tdb.c 	state.maps = NULL;
state             367 source3/groupdb/mapping_tdb.c 	if (db->traverse_read(db, collect_map, (void *)&state) < 0) {
state             371 source3/groupdb/mapping_tdb.c 	*pp_rmap = state.maps;
state             372 source3/groupdb/mapping_tdb.c 	*p_num_entries = state.num_maps;
state             545 source3/groupdb/mapping_tdb.c 	struct aliasmem_state *state = (struct aliasmem_state *)priv;
state             565 source3/groupdb/mapping_tdb.c 		if (sid_compare(state->alias, &alias) != 0)
state             584 source3/groupdb/mapping_tdb.c 						      state->sids,
state             585 source3/groupdb/mapping_tdb.c 						      state->num)))
state             599 source3/groupdb/mapping_tdb.c 	struct aliasmem_state state;
state             611 source3/groupdb/mapping_tdb.c 	state.alias = alias;
state             612 source3/groupdb/mapping_tdb.c 	state.sids = sids;
state             613 source3/groupdb/mapping_tdb.c 	state.num = num;
state             615 source3/groupdb/mapping_tdb.c 	db->traverse_read(db, collect_aliasmem, &state);
state              57 source3/include/nss_info.h 	void *state;
state              83 source3/lib/conn_tdb.c 	struct conn_traverse_state *state =
state              91 source3/lib/conn_tdb.c 	return state->fn(rec, (const struct connections_key *)rec->key.dptr,
state              93 source3/lib/conn_tdb.c 			 state->private_data);
state             115 source3/lib/conn_tdb.c 	struct conn_traverse_state state;
state             117 source3/lib/conn_tdb.c 	state.fn = fn;
state             118 source3/lib/conn_tdb.c 	state.private_data = private_data;
state             120 source3/lib/conn_tdb.c 	return connections_traverse(conn_traverse_fn, (void *)&state);
state             206 source3/lib/ctdbd_conn.c 	struct deferred_msg_state *state = talloc_get_type_abort(
state             209 source3/lib/ctdbd_conn.c 	messaging_dispatch_rec(state->msg_ctx, state->rec);
state             210 source3/lib/ctdbd_conn.c 	TALLOC_FREE(state);
state             226 source3/lib/ctdbd_conn.c 	struct req_pull_state *state = (struct req_pull_state *)private_data;
state             228 source3/lib/ctdbd_conn.c 	state->req.data = talloc_move(state->mem_ctx, &buf);
state             229 source3/lib/ctdbd_conn.c 	state->req.length = length;
state             287 source3/lib/ctdbd_conn.c 	struct req_pull_state state;
state             309 source3/lib/ctdbd_conn.c 	ZERO_STRUCT(state);
state             310 source3/lib/ctdbd_conn.c 	state.mem_ctx = mem_ctx;
state             313 source3/lib/ctdbd_conn.c 			    &state, &status)) {
state             326 source3/lib/ctdbd_conn.c 	hdr = (struct ctdb_req_header *)state.req.data;
state             368 source3/lib/ctdbd_conn.c 			      msg_state, state.req.length, msg))) {
state            1034 source3/lib/ctdbd_conn.c 	struct ctdbd_traverse_state *state =
state            1076 source3/lib/ctdbd_conn.c 	if (state->fn) {
state            1077 source3/lib/ctdbd_conn.c 		state->fn(key, data, state->private_data);
state            1101 source3/lib/ctdbd_conn.c 	struct ctdbd_traverse_state state;
state            1135 source3/lib/ctdbd_conn.c 	state.fn = fn;
state            1136 source3/lib/ctdbd_conn.c 	state.private_data = private_data;
state            1143 source3/lib/ctdbd_conn.c 				   ctdb_traverse_handler, &state, &status)) {
state            1037 source3/lib/dbwrap_ctdb.c 	struct traverse_state *state = (struct traverse_state *)private_data;
state            1039 source3/lib/dbwrap_ctdb.c 	TALLOC_CTX *tmp_ctx = talloc_new(state->db);
state            1041 source3/lib/dbwrap_ctdb.c 	rec = db_ctdb_fetch_locked(state->db, tmp_ctx, key);
state            1043 source3/lib/dbwrap_ctdb.c 		state->fn(rec, state->private_data);
state            1051 source3/lib/dbwrap_ctdb.c 	struct traverse_state *state = (struct traverse_state *)private_data;
state            1053 source3/lib/dbwrap_ctdb.c 	TALLOC_CTX *tmp_ctx = talloc_new(state->db);
state            1056 source3/lib/dbwrap_ctdb.c 	rec = db_ctdb_fetch_locked(state->db, tmp_ctx, kbuf);
state            1058 source3/lib/dbwrap_ctdb.c 		ret = state->fn(rec, state->private_data);
state            1071 source3/lib/dbwrap_ctdb.c 	struct traverse_state state;
state            1073 source3/lib/dbwrap_ctdb.c 	state.db = db;
state            1074 source3/lib/dbwrap_ctdb.c 	state.fn = fn;
state            1075 source3/lib/dbwrap_ctdb.c 	state.private_data = private_data;
state            1080 source3/lib/dbwrap_ctdb.c 		return tdb_traverse(ctx->wtdb->tdb, traverse_persistent_callback, &state);
state            1084 source3/lib/dbwrap_ctdb.c 	ctdbd_traverse(ctx->db_id, traverse_callback, &state);
state            1100 source3/lib/dbwrap_ctdb.c 	struct traverse_state *state = (struct traverse_state *)private_data;
state            1106 source3/lib/dbwrap_ctdb.c 	rec.private_data = state->db;
state            1107 source3/lib/dbwrap_ctdb.c 	state->fn(&rec, state->private_data);
state            1113 source3/lib/dbwrap_ctdb.c 	struct traverse_state *state = (struct traverse_state *)private_data;
state            1119 source3/lib/dbwrap_ctdb.c 	rec.private_data = state->db;
state            1128 source3/lib/dbwrap_ctdb.c 	return state->fn(&rec, state->private_data);
state            1138 source3/lib/dbwrap_ctdb.c 	struct traverse_state state;
state            1140 source3/lib/dbwrap_ctdb.c 	state.db = db;
state            1141 source3/lib/dbwrap_ctdb.c 	state.fn = fn;
state            1142 source3/lib/dbwrap_ctdb.c 	state.private_data = private_data;
state            1147 source3/lib/dbwrap_ctdb.c 		return tdb_traverse_read(ctx->wtdb->tdb, traverse_persistent_callback_read, &state);
state            1150 source3/lib/dbwrap_ctdb.c 	ctdbd_traverse(ctx->db_id, traverse_read_callback, &state);
state              59 source3/lib/dbwrap_tdb.c 	struct tdb_fetch_locked_state *state =
state              62 source3/lib/dbwrap_tdb.c 	state->result = (struct db_record *)talloc_size(
state              63 source3/lib/dbwrap_tdb.c 		state->mem_ctx,
state              66 source3/lib/dbwrap_tdb.c 	if (state->result == NULL) {
state              70 source3/lib/dbwrap_tdb.c 	state->result->key.dsize = key.dsize;
state              71 source3/lib/dbwrap_tdb.c 	state->result->key.dptr = ((uint8 *)state->result)
state              73 source3/lib/dbwrap_tdb.c 	memcpy(state->result->key.dptr, key.dptr, key.dsize);
state              75 source3/lib/dbwrap_tdb.c 	state->result->value.dsize = data.dsize;
state              78 source3/lib/dbwrap_tdb.c 		state->result->value.dptr = state->result->key.dptr+key.dsize;
state              79 source3/lib/dbwrap_tdb.c 		memcpy(state->result->value.dptr, data.dptr, data.dsize);
state              82 source3/lib/dbwrap_tdb.c 		state->result->value.dptr = NULL;
state              93 source3/lib/dbwrap_tdb.c 	struct tdb_fetch_locked_state state;
state             109 source3/lib/dbwrap_tdb.c 	state.mem_ctx = mem_ctx;
state             110 source3/lib/dbwrap_tdb.c 	state.result = NULL;
state             112 source3/lib/dbwrap_tdb.c 	tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetchlock_parse, &state);
state             114 source3/lib/dbwrap_tdb.c 	if (state.result == NULL) {
state             115 source3/lib/dbwrap_tdb.c 		db_tdb_fetchlock_parse(key, tdb_null, &state);
state             118 source3/lib/dbwrap_tdb.c 	if (state.result == NULL) {
state             123 source3/lib/dbwrap_tdb.c 	talloc_set_destructor(state.result, db_tdb_record_destr);
state             125 source3/lib/dbwrap_tdb.c 	state.result->private_data = talloc_reference(state.result, ctx);
state             126 source3/lib/dbwrap_tdb.c 	state.result->store = db_tdb_store;
state             127 source3/lib/dbwrap_tdb.c 	state.result->delete_rec = db_tdb_delete;
state             129 source3/lib/dbwrap_tdb.c 	DEBUG(10, ("Allocated locked data 0x%p\n", state.result));
state             131 source3/lib/dbwrap_tdb.c 	return state.result;
state             143 source3/lib/dbwrap_tdb.c 	struct tdb_fetch_state *state =
state             146 source3/lib/dbwrap_tdb.c 	state->data.dptr = (uint8 *)talloc_memdup(state->mem_ctx, data.dptr,
state             148 source3/lib/dbwrap_tdb.c 	if (state->data.dptr == NULL) {
state             149 source3/lib/dbwrap_tdb.c 		state->result = -1;
state             153 source3/lib/dbwrap_tdb.c 	state->data.dsize = data.dsize;
state             163 source3/lib/dbwrap_tdb.c 	struct tdb_fetch_state state;
state             165 source3/lib/dbwrap_tdb.c 	state.mem_ctx = mem_ctx;
state             166 source3/lib/dbwrap_tdb.c 	state.result = 0;
state             167 source3/lib/dbwrap_tdb.c 	state.data = tdb_null;
state             169 source3/lib/dbwrap_tdb.c 	tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetch_parse, &state);
state             171 source3/lib/dbwrap_tdb.c 	if (state.result == -1) {
state             175 source3/lib/dbwrap_tdb.c 	*pdata = state.data;
state              92 source3/lib/eventlog/eventlog.c 	struct trav_size_struct	 *tsize = (struct trav_size_struct *)state;
state             409 source3/lib/gencache.c 	struct gencache_iterate_state *state =
state             431 source3/lib/gencache.c 	if (fnmatch(state->pattern, keystr, 0) != 0) {
state             455 source3/lib/gencache.c 	state->fn(keystr, timeout_endp, timeout, state->priv);
state             466 source3/lib/gencache.c 	struct gencache_iterate_state state;
state             475 source3/lib/gencache.c 	state.fn = fn;
state             476 source3/lib/gencache.c 	state.pattern = keystr_pattern;
state             477 source3/lib/gencache.c 	state.priv = data;
state             478 source3/lib/gencache.c 	tdb_traverse(cache, gencache_iterate_fn, &state);
state             692 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_read_file_state *state =
state             694 source3/lib/ldb/common/ldb_ldif.c 	return fgetc(state->f);
state             699 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_read_file_state state;
state             700 source3/lib/ldb/common/ldb_ldif.c 	state.f = f;
state             701 source3/lib/ldb/common/ldb_ldif.c 	return ldb_ldif_read(ldb, fgetc_file, &state);
state             714 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_read_string_state *state =
state             716 source3/lib/ldb/common/ldb_ldif.c 	if (state->s[0] != 0) {
state             717 source3/lib/ldb/common/ldb_ldif.c 		return *state->s++;
state             724 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_read_string_state state;
state             726 source3/lib/ldb/common/ldb_ldif.c 	state.s = *s;
state             727 source3/lib/ldb/common/ldb_ldif.c 	ldif = ldb_ldif_read(ldb, fgetc_string, &state);
state             728 source3/lib/ldb/common/ldb_ldif.c 	*s = state.s;
state             744 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_write_file_state *state =
state             750 source3/lib/ldb/common/ldb_ldif.c 	ret = vfprintf(state->f, fmt, ap);
state             757 source3/lib/ldb/common/ldb_ldif.c 	struct ldif_write_file_state state;
state             758 source3/lib/ldb/common/ldb_ldif.c 	state.f = f;
state             759 source3/lib/ldb/common/ldb_ldif.c 	return ldb_ldif_write(ldb, fprintf_file, &state, ldif);
state             699 source3/lib/ldb/include/ldb.h 	enum ldb_state state;
state             140 source3/lib/ldb/ldb_ildap/ldb_ildap.c 	if (ac->req->state == LDAP_REQUEST_PENDING) {
state             182 source3/lib/ldb/ldb_ildap/ldb_ildap.c 		handle->state = LDB_ASYNC_DONE;
state             196 source3/lib/ldb/ldb_ildap/ldb_ildap.c 		handle->state = LDB_ASYNC_DONE;
state             210 source3/lib/ldb/ldb_ildap/ldb_ildap.c 		handle->state = LDB_ASYNC_DONE;
state             224 source3/lib/ldb/ldb_ildap/ldb_ildap.c 		handle->state = LDB_ASYNC_DONE;
state             260 source3/lib/ldb/ldb_ildap/ldb_ildap.c 				handle->state = LDB_ASYNC_DONE;
state             285 source3/lib/ldb/ldb_ildap/ldb_ildap.c 				handle->state = LDB_ASYNC_PENDING;
state             294 source3/lib/ldb/ldb_ildap/ldb_ildap.c 				handle->state = LDB_ASYNC_PENDING;
state             347 source3/lib/ldb/ldb_ildap/ldb_ildap.c 	h->state = LDB_ASYNC_INIT;
state             418 source3/lib/ldb/ldb_ildap/ldb_ildap.c 	req->handle->state = LDB_ASYNC_DONE;
state             693 source3/lib/ldb/ldb_ildap/ldb_ildap.c 	if (handle->state == LDB_ASYNC_DONE) {
state             701 source3/lib/ldb/ldb_ildap/ldb_ildap.c 	handle->state = LDB_ASYNC_INIT;
state             710 source3/lib/ldb/ldb_ildap/ldb_ildap.c 		while (handle->status == LDB_SUCCESS && handle->state != LDB_ASYNC_DONE) {
state              90 source3/lib/ldb/ldb_ldap/ldb_ldap.c 	h->state = LDB_ASYNC_INIT;
state             563 source3/lib/ldb/ldb_ldap/ldb_ldap.c 			handle->state = LDB_ASYNC_DONE;
state             611 source3/lib/ldb/ldb_ldap/ldb_ldap.c 		handle->state = LDB_ASYNC_DONE;
state             630 source3/lib/ldb/ldb_ldap/ldb_ldap.c 		handle->state = LDB_ASYNC_DONE;
state             654 source3/lib/ldb/ldb_ldap/ldb_ldap.c 	handle->state = LDB_ASYNC_DONE;
state             667 source3/lib/ldb/ldb_ldap/ldb_ldap.c 	if (handle->state == LDB_ASYNC_DONE) {
state             675 source3/lib/ldb/ldb_ldap/ldb_ldap.c 	handle->state = LDB_ASYNC_PENDING;
state             704 source3/lib/ldb/ldb_ldap/ldb_ldap.c 		while (handle->status == LDB_SUCCESS && handle->state != LDB_ASYNC_DONE) {
state             730 source3/lib/ldb/ldb_ldap/ldb_ldap.c 		handle->state = LDB_ASYNC_DONE;
state              83 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	h->state = LDB_ASYNC_INIT;
state             991 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_PENDING;
state            1013 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1039 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1157 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1177 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1352 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1372 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1406 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1425 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state            1461 source3/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 	req->handle->state = LDB_ASYNC_DONE;
state             655 source3/lib/ldb/ldb_tdb/ldb_index.c 			handle->state = LDB_ASYNC_DONE;
state             662 source3/lib/ldb/ldb_tdb/ldb_index.c 			handle->state = LDB_ASYNC_DONE;
state             698 source3/lib/ldb/ldb_tdb/ldb_index.c 			handle->state = LDB_ASYNC_DONE;
state             704 source3/lib/ldb/ldb_tdb/ldb_index.c         	handle->state = LDB_ASYNC_PENDING;
state             708 source3/lib/ldb/ldb_tdb/ldb_index.c 			handle->state = LDB_ASYNC_DONE;
state             769 source3/lib/ldb/ldb_tdb/ldb_index.c 		handle->state = LDB_ASYNC_DONE;
state            1098 source3/lib/ldb/ldb_tdb/ldb_index.c 	struct ldb_module *module = (struct ldb_module *)state;
state             366 source3/lib/ldb/ldb_tdb/ldb_search.c 	struct ldb_handle *handle = talloc_get_type(state, struct ldb_handle);
state             379 source3/lib/ldb/ldb_tdb/ldb_search.c 		handle->state = LDB_ASYNC_DONE;
state             386 source3/lib/ldb/ldb_tdb/ldb_search.c 		handle->state = LDB_ASYNC_DONE;
state             402 source3/lib/ldb/ldb_tdb/ldb_search.c 			handle->state = LDB_ASYNC_DONE;
state             420 source3/lib/ldb/ldb_tdb/ldb_search.c 		handle->state = LDB_ASYNC_DONE;
state             426 source3/lib/ldb/ldb_tdb/ldb_search.c         handle->state = LDB_ASYNC_PENDING;
state             454 source3/lib/ldb/ldb_tdb/ldb_search.c 	handle->state = LDB_ASYNC_DONE;
state             505 source3/lib/ldb/ldb_tdb/ldb_search.c 		req->handle->state = LDB_ASYNC_DONE;
state             517 source3/lib/ldb/ldb_tdb/ldb_search.c 	req->handle->state = LDB_ASYNC_DONE;
state             104 source3/lib/ldb/ldb_tdb/ldb_tdb.c 	h->state = LDB_ASYNC_INIT;
state             325 source3/lib/ldb/ldb_tdb/ldb_tdb.c 	req->handle->state = LDB_ASYNC_DONE;
state             435 source3/lib/ldb/ldb_tdb/ldb_tdb.c 	req->handle->state = LDB_ASYNC_DONE;
state             802 source3/lib/ldb/ldb_tdb/ldb_tdb.c 	req->handle->state = LDB_ASYNC_DONE;
state             873 source3/lib/ldb/ldb_tdb/ldb_tdb.c 	req->handle->state = LDB_ASYNC_DONE;
state              89 source3/lib/ldb/modules/asq.c 	h->state = LDB_ASYNC_INIT;
state             112 source3/lib/ldb/modules/asq.c 	handle->state = LDB_ASYNC_DONE;
state             356 source3/lib/ldb/modules/asq.c 	if (handle->state == LDB_ASYNC_DONE) {
state             360 source3/lib/ldb/modules/asq.c 	handle->state = LDB_ASYNC_PENDING;
state             381 source3/lib/ldb/modules/asq.c 		if (ac->base_req->handle->state != LDB_ASYNC_DONE) {
state             410 source3/lib/ldb/modules/asq.c 		if (ac->reqs[ac->cur_req]->handle->state == LDB_ASYNC_DONE) {
state             428 source3/lib/ldb/modules/asq.c 	handle->state = LDB_ASYNC_DONE;
state             436 source3/lib/ldb/modules/asq.c 	while (handle->state != LDB_ASYNC_DONE) {
state             161 source3/lib/ldb/modules/ldb_map.c 	h->state = LDB_ASYNC_INIT;
state            1051 source3/lib/ldb/modules/ldb_map.c 	if (handle->state == LDB_ASYNC_DONE) {
state            1055 source3/lib/ldb/modules/ldb_map.c 	handle->state = LDB_ASYNC_PENDING;
state            1074 source3/lib/ldb/modules/ldb_map.c 			if (req->handle->state != LDB_ASYNC_DONE) {
state            1092 source3/lib/ldb/modules/ldb_map.c 		if (req->handle->state != LDB_ASYNC_DONE) {
state            1105 source3/lib/ldb/modules/ldb_map.c 	handle->state = LDB_ASYNC_DONE;
state            1114 source3/lib/ldb/modules/ldb_map.c 	while (handle->state != LDB_ASYNC_DONE) {
state             195 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             212 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             325 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             365 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             481 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             503 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             592 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             609 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state             631 source3/lib/ldb/modules/ldb_map_inbound.c 	handle->state = LDB_ASYNC_INIT;
state            1269 source3/lib/ldb/modules/ldb_map_outbound.c 	h->state = LDB_ASYNC_INIT;
state              80 source3/lib/ldb/modules/objectclass.c 	h->state = LDB_ASYNC_INIT;
state             563 source3/lib/ldb/modules/objectclass.c 	h->state = LDB_ASYNC_INIT;
state             581 source3/lib/ldb/modules/objectclass.c 	if (handle->state == LDB_ASYNC_DONE) {
state             585 source3/lib/ldb/modules/objectclass.c 	handle->state = LDB_ASYNC_PENDING;
state             603 source3/lib/ldb/modules/objectclass.c 		if (ac->down_req->handle->state != LDB_ASYNC_DONE) {
state             622 source3/lib/ldb/modules/objectclass.c 		if (ac->search_req->handle->state != LDB_ASYNC_DONE) {
state             641 source3/lib/ldb/modules/objectclass.c 		if (ac->mod_req->handle->state != LDB_ASYNC_DONE) {
state             655 source3/lib/ldb/modules/objectclass.c 	handle->state = LDB_ASYNC_DONE;
state             663 source3/lib/ldb/modules/objectclass.c 	while (handle->state != LDB_ASYNC_DONE) {
state             167 source3/lib/ldb/modules/paged_results.c 	h->state = LDB_ASYNC_INIT;
state             329 source3/lib/ldb/modules/paged_results.c 		h->state = LDB_ASYNC_DONE;
state             357 source3/lib/ldb/modules/paged_results.c 			handle->state = LDB_ASYNC_DONE;
state             367 source3/lib/ldb/modules/paged_results.c 	handle->state = LDB_ASYNC_DONE;
state             374 source3/lib/ldb/modules/paged_results.c 			handle->state = LDB_ASYNC_DONE;
state             455 source3/lib/ldb/modules/paged_results.c 	if (handle->state == LDB_ASYNC_DONE) {
state             459 source3/lib/ldb/modules/paged_results.c 	handle->state = LDB_ASYNC_PENDING;
state             463 source3/lib/ldb/modules/paged_results.c 	if (ac->store->req->handle->state == LDB_ASYNC_DONE) {
state             478 source3/lib/ldb/modules/paged_results.c 		while (ac->store->req->handle->state != LDB_ASYNC_DONE) {
state             481 source3/lib/ldb/modules/paged_results.c 				handle->state = LDB_ASYNC_DONE;
state             500 source3/lib/ldb/modules/paged_results.c 		handle->state = LDB_ASYNC_DONE;
state             508 source3/lib/ldb/modules/paged_results.c 	    ac->store->req->handle->state == LDB_ASYNC_DONE) {
state              86 source3/lib/ldb/modules/paged_searches.c 	h->state = LDB_ASYNC_INIT;
state             321 source3/lib/ldb/modules/paged_searches.c 	if (handle->state == LDB_ASYNC_DONE) {
state             325 source3/lib/ldb/modules/paged_searches.c 	handle->state = LDB_ASYNC_PENDING;
state             342 source3/lib/ldb/modules/paged_searches.c 	if (ac->new_req->handle->state != LDB_ASYNC_DONE) {
state             361 source3/lib/ldb/modules/paged_searches.c 	handle->state = LDB_ASYNC_DONE;
state             369 source3/lib/ldb/modules/paged_searches.c 	while (handle->state != LDB_ASYNC_DONE) {
state             173 source3/lib/ldb/modules/rdn_name.c 	h->state = LDB_ASYNC_INIT;
state             251 source3/lib/ldb/modules/rdn_name.c 	if (handle->state == LDB_ASYNC_DONE) {
state             255 source3/lib/ldb/modules/rdn_name.c 	handle->state = LDB_ASYNC_PENDING;
state             272 source3/lib/ldb/modules/rdn_name.c 		if (ac->down_req->handle->state != LDB_ASYNC_DONE) {
state             290 source3/lib/ldb/modules/rdn_name.c 		if (ac->mod_req->handle->state != LDB_ASYNC_DONE) {
state             304 source3/lib/ldb/modules/rdn_name.c 	handle->state = LDB_ASYNC_DONE;
state             312 source3/lib/ldb/modules/rdn_name.c 	while (handle->state != LDB_ASYNC_DONE) {
state              89 source3/lib/ldb/modules/sort.c 	h->state = LDB_ASYNC_INIT;
state             268 source3/lib/ldb/modules/sort.c 			h->state = LDB_ASYNC_DONE;
state             395 source3/lib/ldb/modules/sort.c 	handle->state = ac->req->handle->state;
state             402 source3/lib/ldb/modules/sort.c 	if (handle->state == LDB_ASYNC_DONE) {
state             103 source3/lib/messages.c 	struct msg_all *msg_all = (struct msg_all *)state;
state             134 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             138 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->account);
state             139 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->password);
state             141 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->window_creds_prompt) {
state             142 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_destroy(GTK_WIDGET(state->window_creds_prompt));
state             143 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->window_creds_prompt = NULL;
state             150 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             154 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->account);
state             155 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->password);
state             157 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->window_creds_prompt) {
state             158 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_destroy(GTK_WIDGET(state->window_creds_prompt));
state             159 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->window_creds_prompt = NULL;
state             161 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->window_do_change) {
state             162 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_destroy(GTK_WIDGET(state->window_do_change));
state             163 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->window_do_change = NULL;
state             182 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	libnetapi_free(state->ctx);
state             183 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	free_join_state(state);
state             189 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             195 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	info1005.sv1005_comment = state->comment_new;
state             197 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = NetServerSetInfo(state->target_hostname,
state             204 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_main),
state             209 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 						libnetapi_get_error_string(state->ctx, status));
state             211 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_main));
state             221 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply), FALSE);
state             231 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             233 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (!state->settings_changed) {
state             239 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_main),
state             258 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->window_main) {
state             259 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_destroy(GTK_WIDGET(state->window_main));
state             260 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->window_main = NULL;
state             262 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	do_cleanup(state);
state             272 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data2;
state             276 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->settings_changed = TRUE;
state             283 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state             296 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_label_set_text(GTK_LABEL(state->label_reboot),
state             300 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_destroy(GTK_WIDGET(state->window_do_change));
state             307 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		status = NetGetJoinInformation(state->target_hostname,
state             317 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		SAFE_FREE(state->name_buffer_new);
state             318 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_buffer_new = strdup(buffer);
state             319 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_type_new = type;
state             320 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_buffer_initial = strdup(buffer);
state             321 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_type_initial = type;
state             324 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_label_set_text(GTK_LABEL(state->label_current_name_buffer),
state             325 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   state->name_buffer_new);
state             326 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (state->name_type_new == NetSetupDomainName) {
state             327 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_label_set_text(GTK_LABEL(state->label_current_name_type),
state             330 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_label_set_text(GTK_LABEL(state->label_current_name_type),
state             340 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             350 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->account);
state             351 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->account = strdup(entry_text);
state             358 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             367 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->account);
state             368 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->account = strdup(entry_text);
state             369 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_emit_by_name(state->button_ok_creds, "clicked");
state             376 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             390 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->password);
state             391 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->password = strdup(entry_text);
state             398 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             411 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->password);
state             412 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->password = strdup(entry_text);
state             413 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_emit_by_name(state->button_ok_creds, "clicked");
state             419 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             423 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->account);
state             424 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->password);
state             426 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_return_username(state->entry_account, (gpointer)state);
state             427 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_return_password(state->entry_password, (gpointer)state);
state             429 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->window_creds_prompt) {
state             430 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_destroy(GTK_WIDGET(state->window_creds_prompt));
state             431 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->window_creds_prompt = NULL;
state             438 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             440 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_grab_focus(GTK_WIDGET(state->button_ok));
state             441 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_emit_by_name(state->button_ok, "clicked");
state             454 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             456 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_emit_by_name(state->button_get_ous, "clicked");
state             465 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             467 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	switch (state->name_type_initial) {
state             474 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			newname = strdup(gtk_label_get_text(GTK_LABEL(state->label_full_computer_name)));
state             484 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (!state->account || !state->password) {
state             486 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				callback_creds_prompt(NULL, state,
state             491 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (!state->account || !state->password) {
state             496 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			status = NetRenameMachineInDomain(state->target_hostname,
state             498 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 							  state->account,
state             499 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 							  state->password,
state             506 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			str = libnetapi_get_error_string(state->ctx, status);
state             519 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state             526 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_main));
state             544 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             556 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(state->window_do_change));
state             562 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->window_creds_prompt = window;
state             583 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->entry_account = gtk_entry_new();
state             584 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_entry_set_max_length(GTK_ENTRY(state->entry_account), MAX_CRED_LEN);
state             585 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_connect(G_OBJECT(state->entry_account), "activate",
state             587 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state             588 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_editable_select_region(GTK_EDITABLE(state->entry_account),
state             589 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   0, GTK_ENTRY(state->entry_account)->text_length);
state             590 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_box_pack_start(GTK_BOX(box1), state->entry_account, TRUE, TRUE, 0);
state             591 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_show(state->entry_account);
state             599 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->entry_password = gtk_entry_new();
state             600 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_entry_set_max_length(GTK_ENTRY(state->entry_password), MAX_CRED_LEN);
state             601 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_entry_set_visibility(GTK_ENTRY(state->entry_password), FALSE);
state             602 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_connect(G_OBJECT(state->entry_password), "activate",
state             604 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state             605 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_editable_set_editable(GTK_EDITABLE(state->entry_password), TRUE);
state             606 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_editable_select_region(GTK_EDITABLE(state->entry_password),
state             607 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   0, GTK_ENTRY(state->entry_password)->text_length);
state             608 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_box_pack_start(GTK_BOX(box1), state->entry_password, TRUE, TRUE, 0);
state             609 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_show(state->entry_password);
state             618 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->button_ok_creds = gtk_button_new_from_stock(GTK_STOCK_OK);
state             619 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_grab_focus(GTK_WIDGET(state->button_ok_creds));
state             620 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_container_add(GTK_CONTAINER(bbox), state->button_ok_creds);
state             621 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_connect(G_OBJECT(state->button_ok_creds), "clicked",
state             623 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state             624 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_show(state->button_ok_creds);
state             630 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state             651 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             653 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->hostname_changed) {
state             654 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		callback_do_hostname_change(NULL, state);
state             658 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	switch (state->name_type_initial) {
state             669 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	switch (state->name_type_new) {
state             680 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	account_ou = gtk_combo_box_get_active_text(GTK_COMBO_BOX(state->entry_ou_list));
state             685 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if ((state->name_type_initial != NetSetupDomainName) &&
state             686 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	    (state->name_type_new != NetSetupDomainName)) {
state             691 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_new == NetSetupDomainName) {
state             699 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if ((state->name_type_initial == NetSetupDomainName) &&
state             700 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	    (state->name_type_new == NetSetupWorkgroupName)) {
state             714 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (!state->account || !state->password) {
state             716 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				callback_creds_prompt(NULL, state,
state             721 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (!state->account || !state->password) {
state             727 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		status = NetUnjoinDomain(state->target_hostname,
state             728 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 					 state->account,
state             729 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 					 state->password,
state             732 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			callback_do_freeauth(NULL, state);
state             733 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			err_str = libnetapi_get_error_string(state->ctx, status);
state             740 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state             746 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 							state->name_buffer_initial,
state             763 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				     state->name_buffer_new,
state             769 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			err_str = libnetapi_get_error_string(state->ctx, status);
state             772 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state             777 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 							state->name_buffer_new,
state             781 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state             793 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->account || !state->password) {
state             795 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			callback_creds_prompt(NULL, state,
state             800 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->account || !state->password) {
state             808 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_buffer_new,
state             811 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		debug("as %s ", state->account);
state             813 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		debug("with %s ", state->password);
state             818 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = NetJoinDomain(state->target_hostname,
state             819 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			       state->name_buffer_new,
state             821 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			       state->account,
state             822 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			       state->password,
state             825 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		callback_do_freeauth(NULL, state);
state             826 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		err_str = libnetapi_get_error_string(state->ctx, status);
state             829 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state             835 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 						state->name_buffer_new,
state             839 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state             852 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_do_freeauth(NULL, state);
state             853 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state             858 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 					state->name_buffer_new,
state             862 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state             866 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_do_reboot(NULL, state->window_parent, state);
state             874 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             879 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->hostname_changed = FALSE;
state             880 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             881 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_label_set_text(GTK_LABEL(state->label_full_computer_name), "");
state             884 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (strcasecmp(state->my_hostname, entry_text) == 0) {
state             885 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->hostname_changed = FALSE;
state             886 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             889 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->hostname_changed = TRUE;
state             892 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_initial == NetSetupDomainName) {
state             893 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (asprintf(&str, "%s.%s", entry_text, state->my_dnsdomain) == -1) {
state             901 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_label_set_text(GTK_LABEL(state->label_full_computer_name), str);
state             904 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->hostname_changed && entry_text && entry_text[0] != 0 && entry_text[0] != '.') {
state             905 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), TRUE);
state             913 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             922 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply),
state             927 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (entry_text && state->comment && strcasecmp(state->comment, entry_text) == 0) {
state             929 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply),
state             934 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply), TRUE);
state             935 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->comment_new);
state             936 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->comment_new = strdup(entry_text);
state             945 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             950 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             953 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if ((strcasecmp(state->name_buffer_initial, entry_text) == 0) &&
state             954 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	    (state->name_type_initial == NetSetupWorkgroupName)) {
state             955 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             958 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), TRUE);
state             959 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->name_buffer_new);
state             960 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->name_buffer_new = strdup(entry_text);
state             961 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->name_type_new = NetSetupWorkgroupName;
state             968 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             973 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             976 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if ((strcasecmp(state->name_buffer_initial, entry_text) == 0) &&
state             977 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	    (state->name_type_initial == NetSetupDomainName)) {
state             978 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state             981 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), TRUE);
state             982 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_ou_list), TRUE);
state             983 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_get_ous), TRUE);
state             984 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	SAFE_FREE(state->name_buffer_new);
state             985 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->name_buffer_new = strdup(entry_text);
state             986 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->name_type_new = NetSetupDomainName;
state             992 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state             994 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_grab_focus(GTK_WIDGET(state->button_apply));
state             995 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_emit_by_name(state->button_apply, "clicked");
state            1001 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state            1003 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_workgroup), TRUE);
state            1004 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_grab_focus(GTK_WIDGET(state->entry_workgroup));
state            1005 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_domain), FALSE);
state            1006 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_ou_list), FALSE);
state            1007 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_get_ous), FALSE);
state            1008 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_enter_workgroup_and_unlock(state->entry_workgroup, state); /* TEST */
state            1014 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state            1016 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_domain), TRUE);
state            1017 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_grab_focus(GTK_WIDGET(state->entry_domain));
state            1018 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->entry_workgroup), FALSE);
state            1019 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	callback_enter_domain_and_unlock(state->entry_domain, state); /* TEST */
state            1034 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state            1038 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	domain = state->name_buffer_new ? state->name_buffer_new : state->name_buffer_initial;
state            1047 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		err_str = libnetapi_get_error_string(state->ctx, status);
state            1050 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_parent),
state            1059 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state            1069 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (!state->account || !state->password) {
state            1071 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		callback_creds_prompt(NULL, state,
state            1076 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (!state->account || !state->password) {
state            1081 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = NetGetJoinableOUs(state->target_hostname,
state            1083 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   state->account,
state            1084 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   state->password,
state            1087 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		callback_do_freeauth(NULL, state);
state            1089 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			libnetapi_get_error_string(state->ctx, status));
state            1095 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 						libnetapi_get_error_string(state->ctx, status));
state            1097 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_window_set_transient_for(GTK_WINDOW(dialog), GTK_WINDOW(state->window_do_change));
state            1103 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	for (i=0; i<state->stored_num_ous; i++) {
state            1104 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_combo_box_remove_text(GTK_COMBO_BOX(state->entry_ou_list), 0);
state            1107 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_combo_box_append_text(GTK_COMBO_BOX(state->entry_ou_list),
state            1111 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->stored_num_ous = num_ous;
state            1112 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_combo_box_set_active(GTK_COMBO_BOX(state->entry_ou_list), num_ous-1);
state            1130 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state            1136 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->server_role == 3) {
state            1138 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		callback_do_freeauth(NULL, state);
state            1139 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		dialog = gtk_message_dialog_new(GTK_WINDOW(state->window_main),
state            1154 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->button_ok = gtk_button_new_from_stock(GTK_STOCK_OK);
state            1155 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->button_get_ous = gtk_button_new_with_label("Scan for joinable OUs");
state            1163 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(window), GTK_WINDOW(state->window_main));
state            1186 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->label_full_computer_name = gtk_label_new(NULL);
state            1192 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1193 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_entry_set_text(GTK_ENTRY(entry), state->my_hostname);
state            1212 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (state->name_type_initial == NetSetupDomainName) {
state            1214 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 state->my_dnsdomain) == -1) {
state            1222 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_label_set_text(GTK_LABEL(state->label_full_computer_name),
state            1225 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_misc_set_alignment(GTK_MISC(state->label_full_computer_name), 0, 0);
state            1227 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				   state->label_full_computer_name, TRUE, TRUE, 0);
state            1228 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_show(state->label_full_computer_name);
state            1240 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->entry_workgroup = gtk_entry_new();
state            1241 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->entry_domain = gtk_entry_new();
state            1245 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_initial == NetSetupDomainName) {
state            1251 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1254 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_entry_set_max_length(GTK_ENTRY(state->entry_domain), 50);
state            1255 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(state->entry_domain), "changed",
state            1257 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1258 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(state->entry_domain), "activate",
state            1260 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1261 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (state->name_type_initial == NetSetupDomainName) {
state            1262 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_entry_set_text(GTK_ENTRY(state->entry_domain),
state            1263 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 					   state->name_buffer_initial);
state            1264 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_widget_set_sensitive(state->entry_workgroup, FALSE);
state            1265 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_widget_set_sensitive(state->entry_domain, TRUE);
state            1267 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_editable_set_editable(GTK_EDITABLE(state->entry_domain), TRUE);
state            1268 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_box_pack_start(GTK_BOX(vbox), state->entry_domain, TRUE, TRUE, 0);
state            1269 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_show(state->entry_domain);
state            1276 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_initial == NetSetupWorkgroupName) {
state            1282 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1284 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_entry_set_max_length(GTK_ENTRY(state->entry_workgroup),
state            1286 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(state->entry_workgroup), "changed",
state            1288 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1289 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(state->entry_workgroup), "activate",
state            1291 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1293 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (state->name_type_initial == NetSetupWorkgroupName) {
state            1294 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_entry_set_text(GTK_ENTRY(state->entry_workgroup),
state            1295 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 					   state->name_buffer_initial);
state            1296 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_widget_set_sensitive(GTK_WIDGET(state->entry_domain), FALSE);
state            1297 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			gtk_widget_set_sensitive(GTK_WIDGET(state->entry_workgroup), TRUE);
state            1299 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_box_pack_start(GTK_BOX(vbox), state->entry_workgroup, TRUE, TRUE, 0);
state            1300 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_show(state->entry_workgroup);
state            1313 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_container_add(GTK_CONTAINER(vbox), state->button_get_ous);
state            1314 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_get_ous), FALSE);
state            1315 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_connect(G_OBJECT(state->button_get_ous), "clicked",
state            1317 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1319 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->entry_ou_list = gtk_combo_box_entry_new_text();
state            1320 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(state->entry_ou_list, FALSE);
state            1321 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_initial == NetSetupWorkgroupName) {
state            1322 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(state->entry_ou_list, FALSE);
state            1323 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(state->button_get_ous, FALSE);
state            1325 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_box_pack_start(GTK_BOX(vbox), state->entry_ou_list, TRUE, TRUE, 0);
state            1326 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_show(state->entry_ou_list);
state            1329 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->label_winbind = gtk_check_button_new_with_label("Modify winbind configuration");
state            1330 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_box_pack_start(GTK_BOX(vbox), state->label_winbind, TRUE, TRUE, 0);
state            1331 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(state->label_winbind, FALSE);
state            1342 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->window_do_change = window;
state            1343 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
state            1344 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_container_add(GTK_CONTAINER(bbox), state->button_ok);
state            1345 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	g_signal_connect(G_OBJECT(state->button_ok), "clicked",
state            1347 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1353 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1365 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = (struct join_state *)data;
state            1390 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_window_set_transient_for(GTK_WINDOW(about), GTK_WINDOW(state->window_main));
state            1431 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->window_main = window;
state            1490 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->button_apply = gtk_button_new_from_stock(GTK_STOCK_APPLY);
state            1496 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->target_hostname && state->uid != 0) {
state            1501 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 state);
state            1504 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 (gpointer)state);
state            1506 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_entry_set_text(GTK_ENTRY(entry), (char *)state->comment);
state            1528 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (state->name_type_initial == NetSetupDomainName) {
state            1529 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (asprintf(&str, "%s.%s", state->my_hostname,
state            1530 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 state->my_dnsdomain) == -1) {
state            1534 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			if (asprintf(&str, "%s.", state->my_hostname) == -1) {
state            1547 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (state->name_type_initial == NetSetupDomainName) {
state            1555 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->label_current_name_type = label;
state            1558 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	label = gtk_label_new(state->name_buffer_initial);
state            1562 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->label_current_name_buffer = label;
state            1583 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			 (gpointer)state);
state            1585 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (!state->target_hostname && state->uid != 0) {
state            1591 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->label_reboot = gtk_label_new(NULL);
state            1592 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_label_set_line_wrap(GTK_LABEL(state->label_reboot), TRUE);
state            1593 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_misc_set_alignment(GTK_MISC(state->label_reboot), 0, 0);
state            1594 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_box_pack_start(GTK_BOX(vbox), state->label_reboot, TRUE, TRUE, 0);
state            1595 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	if (!state->target_hostname && state->uid != 0) {
state            1596 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_label_set_text(GTK_LABEL(state->label_reboot),
state            1600 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	gtk_widget_show(state->label_reboot);
state            1626 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(button2), "clicked", G_CALLBACK(callback_do_exit), state);
state            1634 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_container_add(GTK_CONTAINER(bbox2), state->button_apply);
state            1635 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		g_signal_connect(G_OBJECT(state->button_apply), "clicked",
state            1637 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 state);
state            1638 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply), FALSE);
state            1644 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				 state);
state            1671 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	*state = s;
state            1682 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = NetServerGetInfo(state->target_hostname,
state            1686 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->comment = strdup(info101->sv101_comment);
state            1687 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->comment) {
state            1690 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		SAFE_FREE(state->my_hostname);
state            1691 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->my_hostname = strdup(info101->sv101_name);
state            1692 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->my_hostname) {
state            1707 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = NetServerGetInfo(state->target_hostname,
state            1711 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->comment = strdup(info1005->sv1005_comment);
state            1712 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->comment) {
state            1721 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		libnetapi_get_error_string(state->ctx, status));
state            1744 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->target_hostname = strdup(target_hostname);
state            1745 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->target_hostname) {
state            1780 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->my_hostname = strdup(my_hostname);
state            1781 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->my_hostname) {
state            1784 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		debug("state->my_hostname: %s\n", state->my_hostname);
state            1791 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->my_fqdn = strdup(hp->h_name);
state            1792 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->my_fqdn) {
state            1795 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		debug("state->my_fqdn: %s\n", state->my_fqdn);
state            1797 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		p = strchr(state->my_fqdn, '.');
state            1800 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			state->my_dnsdomain = strdup(p);
state            1802 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 			state->my_dnsdomain = strdup("");
state            1804 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->my_dnsdomain) {
state            1807 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		debug("state->my_dnsdomain: %s\n", state->my_dnsdomain);
state            1813 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		status = NetGetJoinInformation(state->target_hostname,
state            1818 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 				libnetapi_get_error_string(state->ctx, status));
state            1822 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_buffer_initial = strdup(buffer);
state            1823 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		if (!state->name_buffer_initial) {
state            1826 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 		state->name_type_initial = type;
state            1830 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	status = get_server_properties(state);
state            1835 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->uid = geteuid();
state            1837 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	state->ctx = ctx;
state            1848 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	struct join_state *state = NULL;
state            1869 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	ret = init_join_state(&state);
state            1874 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	ret = initialize_join_state(state, debug_level,
state            1881 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	draw_main_window(state);
state            1885 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 	do_cleanup(state);
state             145 source3/lib/privileges.c 	PRIV_SID_LIST *priv = (PRIV_SID_LIST *)state;
state            1636 source3/lib/smbldap.c 	struct smbldap_state *state = (struct smbldap_state *)private_data;
state            1638 source3/lib/smbldap.c 	TALLOC_FREE(state->idle_event);
state            1640 source3/lib/smbldap.c 	if (state->ldap_struct == NULL) {
state            1645 source3/lib/smbldap.c 	if ((state->last_use+SMBLDAP_IDLE_TIME) > now.tv_sec) {
state            1648 source3/lib/smbldap.c 		state->idle_event = event_add_timed(
state            1657 source3/lib/smbldap.c 	smbldap_close(state);
state              37 source3/lib/tallocmsg.c 	struct msg_pool_usage_state *state = (struct msg_pool_usage_state *)_s;
state              40 source3/lib/tallocmsg.c 		sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
state              46 source3/lib/tallocmsg.c 		sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
state              54 source3/lib/tallocmsg.c 	sprintf_append(state->mem_ctx, &state->s, &state->len, &state->buflen,
state              73 source3/lib/tallocmsg.c 	struct msg_pool_usage_state state;
state              79 source3/lib/tallocmsg.c 	state.mem_ctx = talloc_init("msg_pool_usage");
state              80 source3/lib/tallocmsg.c 	if (!state.mem_ctx) {
state              83 source3/lib/tallocmsg.c 	state.len	= 0;
state              84 source3/lib/tallocmsg.c 	state.buflen	= 512;
state              85 source3/lib/tallocmsg.c 	state.s		= NULL;
state              87 source3/lib/tallocmsg.c 	talloc_report_depth_cb(NULL, 0, -1, msg_pool_usage_helper, &state);
state              89 source3/lib/tallocmsg.c 	if (!state.s) {
state              90 source3/lib/tallocmsg.c 		talloc_destroy(state.mem_ctx);
state              95 source3/lib/tallocmsg.c 			   (uint8 *)state.s, strlen(state.s)+1);
state              97 source3/lib/tallocmsg.c 	talloc_destroy(state.mem_ctx);
state             986 source3/lib/util_sock.c 	struct open_socket_out_state *state;
state             989 source3/lib/util_sock.c 	result = tevent_req_create(mem_ctx, &state,
state             994 source3/lib/util_sock.c 	state->ev = ev;
state             995 source3/lib/util_sock.c 	state->ss = *pss;
state             996 source3/lib/util_sock.c 	state->port = port;
state             997 source3/lib/util_sock.c 	state->wait_nsec = 10000;
state             998 source3/lib/util_sock.c 	state->salen = -1;
state            1000 source3/lib/util_sock.c 	state->fd = socket(state->ss.ss_family, SOCK_STREAM, 0);
state            1001 source3/lib/util_sock.c 	if (state->fd == -1) {
state            1005 source3/lib/util_sock.c 	talloc_set_destructor(state, open_socket_out_state_destructor);
state            1015 source3/lib/util_sock.c 		psa6 = (struct sockaddr_in6 *)&state->ss;
state            1020 source3/lib/util_sock.c 				(struct sockaddr *)&(state->ss));
state            1022 source3/lib/util_sock.c 		state->salen = sizeof(struct sockaddr_in6);
state            1027 source3/lib/util_sock.c 		psa = (struct sockaddr_in *)&state->ss;
state            1029 source3/lib/util_sock.c 		state->salen = sizeof(struct sockaddr_in);
state            1032 source3/lib/util_sock.c 	print_sockaddr(addr, sizeof(addr), &state->ss);
state            1035 source3/lib/util_sock.c 	subreq = async_connect_send(state, state->ev, state->fd,
state            1036 source3/lib/util_sock.c 				    (struct sockaddr *)&state->ss,
state            1037 source3/lib/util_sock.c 				    state->salen);
state            1040 source3/lib/util_sock.c 		    subreq, state->ev,
state            1041 source3/lib/util_sock.c 		    timeval_current_ofs(0, state->wait_nsec))) {
state            1059 source3/lib/util_sock.c 	struct open_socket_out_state *state =
state            1083 source3/lib/util_sock.c 		if (state->wait_nsec < 250000) {
state            1084 source3/lib/util_sock.c 			state->wait_nsec *= 1.5;
state            1087 source3/lib/util_sock.c 		subreq = async_connect_send(state, state->ev, state->fd,
state            1088 source3/lib/util_sock.c 					    (struct sockaddr *)&state->ss,
state            1089 source3/lib/util_sock.c 					    state->salen);
state            1094 source3/lib/util_sock.c 			    subreq, state->ev,
state            1095 source3/lib/util_sock.c 			    timeval_current_ofs(0, state->wait_nsec))) {
state            1116 source3/lib/util_sock.c 	struct open_socket_out_state *state =
state            1123 source3/lib/util_sock.c 	*pfd = state->fd;
state            1124 source3/lib/util_sock.c 	state->fd = -1;
state            1174 source3/lib/util_sock.c 	struct open_socket_out_defer_state *state;
state            1176 source3/lib/util_sock.c 	req = tevent_req_create(mem_ctx, &state,
state            1181 source3/lib/util_sock.c 	state->ev = ev;
state            1182 source3/lib/util_sock.c 	state->ss = *pss;
state            1183 source3/lib/util_sock.c 	state->port = port;
state            1184 source3/lib/util_sock.c 	state->timeout = timeout;
state            1187 source3/lib/util_sock.c 		state, ev,
state            1203 source3/lib/util_sock.c 	struct open_socket_out_defer_state *state = tevent_req_data(
state            1214 source3/lib/util_sock.c 	subreq = open_socket_out_send(state, state->ev, &state->ss,
state            1215 source3/lib/util_sock.c 				      state->port, state->timeout);
state            1226 source3/lib/util_sock.c 	struct open_socket_out_defer_state *state = tevent_req_data(
state            1230 source3/lib/util_sock.c 	status = open_socket_out_recv(subreq, &state->fd);
state            1241 source3/lib/util_sock.c 	struct open_socket_out_defer_state *state = tevent_req_data(
state            1248 source3/lib/util_sock.c 	*pfd = state->fd;
state            1249 source3/lib/util_sock.c 	state->fd = -1;
state              44 source3/lib/wb_reqtrans.c 	enum tevent_req_state state;
state              46 source3/lib/wb_reqtrans.c 	if (!tevent_req_is_error(req, &state, &error)) {
state              51 source3/lib/wb_reqtrans.c 	switch (state) {
state              92 source3/lib/wb_reqtrans.c 	struct req_read_state *state;
state              94 source3/lib/wb_reqtrans.c 	result = tevent_req_create(mem_ctx, &state, struct req_read_state);
state              98 source3/lib/wb_reqtrans.c 	state->max_extra_data = max_extra_data;
state             100 source3/lib/wb_reqtrans.c 	subreq = read_packet_send(state, ev, fd, 4, wb_req_more, state);
state             114 source3/lib/wb_reqtrans.c 	struct req_read_state *state = talloc_get_type_abort(
state             129 source3/lib/wb_reqtrans.c 	if ((state->max_extra_data != 0)
state             130 source3/lib/wb_reqtrans.c 	    && (req->extra_len > state->max_extra_data)) {
state             143 source3/lib/wb_reqtrans.c 	struct req_read_state *state = tevent_req_data(
state             149 source3/lib/wb_reqtrans.c 	ret = read_packet_recv(subreq, state, &buf, &err);
state             156 source3/lib/wb_reqtrans.c 	state->wb_req = (struct winbindd_request *)buf;
state             158 source3/lib/wb_reqtrans.c 	if (state->wb_req->extra_len != 0) {
state             159 source3/lib/wb_reqtrans.c 		state->wb_req->extra_data.data =
state             162 source3/lib/wb_reqtrans.c 		state->wb_req->extra_data.data = NULL;
state             170 source3/lib/wb_reqtrans.c 	struct req_read_state *state = tevent_req_data(
state             177 source3/lib/wb_reqtrans.c 	*preq = talloc_move(mem_ctx, &state->wb_req);
state             193 source3/lib/wb_reqtrans.c 	struct req_write_state *state;
state             196 source3/lib/wb_reqtrans.c 	result = tevent_req_create(mem_ctx, &state, struct req_write_state);
state             201 source3/lib/wb_reqtrans.c 	state->iov[0].iov_base = wb_req;
state             202 source3/lib/wb_reqtrans.c 	state->iov[0].iov_len = sizeof(struct winbindd_request);
state             205 source3/lib/wb_reqtrans.c 		state->iov[1].iov_base = wb_req->extra_data.data;
state             206 source3/lib/wb_reqtrans.c 		state->iov[1].iov_len = wb_req->extra_len;
state             210 source3/lib/wb_reqtrans.c 	subreq = writev_send(state, ev, queue, fd, state->iov, count);
state             254 source3/lib/wb_reqtrans.c 	struct resp_read_state *state;
state             256 source3/lib/wb_reqtrans.c 	result = tevent_req_create(mem_ctx, &state, struct resp_read_state);
state             261 source3/lib/wb_reqtrans.c 	subreq = read_packet_send(state, ev, fd, 4, wb_resp_more, state);
state             293 source3/lib/wb_reqtrans.c 	struct resp_read_state *state = tevent_req_data(
state             299 source3/lib/wb_reqtrans.c 	ret = read_packet_recv(subreq, state, &buf, &err);
state             306 source3/lib/wb_reqtrans.c 	state->wb_resp = (struct winbindd_response *)buf;
state             308 source3/lib/wb_reqtrans.c 	if (state->wb_resp->length > sizeof(struct winbindd_response)) {
state             309 source3/lib/wb_reqtrans.c 		state->wb_resp->extra_data.data =
state             312 source3/lib/wb_reqtrans.c 		state->wb_resp->extra_data.data = NULL;
state             320 source3/lib/wb_reqtrans.c 	struct resp_read_state *state = tevent_req_data(
state             327 source3/lib/wb_reqtrans.c 	*presp = talloc_move(mem_ctx, &state->wb_resp);
state             343 source3/lib/wb_reqtrans.c 	struct resp_write_state *state;
state             346 source3/lib/wb_reqtrans.c 	result = tevent_req_create(mem_ctx, &state, struct resp_write_state);
state             351 source3/lib/wb_reqtrans.c 	state->iov[0].iov_base = wb_resp;
state             352 source3/lib/wb_reqtrans.c 	state->iov[0].iov_len = sizeof(struct winbindd_response);
state             355 source3/lib/wb_reqtrans.c 		state->iov[1].iov_base = wb_resp->extra_data.data;
state             356 source3/lib/wb_reqtrans.c 		state->iov[1].iov_len =
state             361 source3/lib/wb_reqtrans.c 	subreq = writev_send(state, ev, queue, fd, state->iov, count);
state             168 source3/lib/wbclient.c 	struct wb_connect_state *state;
state             174 source3/lib/wbclient.c 	result = tevent_req_create(mem_ctx, &state, struct wb_connect_state);
state             284 source3/lib/wbclient.c 	struct wb_int_trans_state *state;
state             286 source3/lib/wbclient.c 	result = tevent_req_create(mem_ctx, &state,
state             297 source3/lib/wbclient.c 	state->ev = ev;
state             298 source3/lib/wbclient.c 	state->fd = fd;
state             299 source3/lib/wbclient.c 	state->wb_req = wb_req;
state             300 source3/lib/wbclient.c 	state->wb_req->length = sizeof(struct winbindd_request);
state             301 source3/lib/wbclient.c 	state->wb_req->pid = getpid();
state             303 source3/lib/wbclient.c 	subreq = wb_req_write_send(state, state->ev, queue, state->fd,
state             304 source3/lib/wbclient.c 				   state->wb_req);
state             321 source3/lib/wbclient.c 	struct wb_int_trans_state *state = tevent_req_data(
state             332 source3/lib/wbclient.c 	subreq = wb_resp_read_send(state, state->ev, state->fd);
state             343 source3/lib/wbclient.c 	struct wb_int_trans_state *state = tevent_req_data(
state             347 source3/lib/wbclient.c 	wbc_err = wb_resp_read_recv(subreq, state, &state->wb_resp);
state             361 source3/lib/wbclient.c 	struct wb_int_trans_state *state = tevent_req_data(
state             369 source3/lib/wbclient.c 	*presponse = talloc_move(mem_ctx, &state->wb_resp);
state             405 source3/lib/wbclient.c 	struct wb_open_pipe_state *state;
state             407 source3/lib/wbclient.c 	result = tevent_req_create(mem_ctx, &state, struct wb_open_pipe_state);
state             411 source3/lib/wbclient.c 	state->wb_ctx = wb_ctx;
state             412 source3/lib/wbclient.c 	state->ev = ev;
state             413 source3/lib/wbclient.c 	state->need_priv = need_priv;
state             420 source3/lib/wbclient.c 	subreq = wb_connect_send(state, ev, wb_ctx, winbindd_socket_dir());
state             437 source3/lib/wbclient.c 	struct wb_open_pipe_state *state = tevent_req_data(
state             444 source3/lib/wbclient.c 		state->wb_ctx->is_priv = true;
state             449 source3/lib/wbclient.c 	ZERO_STRUCT(state->wb_req);
state             450 source3/lib/wbclient.c 	state->wb_req.cmd = WINBINDD_INTERFACE_VERSION;
state             452 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
state             453 source3/lib/wbclient.c 				   &state->wb_req);
state             464 source3/lib/wbclient.c 	struct wb_open_pipe_state *state = tevent_req_data(
state             469 source3/lib/wbclient.c 	wbc_err = wb_int_trans_recv(subreq, state, &wb_resp);
state             476 source3/lib/wbclient.c 	if (!state->need_priv) {
state             481 source3/lib/wbclient.c 	state->wb_req.cmd = WINBINDD_PRIV_PIPE_DIR;
state             483 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
state             484 source3/lib/wbclient.c 				   &state->wb_req);
state             495 source3/lib/wbclient.c 	struct wb_open_pipe_state *state = tevent_req_data(
state             500 source3/lib/wbclient.c 	wbc_err = wb_int_trans_recv(subreq, state, &wb_resp);
state             507 source3/lib/wbclient.c 	close(state->wb_ctx->fd);
state             508 source3/lib/wbclient.c 	state->wb_ctx->fd = -1;
state             510 source3/lib/wbclient.c 	subreq = wb_connect_send(state, state->ev, state->wb_ctx,
state             523 source3/lib/wbclient.c 	struct wb_open_pipe_state *state = tevent_req_data(
state             533 source3/lib/wbclient.c 	state->wb_ctx->is_priv = true;
state             562 source3/lib/wbclient.c 	struct wb_trans_state *state;
state             564 source3/lib/wbclient.c 	req = tevent_req_create(mem_ctx, &state, struct wb_trans_state);
state             568 source3/lib/wbclient.c 	state->wb_ctx = wb_ctx;
state             569 source3/lib/wbclient.c 	state->ev = ev;
state             570 source3/lib/wbclient.c 	state->wb_req = wb_req;
state             571 source3/lib/wbclient.c 	state->num_retries = 10;
state             572 source3/lib/wbclient.c 	state->need_priv = need_priv;
state             575 source3/lib/wbclient.c 		subreq = wb_open_pipe_send(state, ev, wb_ctx, need_priv);
state             583 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, ev, wb_ctx->queue, wb_ctx->fd,
state             614 source3/lib/wbclient.c 	state->num_retries -= 1;
state             615 source3/lib/wbclient.c 	if (state->num_retries == 0) {
state             624 source3/lib/wbclient.c 	if (state->wb_ctx->fd != -1) {
state             625 source3/lib/wbclient.c 		close(state->wb_ctx->fd);
state             626 source3/lib/wbclient.c 		state->wb_ctx->fd = -1;
state             629 source3/lib/wbclient.c 	subreq = tevent_wakeup_send(state, state->ev,
state             642 source3/lib/wbclient.c 	struct wb_trans_state *state = tevent_req_data(
state             653 source3/lib/wbclient.c 	subreq = wb_open_pipe_send(state, state->ev, state->wb_ctx,
state             654 source3/lib/wbclient.c 				   state->need_priv);
state             665 source3/lib/wbclient.c 	struct wb_trans_state *state = tevent_req_data(
state             672 source3/lib/wbclient.c 	if (wb_trans_retry(req, state, wbc_err)) {
state             676 source3/lib/wbclient.c 	subreq = wb_int_trans_send(state, state->ev, NULL, state->wb_ctx->fd,
state             677 source3/lib/wbclient.c 				   state->wb_req);
state             688 source3/lib/wbclient.c 	struct wb_trans_state *state = tevent_req_data(
state             692 source3/lib/wbclient.c 	wbc_err = wb_int_trans_recv(subreq, state, &state->wb_resp);
state             695 source3/lib/wbclient.c 	if (wb_trans_retry(req, state, wbc_err)) {
state             705 source3/lib/wbclient.c 	struct wb_trans_state *state = tevent_req_data(
state             713 source3/lib/wbclient.c 	*presponse = talloc_move(mem_ctx, &state->wb_resp);
state             141 source3/libgpo/gpo_filesync.c 	ctx = (struct sync_context *)state;
state             279 source3/libsmb/cliconnect.c 	while (req->state < ASYNC_REQ_DONE) {
state            1341 source3/libsmb/cliconnect.c 		struct cli_request *state;
state            1342 source3/libsmb/cliconnect.c 		if (!async_req_setup(mem_ctx, &result, &state,
state            1426 source3/libsmb/cliconnect.c 	while (req->state < ASYNC_REQ_DONE) {
state            1686 source3/libsmb/cliconnect.c 	while (req->state < ASYNC_REQ_DONE) {
state             842 source3/libsmb/clientgen.c 	while (req->state < ASYNC_REQ_DONE) {
state             896 source3/libsmb/clifile.c 	while (req->state < ASYNC_REQ_DONE) {
state            1096 source3/libsmb/clifile.c 	while (req->state < ASYNC_REQ_DONE) {
state            1162 source3/libsmb/clifile.c 	while (req->state < ASYNC_REQ_DONE) {
state             479 source3/libsmb/clilist.c                         fn(cli->dfs_mountpoint, &finfo, Mask, state);
state             661 source3/libsmb/clilist.c 		fn("\\", &finfo, Mask, state);
state             679 source3/libsmb/clilist.c 		return cli_list_old(cli, Mask, attribute, fn, state);
state             680 source3/libsmb/clilist.c 	return cli_list_new(cli, Mask, attribute, fn, state);
state             195 source3/libsmb/clirap.c 					fn(s1, type, s2, state);
state             379 source3/libsmb/clirap.c 				fn(s1, stype, s2, state);
state             695 source3/libsmb/clirap2.c 				fn(username, state);
state             764 source3/libsmb/clirap2.c 				fn(groupname, state);
state             217 source3/libsmb/clireadwrite.c 	struct cli_readall_state *state;
state             219 source3/libsmb/clireadwrite.c 	if (!async_req_setup(mem_ctx, &req, &state,
state             223 source3/libsmb/clireadwrite.c 	state->ev = ev;
state             224 source3/libsmb/clireadwrite.c 	state->cli = cli;
state             225 source3/libsmb/clireadwrite.c 	state->fnum = fnum;
state             226 source3/libsmb/clireadwrite.c 	state->start_offset = offset;
state             227 source3/libsmb/clireadwrite.c 	state->size = size;
state             228 source3/libsmb/clireadwrite.c 	state->received = 0;
state             229 source3/libsmb/clireadwrite.c 	state->buf = NULL;
state             231 source3/libsmb/clireadwrite.c 	subreq = cli_read_andx_send(state, ev, cli, fnum, offset, size);
state             245 source3/libsmb/clireadwrite.c 	struct cli_readall_state *state = talloc_get_type_abort(
state             263 source3/libsmb/clireadwrite.c 	if ((state->received == 0) && (received == state->size)) {
state             265 source3/libsmb/clireadwrite.c 		state->buf = buf;
state             266 source3/libsmb/clireadwrite.c 		state->received += received;
state             280 source3/libsmb/clireadwrite.c 	if (state->buf == NULL) {
state             281 source3/libsmb/clireadwrite.c 		state->buf = talloc_array(state, uint8_t, state->size);
state             282 source3/libsmb/clireadwrite.c 		if (async_req_nomem(state->buf, req)) {
state             286 source3/libsmb/clireadwrite.c 	memcpy(state->buf + state->received, buf, received);
state             287 source3/libsmb/clireadwrite.c 	state->received += received;
state             291 source3/libsmb/clireadwrite.c 	if (state->received >= state->size) {
state             296 source3/libsmb/clireadwrite.c 	subreq = cli_read_andx_send(state, state->ev, state->cli, state->fnum,
state             297 source3/libsmb/clireadwrite.c 				    state->start_offset + state->received,
state             298 source3/libsmb/clireadwrite.c 				    state->size - state->received);
state             309 source3/libsmb/clireadwrite.c 	struct cli_readall_state *state = talloc_get_type_abort(
state             316 source3/libsmb/clireadwrite.c 	*received = state->received;
state             317 source3/libsmb/clireadwrite.c 	*rcvbuf = state->buf;
state             377 source3/libsmb/clireadwrite.c 	struct cli_pull_state *state = talloc_get_type_abort(
state             388 source3/libsmb/clireadwrite.c 		state->num_reqs, state->top_req);
state             407 source3/libsmb/clireadwrite.c 	struct cli_pull_state *state;
state             410 source3/libsmb/clireadwrite.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             415 source3/libsmb/clireadwrite.c 	state->req = result;
state             417 source3/libsmb/clireadwrite.c 	state->cli = cli;
state             418 source3/libsmb/clireadwrite.c 	state->ev = ev;
state             419 source3/libsmb/clireadwrite.c 	state->fnum = fnum;
state             420 source3/libsmb/clireadwrite.c 	state->start_offset = start_offset;
state             421 source3/libsmb/clireadwrite.c 	state->size = size;
state             422 source3/libsmb/clireadwrite.c 	state->sink = sink;
state             423 source3/libsmb/clireadwrite.c 	state->priv = priv;
state             425 source3/libsmb/clireadwrite.c 	state->pushed = 0;
state             426 source3/libsmb/clireadwrite.c 	state->top_req = 0;
state             435 source3/libsmb/clireadwrite.c 	state->chunk_size = cli_read_max_bufsize(cli);
state             437 source3/libsmb/clireadwrite.c 	state->num_reqs = MAX(window_size/state->chunk_size, 1);
state             438 source3/libsmb/clireadwrite.c 	state->num_reqs = MIN(state->num_reqs, cli->max_mux);
state             440 source3/libsmb/clireadwrite.c 	state->reqs = TALLOC_ZERO_ARRAY(state, struct cli_pull_subreq,
state             441 source3/libsmb/clireadwrite.c 					state->num_reqs);
state             442 source3/libsmb/clireadwrite.c 	if (state->reqs == NULL) {
state             446 source3/libsmb/clireadwrite.c 	state->requested = 0;
state             448 source3/libsmb/clireadwrite.c 	for (i=0; i<state->num_reqs; i++) {
state             449 source3/libsmb/clireadwrite.c 		struct cli_pull_subreq *subreq = &state->reqs[i];
state             453 source3/libsmb/clireadwrite.c 		if (state->requested >= size) {
state             454 source3/libsmb/clireadwrite.c 			state->num_reqs = i;
state             458 source3/libsmb/clireadwrite.c 		size_left = size - state->requested;
state             459 source3/libsmb/clireadwrite.c 		request_thistime = MIN(size_left, state->chunk_size);
state             462 source3/libsmb/clireadwrite.c 			state->reqs, ev, cli, fnum,
state             463 source3/libsmb/clireadwrite.c 			state->start_offset + state->requested,
state             473 source3/libsmb/clireadwrite.c 		state->requested += request_thistime;
state             491 source3/libsmb/clireadwrite.c 	struct cli_pull_state *state = talloc_get_type_abort(
state             497 source3/libsmb/clireadwrite.c 	for (i = 0; i < state->num_reqs; i++) {
state             498 source3/libsmb/clireadwrite.c 		pull_subreq = &state->reqs[i];
state             503 source3/libsmb/clireadwrite.c 	if (i == state->num_reqs) {
state             512 source3/libsmb/clireadwrite.c 		async_req_nterror(state->req, status);
state             525 source3/libsmb/clireadwrite.c 	while (state->reqs[state->top_req].req != NULL) {
state             529 source3/libsmb/clireadwrite.c 			   state->top_req));
state             531 source3/libsmb/clireadwrite.c 		top_read = &state->reqs[state->top_req];
state             533 source3/libsmb/clireadwrite.c 		if (state->reqs[state->top_req].req->state < ASYNC_REQ_DONE) {
state             541 source3/libsmb/clireadwrite.c 			   (int)state->pushed));
state             543 source3/libsmb/clireadwrite.c 		status = state->sink((char *)top_read->buf,
state             544 source3/libsmb/clireadwrite.c 				     top_read->received, state->priv);
state             546 source3/libsmb/clireadwrite.c 			async_req_nterror(state->req, status);
state             549 source3/libsmb/clireadwrite.c 		state->pushed += top_read->received;
state             551 source3/libsmb/clireadwrite.c 		TALLOC_FREE(state->reqs[state->top_req].req);
state             553 source3/libsmb/clireadwrite.c 		if (state->requested < state->size) {
state             558 source3/libsmb/clireadwrite.c 			size_left = state->size - state->requested;
state             559 source3/libsmb/clireadwrite.c 			request_thistime = MIN(size_left, state->chunk_size);
state             564 source3/libsmb/clireadwrite.c 				   (int)(state->start_offset
state             565 source3/libsmb/clireadwrite.c 					 + state->requested),
state             566 source3/libsmb/clireadwrite.c 				   state->top_req));
state             569 source3/libsmb/clireadwrite.c 				state->reqs, state->ev, state->cli,
state             570 source3/libsmb/clireadwrite.c 				state->fnum,
state             571 source3/libsmb/clireadwrite.c 				state->start_offset + state->requested,
state             574 source3/libsmb/clireadwrite.c 			if (async_req_nomem(new_req, state->req)) {
state             581 source3/libsmb/clireadwrite.c 			state->reqs[state->top_req].req = new_req;
state             582 source3/libsmb/clireadwrite.c 			state->requested += request_thistime;
state             585 source3/libsmb/clireadwrite.c 		state->top_req = (state->top_req+1) % state->num_reqs;
state             593 source3/libsmb/clireadwrite.c 	struct cli_pull_state *state = talloc_get_type_abort(
state             600 source3/libsmb/clireadwrite.c 	*received = state->pushed;
state             632 source3/libsmb/clireadwrite.c 	while (req->state < ASYNC_REQ_DONE) {
state             978 source3/libsmb/clireadwrite.c 	struct cli_writeall_state *state;
state             980 source3/libsmb/clireadwrite.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             984 source3/libsmb/clireadwrite.c 	state->ev = ev;
state             985 source3/libsmb/clireadwrite.c 	state->cli = cli;
state             986 source3/libsmb/clireadwrite.c 	state->fnum = fnum;
state             987 source3/libsmb/clireadwrite.c 	state->mode = mode;
state             988 source3/libsmb/clireadwrite.c 	state->buf = buf;
state             989 source3/libsmb/clireadwrite.c 	state->offset = offset;
state             990 source3/libsmb/clireadwrite.c 	state->size = size;
state             991 source3/libsmb/clireadwrite.c 	state->written = 0;
state             993 source3/libsmb/clireadwrite.c 	subreq = cli_write_andx_send(state, state->ev, state->cli, state->fnum,
state             994 source3/libsmb/clireadwrite.c 				     state->mode, state->buf, state->offset,
state             995 source3/libsmb/clireadwrite.c 				     state->size);
state            1013 source3/libsmb/clireadwrite.c 	struct cli_writeall_state *state = talloc_get_type_abort(
state            1025 source3/libsmb/clireadwrite.c 	state->written += written;
state            1027 source3/libsmb/clireadwrite.c 	if (state->written > state->size) {
state            1032 source3/libsmb/clireadwrite.c 	to_write = state->size - state->written;
state            1039 source3/libsmb/clireadwrite.c 	subreq = cli_write_andx_send(state, state->ev, state->cli, state->fnum,
state            1040 source3/libsmb/clireadwrite.c 				     state->mode,
state            1041 source3/libsmb/clireadwrite.c 				     state->buf + state->written,
state            1042 source3/libsmb/clireadwrite.c 				     state->offset + state->written, to_write);
state            1098 source3/libsmb/clireadwrite.c 	substate = talloc(state->reqs, struct cli_push_write_state);
state            1104 source3/libsmb/clireadwrite.c 	substate->ofs = state->next_offset;
state            1105 source3/libsmb/clireadwrite.c 	substate->buf = talloc_array(substate, uint8_t, state->chunk_size);
state            1110 source3/libsmb/clireadwrite.c 	substate->size = state->source(substate->buf,
state            1111 source3/libsmb/clireadwrite.c 				       state->chunk_size,
state            1112 source3/libsmb/clireadwrite.c 				       state->priv);
state            1114 source3/libsmb/clireadwrite.c 		state->eof = true;
state            1121 source3/libsmb/clireadwrite.c 				   state->ev, state->cli,
state            1122 source3/libsmb/clireadwrite.c 				   state->fnum, state->mode,
state            1133 source3/libsmb/clireadwrite.c 	state->reqs[idx] = substate;
state            1134 source3/libsmb/clireadwrite.c 	state->pending += 1;
state            1135 source3/libsmb/clireadwrite.c 	state->next_offset += substate->size;
state            1149 source3/libsmb/clireadwrite.c 	struct cli_push_state *state;
state            1152 source3/libsmb/clireadwrite.c 	if (!async_req_setup(mem_ctx, &req, &state,
state            1156 source3/libsmb/clireadwrite.c 	state->cli = cli;
state            1157 source3/libsmb/clireadwrite.c 	state->ev = ev;
state            1158 source3/libsmb/clireadwrite.c 	state->fnum = fnum;
state            1159 source3/libsmb/clireadwrite.c 	state->start_offset = start_offset;
state            1160 source3/libsmb/clireadwrite.c 	state->mode = mode;
state            1161 source3/libsmb/clireadwrite.c 	state->source = source;
state            1162 source3/libsmb/clireadwrite.c 	state->priv = priv;
state            1163 source3/libsmb/clireadwrite.c 	state->eof = false;
state            1164 source3/libsmb/clireadwrite.c 	state->pending = 0;
state            1165 source3/libsmb/clireadwrite.c 	state->next_offset = start_offset;
state            1167 source3/libsmb/clireadwrite.c 	state->chunk_size = cli_write_max_bufsize(cli, mode);
state            1170 source3/libsmb/clireadwrite.c 		window_size = cli->max_mux * state->chunk_size;
state            1172 source3/libsmb/clireadwrite.c 	state->num_reqs = window_size/state->chunk_size;
state            1173 source3/libsmb/clireadwrite.c 	if ((window_size % state->chunk_size) > 0) {
state            1174 source3/libsmb/clireadwrite.c 		state->num_reqs += 1;
state            1176 source3/libsmb/clireadwrite.c 	state->num_reqs = MIN(state->num_reqs, cli->max_mux);
state            1177 source3/libsmb/clireadwrite.c 	state->num_reqs = MAX(state->num_reqs, 1);
state            1179 source3/libsmb/clireadwrite.c 	state->reqs = TALLOC_ZERO_ARRAY(state, struct cli_push_write_state *,
state            1180 source3/libsmb/clireadwrite.c 					state->num_reqs);
state            1181 source3/libsmb/clireadwrite.c 	if (state->reqs == NULL) {
state            1185 source3/libsmb/clireadwrite.c 	for (i=0; i<state->num_reqs; i++) {
state            1186 source3/libsmb/clireadwrite.c 		if (!cli_push_write_setup(req, state, i)) {
state            1190 source3/libsmb/clireadwrite.c 		if (state->eof) {
state            1195 source3/libsmb/clireadwrite.c 	if (state->pending == 0) {
state            1214 source3/libsmb/clireadwrite.c 	struct cli_push_state *state = talloc_get_type_abort(
state            1219 source3/libsmb/clireadwrite.c 	state->reqs[idx] = NULL;
state            1220 source3/libsmb/clireadwrite.c 	state->pending -= 1;
state            1230 source3/libsmb/clireadwrite.c 	if (!state->eof) {
state            1231 source3/libsmb/clireadwrite.c 		if (!cli_push_write_setup(req, state, idx)) {
state            1237 source3/libsmb/clireadwrite.c 	if (state->pending == 0) {
state            1276 source3/libsmb/clireadwrite.c 	while (req->state < ASYNC_REQ_DONE) {
state             738 source3/libsmb/clitrans.c 	cmd = state->cmd;
state             740 source3/libsmb/clitrans.c 	if ((state->param_sent != 0) || (state->data_sent != 0)) {
state             760 source3/libsmb/clitrans.c 		bytes = smb_bytes_push_str(bytes, cli_ucs2(state->cli),
state             761 source3/libsmb/clitrans.c 					   state->pipe_name,
state             762 source3/libsmb/clitrans.c 					   strlen(state->pipe_name)+1, NULL);
state             766 source3/libsmb/clitrans.c 		wct = 14 + state->num_setup;
state             778 source3/libsmb/clitrans.c 		wct = 14 + state->num_setup;
state             788 source3/libsmb/clitrans.c 		wct = 19 + state->num_setup;
state             797 source3/libsmb/clitrans.c 	useable_space = state->cli->max_xmit - smb_size - sizeof(uint16_t)*wct;
state             799 source3/libsmb/clitrans.c 	if (state->param_sent < state->num_param) {
state             800 source3/libsmb/clitrans.c 		this_param = MIN(state->num_param - state->param_sent,
state             804 source3/libsmb/clitrans.c 	if (state->data_sent < state->num_data) {
state             805 source3/libsmb/clitrans.c 		this_data = MIN(state->num_data - state->data_sent,
state             819 source3/libsmb/clitrans.c 		   (unsigned)state->num_setup, (unsigned)state->max_setup,
state             820 source3/libsmb/clitrans.c 		   (unsigned)state->num_param, (unsigned)this_param,
state             821 source3/libsmb/clitrans.c 		   (unsigned)state->rparam.max,
state             822 source3/libsmb/clitrans.c 		   (unsigned)state->num_data, (unsigned)this_data,
state             823 source3/libsmb/clitrans.c 		   (unsigned)state->rdata.max,
state             825 source3/libsmb/clitrans.c 		   (unsigned)state->param_sent, (unsigned)state->data_sent));
state             830 source3/libsmb/clitrans.c 		SSVAL(vwv + 0, 0, state->num_param);
state             831 source3/libsmb/clitrans.c 		SSVAL(vwv + 1, 0, state->num_data);
state             832 source3/libsmb/clitrans.c 		SSVAL(vwv + 2, 0, state->rparam.max);
state             833 source3/libsmb/clitrans.c 		SSVAL(vwv + 3, 0, state->rdata.max);
state             834 source3/libsmb/clitrans.c 		SCVAL(vwv + 4, 0, state->max_setup);
state             836 source3/libsmb/clitrans.c 		SSVAL(vwv + 5, 0, state->flags);
state             843 source3/libsmb/clitrans.c 		SCVAL(vwv +13, 0, state->num_setup);
state             845 source3/libsmb/clitrans.c 		memcpy(vwv + 14, state->setup,
state             846 source3/libsmb/clitrans.c 		       sizeof(uint16_t) * state->num_setup);
state             850 source3/libsmb/clitrans.c 		SSVAL(vwv + 0, 0, state->num_param);
state             851 source3/libsmb/clitrans.c 		SSVAL(vwv + 1, 0, state->num_data);
state             854 source3/libsmb/clitrans.c 		SSVAL(vwv + 4, 0, state->param_sent);
state             857 source3/libsmb/clitrans.c 		SSVAL(vwv + 7, 0, state->data_sent);
state             859 source3/libsmb/clitrans.c 			SSVAL(vwv + 8, 0, state->fid);
state             863 source3/libsmb/clitrans.c 		SCVAL(vwv,  0, state->max_setup);
state             865 source3/libsmb/clitrans.c 		SIVAL(vwv,  3, state->num_param);
state             866 source3/libsmb/clitrans.c 		SIVAL(vwv,  7, state->num_data);
state             867 source3/libsmb/clitrans.c 		SIVAL(vwv, 11, state->rparam.max);
state             868 source3/libsmb/clitrans.c 		SIVAL(vwv, 15, state->rdata.max);
state             873 source3/libsmb/clitrans.c 		SCVAL(vwv, 35, state->num_setup);
state             874 source3/libsmb/clitrans.c 		SSVAL(vwv, 36, state->function);
state             875 source3/libsmb/clitrans.c 		memcpy(vwv + 19, state->setup,
state             876 source3/libsmb/clitrans.c 		       sizeof(uint16_t) * state->num_setup);
state             881 source3/libsmb/clitrans.c 		SIVAL(vwv,  3, state->num_param);
state             882 source3/libsmb/clitrans.c 		SIVAL(vwv,  7, state->num_data);
state             885 source3/libsmb/clitrans.c 		SIVAL(vwv, 19, state->param_sent);
state             888 source3/libsmb/clitrans.c 		SIVAL(vwv, 31, state->data_sent);
state             895 source3/libsmb/clitrans.c 		data_blob_const(state->param + state->param_sent, this_param));
state             899 source3/libsmb/clitrans.c 	state->param_sent += this_param;
state             903 source3/libsmb/clitrans.c 		data_blob_const(state->data + state->data_sent,	this_data));
state             907 source3/libsmb/clitrans.c 	state->data_sent += this_data;
state             913 source3/libsmb/clitrans.c 		result = cli_request_send(mem_ctx, state->ev, state->cli,
state             921 source3/libsmb/clitrans.c 		state->mid = cli_req->mid;
state             928 source3/libsmb/clitrans.c 		if (!cli_chain_cork(state->cli, state->ev,
state             932 source3/libsmb/clitrans.c 		result = cli_request_send(mem_ctx, state->ev, state->cli, cmd,
state             940 source3/libsmb/clitrans.c 		cli_req->recv_helper.priv = state;
state             941 source3/libsmb/clitrans.c 		cli_req->mid = state->mid;
state             942 source3/libsmb/clitrans.c 		client_set_trans_sign_state_off(state->cli, state->mid);
state             943 source3/libsmb/clitrans.c 		cli_chain_uncork(state->cli);
state             946 source3/libsmb/clitrans.c 	client_set_trans_sign_state_on(state->cli, state->mid);
state             956 source3/libsmb/clitrans.c 	state->secondary_request_ctx = talloc_new(state);
state             957 source3/libsmb/clitrans.c 	if (state->secondary_request_ctx == NULL) {
state             962 source3/libsmb/clitrans.c 	while ((state->param_sent < state->num_param)
state             963 source3/libsmb/clitrans.c 	       || (state->data_sent < state->num_data)) {
state             966 source3/libsmb/clitrans.c 		cli_req = cli_ship_trans(state->secondary_request_ctx, state);
state            1100 source3/libsmb/clitrans.c 	struct cli_trans_state *state = talloc_get_type_abort(
state            1115 source3/libsmb/clitrans.c 	sent_all = (state->param_sent == state->num_param)
state            1116 source3/libsmb/clitrans.c 		&& (state->data_sent == state->num_data);
state            1119 source3/libsmb/clitrans.c 		req, cli_req, state->cmd, !sent_all, &num_setup, &setup,
state            1134 source3/libsmb/clitrans.c 		cli_trans_ship_rest(req, state);
state            1143 source3/libsmb/clitrans.c 	TALLOC_FREE(state->secondary_request_ctx);
state            1146 source3/libsmb/clitrans.c 		TALLOC_FREE(state->rsetup);
state            1147 source3/libsmb/clitrans.c 		state->rsetup = (uint16_t *)TALLOC_MEMDUP(
state            1148 source3/libsmb/clitrans.c 			state, setup, sizeof(uint16_t) * num_setup);
state            1149 source3/libsmb/clitrans.c 		if (state->rsetup == NULL) {
state            1156 source3/libsmb/clitrans.c 		state, &state->rparam, total_param, num_param, param,
state            1166 source3/libsmb/clitrans.c 		state, &state->rdata, total_data, num_data, data,
state            1175 source3/libsmb/clitrans.c 	if ((state->rparam.total == state->rparam.received)
state            1176 source3/libsmb/clitrans.c 	    && (state->rdata.total == state->rdata.received)) {
state            1177 source3/libsmb/clitrans.c 		client_set_trans_sign_state_off(state->cli, state->mid);
state            1192 source3/libsmb/clitrans.c 	struct cli_trans_state *state;
state            1215 source3/libsmb/clitrans.c 	state = talloc(mem_ctx, struct cli_trans_state);
state            1216 source3/libsmb/clitrans.c 	if (state == NULL) {
state            1220 source3/libsmb/clitrans.c 	state->cli = cli;
state            1221 source3/libsmb/clitrans.c 	state->ev = ev;
state            1222 source3/libsmb/clitrans.c 	state->cmd = trans_cmd;
state            1223 source3/libsmb/clitrans.c 	state->num_rsetup = 0;
state            1224 source3/libsmb/clitrans.c 	state->rsetup = NULL;
state            1225 source3/libsmb/clitrans.c 	ZERO_STRUCT(state->rparam);
state            1226 source3/libsmb/clitrans.c 	ZERO_STRUCT(state->rdata);
state            1227 source3/libsmb/clitrans.c 	state->secondary_request_ctx = NULL;
state            1230 source3/libsmb/clitrans.c 		state->pipe_name = talloc_strdup(state, pipe_name);
state            1231 source3/libsmb/clitrans.c 		if (state->pipe_name == NULL) {
state            1236 source3/libsmb/clitrans.c 		state->fid = fid;
state            1239 source3/libsmb/clitrans.c 		state->function = function;
state            1242 source3/libsmb/clitrans.c 	state->flags = flags;
state            1245 source3/libsmb/clitrans.c 		state->setup = (uint16_t *)TALLOC_MEMDUP(
state            1246 source3/libsmb/clitrans.c 			state, setup, sizeof(*setup) * num_setup);
state            1247 source3/libsmb/clitrans.c 		if (state->setup == NULL) {
state            1250 source3/libsmb/clitrans.c 		state->num_setup = num_setup;
state            1252 source3/libsmb/clitrans.c 		state->setup = NULL;
state            1253 source3/libsmb/clitrans.c 		state->num_setup = 0;
state            1256 source3/libsmb/clitrans.c 	state->max_setup = max_setup;
state            1259 source3/libsmb/clitrans.c 		state->param = (uint8_t *)TALLOC_MEMDUP(state, param,
state            1261 source3/libsmb/clitrans.c 		if (state->param == NULL) {
state            1264 source3/libsmb/clitrans.c 		state->num_param = num_param;
state            1266 source3/libsmb/clitrans.c 		state->param = NULL;
state            1267 source3/libsmb/clitrans.c 		state->num_param = 0;
state            1270 source3/libsmb/clitrans.c 	state->param_sent = 0;
state            1271 source3/libsmb/clitrans.c 	state->rparam.max = max_param;
state            1274 source3/libsmb/clitrans.c 		state->data = (uint8_t *)TALLOC_MEMDUP(state, data, num_data);
state            1275 source3/libsmb/clitrans.c 		if (state->data == NULL) {
state            1278 source3/libsmb/clitrans.c 		state->num_data = num_data;
state            1280 source3/libsmb/clitrans.c 		state->data = NULL;
state            1281 source3/libsmb/clitrans.c 		state->num_data = 0;
state            1284 source3/libsmb/clitrans.c 	state->data_sent = 0;
state            1285 source3/libsmb/clitrans.c 	state->rdata.max = max_data;
state            1287 source3/libsmb/clitrans.c 	req = cli_ship_trans(state, state);
state            1294 source3/libsmb/clitrans.c 	cli_req->recv_helper.priv = state;
state            1299 source3/libsmb/clitrans.c 	TALLOC_FREE(state);
state            1310 source3/libsmb/clitrans.c 	struct cli_trans_state *state = talloc_get_type_abort(
state            1319 source3/libsmb/clitrans.c 		*setup = talloc_move(mem_ctx, &state->rsetup);
state            1320 source3/libsmb/clitrans.c 		*num_setup = state->num_rsetup;
state            1322 source3/libsmb/clitrans.c 		TALLOC_FREE(state->rsetup);
state            1326 source3/libsmb/clitrans.c 		*param = talloc_move(mem_ctx, &state->rparam.data);
state            1327 source3/libsmb/clitrans.c 		*num_param = state->rparam.total;
state            1329 source3/libsmb/clitrans.c 		TALLOC_FREE(state->rparam.data);
state            1333 source3/libsmb/clitrans.c 		*data = talloc_move(mem_ctx, &state->rdata.data);
state            1334 source3/libsmb/clitrans.c 		*num_data = state->rdata.total;
state            1336 source3/libsmb/clitrans.c 		TALLOC_FREE(state->rdata.data);
state            1380 source3/libsmb/clitrans.c 	while (req->state < ASYNC_REQ_DONE) {
state             140 source3/libsmb/libsmb_dir.c 	SMBCFILE *dir = (SMBCFILE *)state;
state             184 source3/libsmb/libsmb_dir.c 	SMBCFILE *dir = (SMBCFILE *)state;
state             243 source3/libsmb/libsmb_dir.c 	if (add_dirent((SMBCFILE *)state, finfo->name, "",
state             318 source3/libsmb/libsmb_dir.c                 (*fn)(name, type, comment, state);
state            1214 source3/libsmb/libsmb_dir.c 		bool *smbc_rmdir_dirempty = (bool *)state;
state              41 source3/libsmb/ntlmssp_sign.c 	dump_data_pw(description, state->sbox, sizeof(state->sbox));
state             135 source3/libsmb/unexpected.c 	struct receive_unexpected_state *state =
state             149 source3/libsmb/unexpected.c 	if (key.packet_type != state->match_type) return 0;
state             162 source3/libsmb/unexpected.c 			state->match_type,
state             168 source3/libsmb/unexpected.c 	if ((state->match_type == NMB_PACKET &&
state             169 source3/libsmb/unexpected.c 	     p->packet.nmb.header.name_trn_id == state->match_id) ||
state             170 source3/libsmb/unexpected.c 	    (state->match_type == DGRAM_PACKET &&
state             171 source3/libsmb/unexpected.c 	     match_mailslot_name(p, state->match_name))) {
state             172 source3/libsmb/unexpected.c 		state->matched_packet = p;
state             189 source3/libsmb/unexpected.c 	struct receive_unexpected_state state;
state             194 source3/libsmb/unexpected.c 	state.matched_packet = NULL;
state             195 source3/libsmb/unexpected.c 	state.match_id = id;
state             196 source3/libsmb/unexpected.c 	state.match_type = packet_type;
state             197 source3/libsmb/unexpected.c 	state.match_name = mailslot_name;
state             199 source3/libsmb/unexpected.c 	tdb_traverse(tdb2, traverse_match, &state);
state             203 source3/libsmb/unexpected.c 	return state.matched_packet;
state            1631 source3/locking/brlock.c 	struct brl_forall_cb *cb = (struct brl_forall_cb *)state;
state            1885 source3/locking/brlock.c 	struct brl_revalidate_state *state =
state            1892 source3/locking/brlock.c 	add_to_large_array(state, sizeof(pid), (void *)&pid,
state            1893 source3/locking/brlock.c 			   &state->pids, &state->num_pids,
state            1894 source3/locking/brlock.c 			   &state->array_size);
state            1926 source3/locking/brlock.c 	struct brl_revalidate_state *state;
state            1930 source3/locking/brlock.c 	if (!(state = TALLOC_ZERO_P(NULL, struct brl_revalidate_state))) {
state            1935 source3/locking/brlock.c 	brl_forall(brl_revalidate_collect, state);
state            1937 source3/locking/brlock.c 	if (state->array_size == -1) {
state            1942 source3/locking/brlock.c 	if (state->num_pids == 0) {
state            1946 source3/locking/brlock.c 	qsort(state->pids, state->num_pids, sizeof(state->pids[0]),
state            1951 source3/locking/brlock.c 	for (i=0; i<state->num_pids; i++) {
state            1952 source3/locking/brlock.c 		if (procid_equal(&last_pid, &state->pids[i])) {
state            1959 source3/locking/brlock.c 		messaging_send(msg_ctx, state->pids[i], MSG_SMB_UNLOCK,
state            1961 source3/locking/brlock.c 		last_pid = state->pids[i];
state            1965 source3/locking/brlock.c 	TALLOC_FREE(state);
state            1475 source3/locking/locking.c 	struct forall_state *state = (struct forall_state *)_state;
state            1497 source3/locking/locking.c 		state->fn(&shares[i], sharepath, fname,
state            1498 source3/locking/locking.c 			  state->private_data);
state            1512 source3/locking/locking.c 	struct forall_state state;
state            1517 source3/locking/locking.c 	state.fn = fn;
state            1518 source3/locking/locking.c 	state.private_data = private_data;
state            1520 source3/locking/locking.c 	return lock_db->traverse_read(lock_db, traverse_fn, (void *)&state);
state              46 source3/modules/onefs_cbrl.c 	enum onefs_cbrl_lock_state state;
state              63 source3/modules/onefs_cbrl.c 	switch (bs->state) {
state              78 source3/modules/onefs_cbrl.c 		    bs->id, bs->state);
state             142 source3/modules/onefs_cbrl.c 	SMB_ASSERT(bs->state == ONEFS_CBRL_ASYNC);
state             149 source3/modules/onefs_cbrl.c 		bs->state = ONEFS_CBRL_DONE;
state             151 source3/modules/onefs_cbrl.c 		bs->state = ONEFS_CBRL_NONE;
state             177 source3/modules/onefs_cbrl.c 	SMB_ASSERT(bs->state == ONEFS_CBRL_ASYNC);
state             178 source3/modules/onefs_cbrl.c 	bs->state = ONEFS_CBRL_ERROR;
state             314 source3/modules/onefs_cbrl.c 		if (bs->state == ONEFS_CBRL_ASYNC) {
state             317 source3/modules/onefs_cbrl.c 		else if (bs->state == ONEFS_CBRL_ERROR) {
state             322 source3/modules/onefs_cbrl.c 		SMB_ASSERT(bs->state == ONEFS_CBRL_NONE);
state             352 source3/modules/onefs_cbrl.c 		bs->state = ONEFS_CBRL_ASYNC;
state             448 source3/modules/onefs_cbrl.c 	if (bs->state == ONEFS_CBRL_DONE || bs->state == ONEFS_CBRL_ERROR) {
state             450 source3/modules/onefs_cbrl.c 		DEBUG(10, ("State=%d, returning true\n", bs->state));
state             455 source3/modules/onefs_cbrl.c 	SMB_ASSERT(bs->state == ONEFS_CBRL_NONE ||
state             456 source3/modules/onefs_cbrl.c 	    bs->state == ONEFS_CBRL_ASYNC);
state             468 source3/modules/onefs_cbrl.c 		bs->state = ONEFS_CBRL_ERROR;
state             472 source3/modules/onefs_cbrl.c 	bs->state = ONEFS_CBRL_DONE;
state             369 source3/modules/onefs_open.c 				       (char *)state, sizeof(*state))) {
state             372 source3/modules/onefs_open.c 	add_deferred_open(lck, req->mid, request_time, state->id);
state             388 source3/modules/onefs_open.c 	struct deferred_open_record state;
state             417 source3/modules/onefs_open.c 	state.delayed_for_oplocks = True;
state             418 source3/modules/onefs_open.c 	state.failed = false;
state             419 source3/modules/onefs_open.c 	state.id = lck->id;
state             422 source3/modules/onefs_open.c 		defer_open(lck, request_time, timeout, req, &state);
state             541 source3/modules/onefs_open.c 		struct deferred_open_record *state =
state             551 source3/modules/onefs_open.c 		lck = get_share_mode_lock(talloc_tos(), state->id, NULL, NULL,
state             568 source3/modules/onefs_open.c 		if (state->failed) {
state             909 source3/modules/onefs_open.c 				struct deferred_open_record state;
state             937 source3/modules/onefs_open.c 				state.delayed_for_oplocks = False;
state             938 source3/modules/onefs_open.c 				state.id = id;
state             942 source3/modules/onefs_open.c 					    timeval_zero(), req, &state);
state            1027 source3/modules/onefs_open.c 				struct deferred_open_record state;
state            1054 source3/modules/onefs_open.c 				state.delayed_for_oplocks = False;
state            1055 source3/modules/onefs_open.c 				state.id = id;
state            1056 source3/modules/onefs_open.c 				state.failed = false;
state            1062 source3/modules/onefs_open.c 						   req, &state);
state            1135 source3/modules/onefs_open.c 			struct deferred_open_record state;
state            1139 source3/modules/onefs_open.c 			state.delayed_for_oplocks = False;
state            1140 source3/modules/onefs_open.c 			state.id = id;
state            1151 source3/modules/onefs_open.c 					   req, &state);
state             615 source3/modules/onefs_streams.c 		if (!add_one_stream(state->mem_ctx,
state             616 source3/modules/onefs_streams.c 				    &state->num_streams, &state->streams,
state             620 source3/modules/onefs_streams.c 			state->status = NT_STATUS_NO_MEMORY;
state             652 source3/modules/onefs_streams.c 	struct streaminfo_state state;
state             671 source3/modules/onefs_streams.c 	state.streams = NULL;
state             672 source3/modules/onefs_streams.c 	state.num_streams = 0;
state             682 source3/modules/onefs_streams.c 				    &state.num_streams, &state.streams,
state             690 source3/modules/onefs_streams.c 	state.mem_ctx = mem_ctx;
state             691 source3/modules/onefs_streams.c 	state.handle = handle;
state             692 source3/modules/onefs_streams.c 	state.status = NT_STATUS_OK;
state             698 source3/modules/onefs_streams.c 		    &state, &sbuf);
state             701 source3/modules/onefs_streams.c 			TALLOC_FREE(state.streams);
state             705 source3/modules/onefs_streams.c 		if (!NT_STATUS_IS_OK(state.status)) {
state             706 source3/modules/onefs_streams.c 			TALLOC_FREE(state.streams);
state             707 source3/modules/onefs_streams.c 			return state.status;
state             711 source3/modules/onefs_streams.c 	*num_streams = state.num_streams;
state             712 source3/modules/onefs_streams.c 	*streams = state.streams;
state              26 source3/modules/vfs_preopen.c 	struct preopen_state *state;
state              68 source3/modules/vfs_preopen.c 	pdelimiter = state->template_fname + state->number_start
state              69 source3/modules/vfs_preopen.c 		+ state->num_digits;
state              72 source3/modules/vfs_preopen.c 	while (state->fnum_sent < state->fnum_queue_end) {
state              78 source3/modules/vfs_preopen.c 		for (helper=0; helper<state->num_helpers; helper++) {
state              79 source3/modules/vfs_preopen.c 			if (state->helpers[helper].busy) {
state              84 source3/modules/vfs_preopen.c 		if (helper == state->num_helpers) {
state              89 source3/modules/vfs_preopen.c 		snprintf(state->template_fname + state->number_start,
state              90 source3/modules/vfs_preopen.c 			 state->num_digits + 1,
state              91 source3/modules/vfs_preopen.c 			 "%.*lu", state->num_digits,
state              92 source3/modules/vfs_preopen.c 			 (long unsigned int)(state->fnum_sent + 1));
state              95 source3/modules/vfs_preopen.c 		to_write = talloc_get_size(state->template_fname);
state              96 source3/modules/vfs_preopen.c 		written = write_data(state->helpers[helper].fd,
state              97 source3/modules/vfs_preopen.c 				     state->template_fname, to_write);
state              98 source3/modules/vfs_preopen.c 		state->helpers[helper].busy = true;
state             101 source3/modules/vfs_preopen.c 			preopen_helper_destroy(&state->helpers[helper]);
state             103 source3/modules/vfs_preopen.c 		state->fnum_sent += 1;
state             112 source3/modules/vfs_preopen.c 	struct preopen_state *state = helper->state;
state             128 source3/modules/vfs_preopen.c 	preopen_queue_run(state);
state             233 source3/modules/vfs_preopen.c 		preopen_helper(fdpair[1], h->state->to_read);
state             238 source3/modules/vfs_preopen.c 	h->fde = event_add_fd(smbd_event_context(), h->state, h->fd,
state             275 source3/modules/vfs_preopen.c 		result->helpers[i].state = result;
state             296 source3/modules/vfs_preopen.c 	struct preopen_state *state;
state             301 source3/modules/vfs_preopen.c 		SMB_VFS_HANDLE_GET_DATA(handle, state, struct preopen_state,
state             303 source3/modules/vfs_preopen.c 		return state;
state             318 source3/modules/vfs_preopen.c 		&state);
state             323 source3/modules/vfs_preopen.c 	set_namearray(&state->preopen_names, (char *)namelist);
state             325 source3/modules/vfs_preopen.c 	if (state->preopen_names == NULL) {
state             326 source3/modules/vfs_preopen.c 		TALLOC_FREE(state);
state             331 source3/modules/vfs_preopen.c 		SMB_VFS_HANDLE_SET_DATA(handle, state, preopen_free_helpers,
state             335 source3/modules/vfs_preopen.c 	return state;
state             377 source3/modules/vfs_preopen.c 	struct preopen_state *state;
state             383 source3/modules/vfs_preopen.c 	state = preopen_state_get(handle);
state             384 source3/modules/vfs_preopen.c 	if (state == NULL) {
state             397 source3/modules/vfs_preopen.c 	if (!is_in_path(fname, state->preopen_names, true)) {
state             403 source3/modules/vfs_preopen.c 	TALLOC_FREE(state->template_fname);
state             404 source3/modules/vfs_preopen.c 	state->template_fname = talloc_asprintf(
state             405 source3/modules/vfs_preopen.c 		state, "%s/%s", fsp->conn->connectpath, fname);
state             407 source3/modules/vfs_preopen.c 	if (state->template_fname == NULL) {
state             411 source3/modules/vfs_preopen.c 	if (!preopen_parse_fname(state->template_fname, &num,
state             412 source3/modules/vfs_preopen.c 				 &state->number_start, &state->num_digits)) {
state             413 source3/modules/vfs_preopen.c 		TALLOC_FREE(state->template_fname);
state             417 source3/modules/vfs_preopen.c 	if (num > state->fnum_sent) {
state             423 source3/modules/vfs_preopen.c 		state->fnum_sent = num;
state             426 source3/modules/vfs_preopen.c 	if ((state->fnum_queue_end != 0) /* Something was started earlier */
state             427 source3/modules/vfs_preopen.c 	    && (num < (state->fnum_queue_end - state->queue_max))) {
state             432 source3/modules/vfs_preopen.c 		state->fnum_sent = num;
state             435 source3/modules/vfs_preopen.c 	state->fnum_queue_end = num + state->queue_max;
state             437 source3/modules/vfs_preopen.c 	preopen_queue_run(state);
state             635 source3/modules/vfs_streams_depot.c 	struct streaminfo_state *state =
state             641 source3/modules/vfs_streams_depot.c 		state->status = NT_STATUS_NO_MEMORY;
state             644 source3/modules/vfs_streams_depot.c 	if (SMB_VFS_NEXT_STAT(state->handle, full_sname, &sbuf) == -1) {
state             653 source3/modules/vfs_streams_depot.c 	if (!add_one_stream(state->mem_ctx,
state             654 source3/modules/vfs_streams_depot.c 			    &state->num_streams, &state->streams,
state             656 source3/modules/vfs_streams_depot.c 			    SMB_VFS_GET_ALLOC_SIZE(state->handle->conn, NULL,
state             658 source3/modules/vfs_streams_depot.c 		state->status = NT_STATUS_NO_MEMORY;
state             675 source3/modules/vfs_streams_depot.c 	struct streaminfo_state state;
state             698 source3/modules/vfs_streams_depot.c 	state.streams = NULL;
state             699 source3/modules/vfs_streams_depot.c 	state.num_streams = 0;
state             703 source3/modules/vfs_streams_depot.c 				    &state.num_streams, &state.streams,
state             711 source3/modules/vfs_streams_depot.c 	state.mem_ctx = mem_ctx;
state             712 source3/modules/vfs_streams_depot.c 	state.handle = handle;
state             713 source3/modules/vfs_streams_depot.c 	state.status = NT_STATUS_OK;
state             716 source3/modules/vfs_streams_depot.c 			      &state);
state             719 source3/modules/vfs_streams_depot.c 		TALLOC_FREE(state.streams);
state             723 source3/modules/vfs_streams_depot.c 	if (!NT_STATUS_IS_OK(state.status)) {
state             724 source3/modules/vfs_streams_depot.c 		TALLOC_FREE(state.streams);
state             725 source3/modules/vfs_streams_depot.c 		return state.status;
state             728 source3/modules/vfs_streams_depot.c 	*pnum_streams = state.num_streams;
state             729 source3/modules/vfs_streams_depot.c 	*pstreams = state.streams;
state             692 source3/modules/vfs_streams_xattr.c 	struct streaminfo_state *state =
state             695 source3/modules/vfs_streams_xattr.c 	if (!add_one_stream(state->mem_ctx,
state             696 source3/modules/vfs_streams_xattr.c 			    &state->num_streams, &state->streams,
state             698 source3/modules/vfs_streams_xattr.c 			    smb_roundup(state->handle->conn,
state             700 source3/modules/vfs_streams_xattr.c 		state->status = NT_STATUS_NO_MEMORY;
state             717 source3/modules/vfs_streams_xattr.c 	struct streaminfo_state state;
state             740 source3/modules/vfs_streams_xattr.c 	state.streams = NULL;
state             741 source3/modules/vfs_streams_xattr.c 	state.num_streams = 0;
state             745 source3/modules/vfs_streams_xattr.c 				    &state.num_streams, &state.streams,
state             753 source3/modules/vfs_streams_xattr.c 	state.mem_ctx = mem_ctx;
state             754 source3/modules/vfs_streams_xattr.c 	state.handle = handle;
state             755 source3/modules/vfs_streams_xattr.c 	state.status = NT_STATUS_OK;
state             758 source3/modules/vfs_streams_xattr.c 				    collect_one_stream, &state);
state             761 source3/modules/vfs_streams_xattr.c 		TALLOC_FREE(state.streams);
state             765 source3/modules/vfs_streams_xattr.c 	if (!NT_STATUS_IS_OK(state.status)) {
state             766 source3/modules/vfs_streams_xattr.c 		TALLOC_FREE(state.streams);
state             767 source3/modules/vfs_streams_xattr.c 		return state.status;
state             770 source3/modules/vfs_streams_xattr.c 	*pnum_streams = state.num_streams;
state             771 source3/modules/vfs_streams_xattr.c 	*pstreams = state.streams;
state             727 source3/nmbd/nmbd_incomingdgrams.c 	int state = CVAL(buf,0);
state             734 source3/nmbd/nmbd_incomingdgrams.c 		nmb_namestr(&dgram->source_name), inet_ntoa(p->ip), state));
state             737 source3/nmbd/nmbd_incomingdgrams.c 	if (state & 0x1) {
state             748 source3/nmbd/nmbd_incomingdgrams.c 	if (state & 0x2) {
state             762 source3/nmbd/nmbd_incomingdgrams.c 	if (state & 0x4)
state             336 source3/nmbd/nmbd_winsserver.c 	XFILE *fp = (XFILE *)state;
state            2139 source3/nmbd/nmbd_winsserver.c 	time_t t = *(time_t *)state;
state            2314 source3/nmbd/nmbd_winsserver.c 	XFILE *fp = (XFILE *)state;
state            9631 source3/param/loadparm.c 	SMB_ASSERT( (state == SVCCTL_STOPPED) || (state == SVCCTL_RUNNING) );
state            9633 source3/param/loadparm.c 	spoolss_state = state;
state            1780 source3/passdb/pdb_interface.c 	struct group_search *state = (struct group_search *)s->private_data;
state            1782 source3/passdb/pdb_interface.c 	GROUP_MAP *map = &state->groups[state->current_group];
state            1784 source3/passdb/pdb_interface.c 	if (state->current_group == state->num_groups)
state            1791 source3/passdb/pdb_interface.c 	state->current_group += 1;
state            1797 source3/passdb/pdb_interface.c 	struct group_search *state =
state            1799 source3/passdb/pdb_interface.c 	SAFE_FREE(state->groups);
state            1805 source3/passdb/pdb_interface.c 	struct group_search *state;
state            1807 source3/passdb/pdb_interface.c 	state = talloc(search, struct group_search);
state            1808 source3/passdb/pdb_interface.c 	if (state == NULL) {
state            1813 source3/passdb/pdb_interface.c 	if (!pdb_enum_group_mapping(sid, type, &state->groups, &state->num_groups,
state            1819 source3/passdb/pdb_interface.c 	state->current_group = 0;
state            1820 source3/passdb/pdb_interface.c 	search->private_data = state;
state            4255 source3/passdb/pdb_ldap.c 	bool (*ldap2displayentry)(struct ldap_search_state *state,
state            4263 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state =
state            4268 source3/passdb/pdb_ldap.c 	state->entries = NULL;
state            4270 source3/passdb/pdb_ldap.c 	if (state->connection->paged_results) {
state            4271 source3/passdb/pdb_ldap.c 		rc = smbldap_search_paged(state->connection, state->base,
state            4272 source3/passdb/pdb_ldap.c 					  state->scope, state->filter,
state            4273 source3/passdb/pdb_ldap.c 					  state->attrs, state->attrsonly,
state            4274 source3/passdb/pdb_ldap.c 					  lp_ldap_page_size(), &state->entries,
state            4275 source3/passdb/pdb_ldap.c 					  &state->pagedresults_cookie);
state            4278 source3/passdb/pdb_ldap.c 	if ((rc != LDAP_SUCCESS) || (state->entries == NULL)) {
state            4280 source3/passdb/pdb_ldap.c 		if (state->entries != NULL) {
state            4282 source3/passdb/pdb_ldap.c 			ldap_msgfree(state->entries);
state            4283 source3/passdb/pdb_ldap.c 			state->entries = NULL;
state            4286 source3/passdb/pdb_ldap.c 		rc = smbldap_search(state->connection, state->base,
state            4287 source3/passdb/pdb_ldap.c 				    state->scope, state->filter, state->attrs,
state            4288 source3/passdb/pdb_ldap.c 				    state->attrsonly, &state->entries);
state            4290 source3/passdb/pdb_ldap.c 		if ((rc != LDAP_SUCCESS) || (state->entries == NULL))
state            4295 source3/passdb/pdb_ldap.c 		state->connection->paged_results = False;
state            4298 source3/passdb/pdb_ldap.c         ld = state->connection->ldap_struct;
state            4304 source3/passdb/pdb_ldap.c         state->current_entry = ldap_first_entry(ld, state->entries);
state            4306 source3/passdb/pdb_ldap.c 	if (state->current_entry == NULL) {
state            4307 source3/passdb/pdb_ldap.c 		ldap_msgfree(state->entries);
state            4308 source3/passdb/pdb_ldap.c 		state->entries = NULL;
state            4316 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state =
state            4320 source3/passdb/pdb_ldap.c 	if (!state->connection->paged_results) {
state            4325 source3/passdb/pdb_ldap.c 	rc = smbldap_search_paged(state->connection, state->base,
state            4326 source3/passdb/pdb_ldap.c 				  state->scope, state->filter, state->attrs,
state            4327 source3/passdb/pdb_ldap.c 				  state->attrsonly, lp_ldap_page_size(),
state            4328 source3/passdb/pdb_ldap.c 				  &state->entries,
state            4329 source3/passdb/pdb_ldap.c 				  &state->pagedresults_cookie);
state            4331 source3/passdb/pdb_ldap.c 	if ((rc != LDAP_SUCCESS) || (state->entries == NULL))
state            4334 source3/passdb/pdb_ldap.c 	state->current_entry = ldap_first_entry(state->connection->ldap_struct, state->entries);
state            4336 source3/passdb/pdb_ldap.c 	if (state->current_entry == NULL) {
state            4337 source3/passdb/pdb_ldap.c 		ldap_msgfree(state->entries);
state            4338 source3/passdb/pdb_ldap.c 		state->entries = NULL;
state            4347 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state =
state            4352 source3/passdb/pdb_ldap.c 	if ((state->entries == NULL) && (state->pagedresults_cookie == NULL))
state            4355 source3/passdb/pdb_ldap.c 	if ((state->entries == NULL) &&
state            4359 source3/passdb/pdb_ldap.c 	result = state->ldap2displayentry(state, search,
state            4360 source3/passdb/pdb_ldap.c 					  state->connection->ldap_struct,
state            4361 source3/passdb/pdb_ldap.c 					  state->current_entry, entry);
state            4365 source3/passdb/pdb_ldap.c 		dn = ldap_get_dn(state->connection->ldap_struct, state->current_entry);
state            4370 source3/passdb/pdb_ldap.c 	state->current_entry = ldap_next_entry(state->connection->ldap_struct, state->current_entry);
state            4372 source3/passdb/pdb_ldap.c 	if (state->current_entry == NULL) {
state            4373 source3/passdb/pdb_ldap.c 		ldap_msgfree(state->entries);
state            4374 source3/passdb/pdb_ldap.c 		state->entries = NULL;
state            4384 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state =
state            4388 source3/passdb/pdb_ldap.c 	if (state->pagedresults_cookie == NULL)
state            4391 source3/passdb/pdb_ldap.c 	if (state->entries != NULL)
state            4392 source3/passdb/pdb_ldap.c 		ldap_msgfree(state->entries);
state            4394 source3/passdb/pdb_ldap.c 	state->entries = NULL;
state            4395 source3/passdb/pdb_ldap.c 	state->current_entry = NULL;
state            4397 source3/passdb/pdb_ldap.c 	if (!state->connection->paged_results)
state            4402 source3/passdb/pdb_ldap.c 	rc = smbldap_search_paged(state->connection, state->base, state->scope,
state            4403 source3/passdb/pdb_ldap.c 				  state->filter, state->attrs,
state            4404 source3/passdb/pdb_ldap.c 				  state->attrsonly, 0, &state->entries,
state            4405 source3/passdb/pdb_ldap.c 				  &state->pagedresults_cookie);
state            4431 source3/passdb/pdb_ldap.c 	if ((state->acct_flags != 0) &&
state            4432 source3/passdb/pdb_ldap.c 	    ((state->acct_flags & acct_flags) == 0))
state            4517 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state;
state            4519 source3/passdb/pdb_ldap.c 	state = talloc(search, struct ldap_search_state);
state            4520 source3/passdb/pdb_ldap.c 	if (state == NULL) {
state            4525 source3/passdb/pdb_ldap.c 	state->connection = ldap_state->smbldap_state;
state            4528 source3/passdb/pdb_ldap.c 		state->base = lp_ldap_user_suffix();
state            4531 source3/passdb/pdb_ldap.c 		state->base = lp_ldap_machine_suffix();
state            4533 source3/passdb/pdb_ldap.c 		state->base = lp_ldap_suffix();
state            4535 source3/passdb/pdb_ldap.c 	state->acct_flags = acct_flags;
state            4536 source3/passdb/pdb_ldap.c 	state->base = talloc_strdup(search, state->base);
state            4537 source3/passdb/pdb_ldap.c 	state->scope = LDAP_SCOPE_SUBTREE;
state            4538 source3/passdb/pdb_ldap.c 	state->filter = get_ldap_filter(search, "*");
state            4539 source3/passdb/pdb_ldap.c 	state->attrs = talloc_attrs(search, "uid", "sambaSid",
state            4542 source3/passdb/pdb_ldap.c 	state->attrsonly = 0;
state            4543 source3/passdb/pdb_ldap.c 	state->pagedresults_cookie = NULL;
state            4544 source3/passdb/pdb_ldap.c 	state->entries = NULL;
state            4545 source3/passdb/pdb_ldap.c 	state->ldap2displayentry = ldapuser2displayentry;
state            4547 source3/passdb/pdb_ldap.c 	if ((state->filter == NULL) || (state->attrs == NULL)) {
state            4552 source3/passdb/pdb_ldap.c 	search->private_data = state;
state            4585 source3/passdb/pdb_ldap.c 	if ((state->group_type != 0) &&
state            4586 source3/passdb/pdb_ldap.c 	    ((state->group_type != group_type))) {
state            4690 source3/passdb/pdb_ldap.c 	struct ldap_search_state *state;
state            4693 source3/passdb/pdb_ldap.c 	state = talloc(search, struct ldap_search_state);
state            4694 source3/passdb/pdb_ldap.c 	if (state == NULL) {
state            4699 source3/passdb/pdb_ldap.c 	state->connection = ldap_state->smbldap_state;
state            4701 source3/passdb/pdb_ldap.c 	state->base = talloc_strdup(search, lp_ldap_suffix());
state            4702 source3/passdb/pdb_ldap.c 	state->connection = ldap_state->smbldap_state;
state            4703 source3/passdb/pdb_ldap.c 	state->scope = LDAP_SCOPE_SUBTREE;
state            4704 source3/passdb/pdb_ldap.c 	state->filter =	talloc_asprintf(search, "(&(objectclass=%s)"
state            4708 source3/passdb/pdb_ldap.c 	state->attrs = talloc_attrs(search, "cn", "sambaSid",
state            4711 source3/passdb/pdb_ldap.c 	state->attrsonly = 0;
state            4712 source3/passdb/pdb_ldap.c 	state->pagedresults_cookie = NULL;
state            4713 source3/passdb/pdb_ldap.c 	state->entries = NULL;
state            4714 source3/passdb/pdb_ldap.c 	state->group_type = type;
state            4715 source3/passdb/pdb_ldap.c 	state->ldap2displayentry = ldapgroup2displayentry;
state            4717 source3/passdb/pdb_ldap.c 	if ((state->filter == NULL) || (state->attrs == NULL)) {
state            4722 source3/passdb/pdb_ldap.c 	search->private_data = state;
state            1549 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_search_state *state = talloc_get_type_abort(
state            1551 source3/passdb/pdb_smbpasswd.c 	TALLOC_FREE(state);
state            1557 source3/passdb/pdb_smbpasswd.c 	struct smbpasswd_search_state *state = talloc_get_type_abort(
state            1560 source3/passdb/pdb_smbpasswd.c 	if (state->current == state->num_entries) {
state            1564 source3/passdb/pdb_smbpasswd.c 	entry->idx = state->entries[state->current].idx;
state            1565 source3/passdb/pdb_smbpasswd.c 	entry->rid = state->entries[state->current].rid;
state            1566 source3/passdb/pdb_smbpasswd.c 	entry->acct_flags = state->entries[state->current].acct_flags;
state            1569 source3/passdb/pdb_smbpasswd.c 		search, state->entries[state->current].account_name);
state            1571 source3/passdb/pdb_smbpasswd.c 		search, state->entries[state->current].fullname);
state            1573 source3/passdb/pdb_smbpasswd.c 		search, state->entries[state->current].description);
state            1581 source3/passdb/pdb_smbpasswd.c 	state->current += 1;
state              63 source3/passdb/pdb_tdb.c 	struct tdbsam_convert_state *state =
state              80 source3/passdb/pdb_tdb.c 		state->success = false;
state              85 source3/passdb/pdb_tdb.c 		  "(version:%d)\n", rec->key.dptr, state->from));
state              87 source3/passdb/pdb_tdb.c 	switch (state->from) {
state             120 source3/passdb/pdb_tdb.c 			 state->from));
state             122 source3/passdb/pdb_tdb.c 		state->success = false;
state             132 source3/passdb/pdb_tdb.c 		state->success = false;
state             140 source3/passdb/pdb_tdb.c 		state->success = false;
state             158 source3/passdb/pdb_tdb.c 	struct tdbsam_backup_state *bs = (struct tdbsam_backup_state *)state;
state             337 source3/passdb/pdb_tdb.c 	struct tdbsam_convert_state state;
state             348 source3/passdb/pdb_tdb.c 	state.from = from;
state             349 source3/passdb/pdb_tdb.c 	state.success = true;
state             361 source3/passdb/pdb_tdb.c 	ret = db->traverse(db, tdbsam_convert_one, &state);
state             367 source3/passdb/pdb_tdb.c 	if (!state.success) {
state            1109 source3/passdb/pdb_tdb.c 	struct tdbsam_search_state *state = talloc_get_type_abort(
state            1121 source3/passdb/pdb_tdb.c 	ADD_TO_LARGE_ARRAY(state, uint32, rid, &state->rids, &state->num_rids,
state            1122 source3/passdb/pdb_tdb.c 			   &state->array_size);
state            1129 source3/passdb/pdb_tdb.c 	struct tdbsam_search_state *state = talloc_get_type_abort(
state            1131 source3/passdb/pdb_tdb.c 	TALLOC_FREE(state);
state            1137 source3/passdb/pdb_tdb.c 	struct tdbsam_search_state *state = talloc_get_type_abort(
state            1151 source3/passdb/pdb_tdb.c 	if (state->current == state->num_rids) {
state            1155 source3/passdb/pdb_tdb.c 	rid = state->rids[state->current++];
state            1157 source3/passdb/pdb_tdb.c 	status = tdbsam_getsampwrid(state->methods, user, rid);
state            1173 source3/passdb/pdb_tdb.c 	if ((state->acct_flags != 0) &&
state            1174 source3/passdb/pdb_tdb.c 	    ((state->acct_flags & pdb_get_acct_ctrl(user)) == 0)) {
state            1199 source3/passdb/pdb_tdb.c 	struct tdbsam_search_state *state;
state            1207 source3/passdb/pdb_tdb.c 	state = talloc_zero(search, struct tdbsam_search_state);
state            1208 source3/passdb/pdb_tdb.c 	if (state == NULL) {
state            1212 source3/passdb/pdb_tdb.c 	state->acct_flags = acct_flags;
state            1213 source3/passdb/pdb_tdb.c 	state->methods = methods;
state            1215 source3/passdb/pdb_tdb.c 	db_sam->traverse_read(db_sam, tdbsam_collect_rids, state);
state            1217 source3/passdb/pdb_tdb.c 	search->private_data = state;
state             961 source3/passdb/secrets.c 	struct list_trusted_domains_state *state =
state             986 source3/passdb/secrets.c 	if (!(dom_info = TALLOC_P(state->domains, struct trustdom_info))) {
state            1000 source3/passdb/secrets.c 	ADD_TO_ARRAY(state->domains, struct trustdom_info *, dom_info,
state            1001 source3/passdb/secrets.c 		     &state->domains, &state->num_domains);
state            1003 source3/passdb/secrets.c 	if (state->domains == NULL) {
state            1004 source3/passdb/secrets.c 		state->num_domains = 0;
state            1013 source3/passdb/secrets.c 	struct list_trusted_domains_state state;
state            1021 source3/passdb/secrets.c 	state.num_domains = 0;
state            1028 source3/passdb/secrets.c 	if (!(state.domains = TALLOC_ARRAY(
state            1033 source3/passdb/secrets.c 	db_ctx->traverse_read(db_ctx, list_trusted_domain, (void *)&state);
state            1035 source3/passdb/secrets.c 	*num_domains = state.num_domains;
state            1036 source3/passdb/secrets.c 	*domains = state.domains;
state             336 source3/printing/nt_printing.c 	TALLOC_CTX *ctx = state;
state             385 source3/printing/printing.c 	struct unixjob_traverse_state *state =
state             395 source3/printing/printing.c 	if (state->sysjob == pjob->sysjob) {
state             398 source3/printing/printing.c 		state->sysjob_to_jobid_value = jobid;
state             414 source3/printing/printing.c 	struct unixjob_traverse_state state;
state             416 source3/printing/printing.c 	state.sysjob = unix_jobid;
state             417 source3/printing/printing.c 	state.sysjob_to_jobid_value = (uint32)-1;
state             427 source3/printing/printing.c 		tdb_traverse(pdb->tdb, unixjob_traverse_fn, &state);
state             429 source3/printing/printing.c 		if (state.sysjob_to_jobid_value != (uint32)-1)
state             430 source3/printing/printing.c 			return state.sysjob_to_jobid_value;
state             719 source3/printing/printing.c 	struct traverse_struct *ts = (struct traverse_struct *)state;
state            1210 source3/registry/reg_backend_db.c 	struct scan_subkey_state *state =
state            1219 source3/registry/reg_backend_db.c 	state->scanned = true;
state            1220 source3/registry/reg_backend_db.c 	state->found = false;
state            1230 source3/registry/reg_backend_db.c 		int comparison = strcmp(state->name, s);
state            1237 source3/registry/reg_backend_db.c 			state->found = true;
state            1248 source3/registry/reg_backend_db.c 	struct scan_subkey_state state = { 0, };
state            1252 source3/registry/reg_backend_db.c 	state.name = NULL;
state            1265 source3/registry/reg_backend_db.c 	state.name = talloc_strdup_upper(talloc_tos(), name);
state            1266 source3/registry/reg_backend_db.c 	if (state.name == NULL) {
state            1269 source3/registry/reg_backend_db.c 	state.scanned = false;
state            1272 source3/registry/reg_backend_db.c 				  parent_subkey_scanner, &state);
state            1274 source3/registry/reg_backend_db.c 	if (state.scanned) {
state            1275 source3/registry/reg_backend_db.c 		result = state.found;
state            1281 source3/registry/reg_backend_db.c 					  parent_subkey_scanner, &state);
state            1282 source3/registry/reg_backend_db.c 		if ((res == 0) && (state.scanned)) {
state            1283 source3/registry/reg_backend_db.c 			result = state.found;
state            1289 source3/registry/reg_backend_db.c 	TALLOC_FREE(state.name);
state             218 source3/rpc_client/cli_pipe.c 	struct rpc_read_state *state;
state             220 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             224 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state             225 source3/rpc_client/cli_pipe.c 	state->transport = transport;
state             226 source3/rpc_client/cli_pipe.c 	state->data = data;
state             227 source3/rpc_client/cli_pipe.c 	state->size = size;
state             228 source3/rpc_client/cli_pipe.c 	state->num_read = 0;
state             232 source3/rpc_client/cli_pipe.c 	subreq = transport->read_send(state, ev, (uint8_t *)data, size,
state             250 source3/rpc_client/cli_pipe.c 	struct rpc_read_state *state = talloc_get_type_abort(
state             255 source3/rpc_client/cli_pipe.c 	status = state->transport->read_recv(subreq, &received);
state             262 source3/rpc_client/cli_pipe.c 	state->num_read += received;
state             263 source3/rpc_client/cli_pipe.c 	if (state->num_read == state->size) {
state             268 source3/rpc_client/cli_pipe.c 	subreq = state->transport->read_send(state, state->ev,
state             269 source3/rpc_client/cli_pipe.c 					     state->data + state->num_read,
state             270 source3/rpc_client/cli_pipe.c 					     state->size - state->num_read,
state             271 source3/rpc_client/cli_pipe.c 					     state->transport->priv);
state             300 source3/rpc_client/cli_pipe.c 	struct rpc_write_state *state;
state             302 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             306 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state             307 source3/rpc_client/cli_pipe.c 	state->transport = transport;
state             308 source3/rpc_client/cli_pipe.c 	state->data = data;
state             309 source3/rpc_client/cli_pipe.c 	state->size = size;
state             310 source3/rpc_client/cli_pipe.c 	state->num_written = 0;
state             314 source3/rpc_client/cli_pipe.c 	subreq = transport->write_send(state, ev, data, size, transport->priv);
state             330 source3/rpc_client/cli_pipe.c 	struct rpc_write_state *state = talloc_get_type_abort(
state             335 source3/rpc_client/cli_pipe.c 	status = state->transport->write_recv(subreq, &written);
state             342 source3/rpc_client/cli_pipe.c 	state->num_written += written;
state             344 source3/rpc_client/cli_pipe.c 	if (state->num_written == state->size) {
state             349 source3/rpc_client/cli_pipe.c 	subreq = state->transport->write_send(state, state->ev,
state             350 source3/rpc_client/cli_pipe.c 					      state->data + state->num_written,
state             351 source3/rpc_client/cli_pipe.c 					      state->size - state->num_written,
state             352 source3/rpc_client/cli_pipe.c 					      state->transport->priv);
state             412 source3/rpc_client/cli_pipe.c 	struct get_complete_frag_state *state;
state             416 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             420 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state             421 source3/rpc_client/cli_pipe.c 	state->cli = cli;
state             422 source3/rpc_client/cli_pipe.c 	state->prhdr = prhdr;
state             423 source3/rpc_client/cli_pipe.c 	state->pdu = pdu;
state             432 source3/rpc_client/cli_pipe.c 			state, state->ev,
state             433 source3/rpc_client/cli_pipe.c 			state->cli->transport,
state             434 source3/rpc_client/cli_pipe.c 			(uint8_t *)(prs_data_p(state->pdu) + pdu_len),
state             458 source3/rpc_client/cli_pipe.c 		subreq = rpc_read_send(state, state->ev,
state             459 source3/rpc_client/cli_pipe.c 				       state->cli->transport,
state             484 source3/rpc_client/cli_pipe.c 	struct get_complete_frag_state *state = talloc_get_type_abort(
state             495 source3/rpc_client/cli_pipe.c 	status = parse_rpc_header(state->cli, state->prhdr, state->pdu);
state             501 source3/rpc_client/cli_pipe.c 	if (!rpc_grow_buffer(state->pdu, state->prhdr->frag_len)) {
state             512 source3/rpc_client/cli_pipe.c 		state, state->ev, state->cli->transport,
state             513 source3/rpc_client/cli_pipe.c 		(uint8_t *)(prs_data_p(state->pdu) + RPC_HEADER_LEN),
state             514 source3/rpc_client/cli_pipe.c 		state->prhdr->frag_len - RPC_HEADER_LEN);
state            1051 source3/rpc_client/cli_pipe.c 	struct cli_api_pipe_state *state;
state            1054 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state            1058 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state            1059 source3/rpc_client/cli_pipe.c 	state->transport = transport;
state            1072 source3/rpc_client/cli_pipe.c 		subreq = transport->trans_send(state, ev, data, data_len,
state            1088 source3/rpc_client/cli_pipe.c 	subreq = rpc_write_send(state, ev, transport, data, data_len);
state            1111 source3/rpc_client/cli_pipe.c 	struct cli_api_pipe_state *state = talloc_get_type_abort(
state            1115 source3/rpc_client/cli_pipe.c 	status = state->transport->trans_recv(subreq, state, &state->rdata,
state            1116 source3/rpc_client/cli_pipe.c 					      &state->rdata_len);
state            1129 source3/rpc_client/cli_pipe.c 	struct cli_api_pipe_state *state = talloc_get_type_abort(
state            1140 source3/rpc_client/cli_pipe.c 	state->rdata = TALLOC_ARRAY(state, uint8_t, RPC_HEADER_LEN);
state            1141 source3/rpc_client/cli_pipe.c 	if (async_req_nomem(state->rdata, req)) {
state            1150 source3/rpc_client/cli_pipe.c 	subreq = state->transport->read_send(state, state->ev, state->rdata,
state            1152 source3/rpc_client/cli_pipe.c 					     state->transport->priv);
state            1164 source3/rpc_client/cli_pipe.c 	struct cli_api_pipe_state *state = talloc_get_type_abort(
state            1169 source3/rpc_client/cli_pipe.c 	status = state->transport->read_recv(subreq, &received);
state            1175 source3/rpc_client/cli_pipe.c 	state->rdata_len = received;
state            1182 source3/rpc_client/cli_pipe.c 	struct cli_api_pipe_state *state = talloc_get_type_abort(
state            1190 source3/rpc_client/cli_pipe.c 	*prdata = talloc_move(mem_ctx, &state->rdata);
state            1191 source3/rpc_client/cli_pipe.c 	*prdata_len = state->rdata_len;
state            1235 source3/rpc_client/cli_pipe.c 	prs_mem_free(&state->incoming_frag);
state            1236 source3/rpc_client/cli_pipe.c 	prs_mem_free(&state->incoming_pdu);
state            1250 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_state *state;
state            1254 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state            1258 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state            1259 source3/rpc_client/cli_pipe.c 	state->cli = cli;
state            1260 source3/rpc_client/cli_pipe.c 	state->expected_pkt_type = expected_pkt_type;
state            1261 source3/rpc_client/cli_pipe.c 	state->incoming_pdu_offset = 0;
state            1263 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->incoming_frag, state, UNMARSHALL);
state            1265 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->incoming_pdu, state, UNMARSHALL);
state            1267 source3/rpc_client/cli_pipe.c 	prs_give_memory(&state->incoming_pdu, NULL, 0, true);
state            1269 source3/rpc_client/cli_pipe.c 	talloc_set_destructor(state, rpc_api_pipe_state_destructor);
state            1287 source3/rpc_client/cli_pipe.c 	subreq = cli_api_pipe_send(state, ev, cli->transport,
state            1310 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_state *state = talloc_get_type_abort(
state            1317 source3/rpc_client/cli_pipe.c 	status = cli_api_pipe_recv(subreq, state, &rdata, &rdata_len);
state            1327 source3/rpc_client/cli_pipe.c 			 rpccli_pipe_txt(debug_ctx(), state->cli)));
state            1342 source3/rpc_client/cli_pipe.c 	prs_give_memory(&state->incoming_frag, rdata_copy, rdata_len, true);
state            1345 source3/rpc_client/cli_pipe.c 	subreq = get_complete_frag_send(state, state->ev, state->cli,
state            1346 source3/rpc_client/cli_pipe.c 					&state->rhdr, &state->incoming_frag);
state            1358 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_state *state = talloc_get_type_abort(
state            1374 source3/rpc_client/cli_pipe.c 		state->cli, &state->rhdr, &state->incoming_frag,
state            1375 source3/rpc_client/cli_pipe.c 		state->expected_pkt_type, &rdata, &rdata_len,
state            1376 source3/rpc_client/cli_pipe.c 		&state->incoming_pdu);
state            1379 source3/rpc_client/cli_pipe.c 		  (unsigned)prs_data_size(&state->incoming_frag),
state            1380 source3/rpc_client/cli_pipe.c 		  (unsigned)state->incoming_pdu_offset,
state            1388 source3/rpc_client/cli_pipe.c 	if ((state->rhdr.flags & RPC_FLG_FIRST)
state            1389 source3/rpc_client/cli_pipe.c 	    && (state->rhdr.pack_type[0] == 0)) {
state            1396 source3/rpc_client/cli_pipe.c 			  rpccli_pipe_txt(debug_ctx(), state->cli)));
state            1397 source3/rpc_client/cli_pipe.c 		prs_set_endian_data(&state->incoming_pdu, RPC_BIG_ENDIAN);
state            1402 source3/rpc_client/cli_pipe.c 	if (state->incoming_frag.bigendian_data
state            1403 source3/rpc_client/cli_pipe.c 	    != state->incoming_pdu.bigendian_data) {
state            1406 source3/rpc_client/cli_pipe.c 			 state->incoming_pdu.bigendian_data?"big":"little",
state            1407 source3/rpc_client/cli_pipe.c 			 state->incoming_frag.bigendian_data?"big":"little"));
state            1413 source3/rpc_client/cli_pipe.c 	if (!prs_force_grow(&state->incoming_pdu, rdata_len)) {
state            1418 source3/rpc_client/cli_pipe.c 	memcpy(prs_data_p(&state->incoming_pdu) + state->incoming_pdu_offset,
state            1420 source3/rpc_client/cli_pipe.c 	state->incoming_pdu_offset += rdata_len;
state            1422 source3/rpc_client/cli_pipe.c 	status = cli_pipe_reset_current_pdu(state->cli, &state->rhdr,
state            1423 source3/rpc_client/cli_pipe.c 					    &state->incoming_frag);
state            1429 source3/rpc_client/cli_pipe.c 	if (state->rhdr.flags & RPC_FLG_LAST) {
state            1431 source3/rpc_client/cli_pipe.c 			  rpccli_pipe_txt(debug_ctx(), state->cli),
state            1432 source3/rpc_client/cli_pipe.c 			  (unsigned)prs_data_size(&state->incoming_pdu)));
state            1437 source3/rpc_client/cli_pipe.c 	subreq = get_complete_frag_send(state, state->ev, state->cli,
state            1438 source3/rpc_client/cli_pipe.c 					&state->rhdr, &state->incoming_frag);
state            1449 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_state *state = talloc_get_type_abort(
state            1457 source3/rpc_client/cli_pipe.c 	*reply_pdu = state->incoming_pdu;
state            1464 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->incoming_pdu, state, UNMARSHALL);
state            2058 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_req_state *state;
state            2062 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state            2066 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state            2067 source3/rpc_client/cli_pipe.c 	state->cli = cli;
state            2068 source3/rpc_client/cli_pipe.c 	state->op_num = op_num;
state            2069 source3/rpc_client/cli_pipe.c 	state->req_data = req_data;
state            2070 source3/rpc_client/cli_pipe.c 	state->req_data_sent = 0;
state            2071 source3/rpc_client/cli_pipe.c 	state->call_id = get_rpc_call_id();
state            2080 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->reply_pdu, state, UNMARSHALL);
state            2082 source3/rpc_client/cli_pipe.c 	if (!prs_init(&state->outgoing_frag, cli->max_xmit_frag,
state            2083 source3/rpc_client/cli_pipe.c 		      state, MARSHALL)) {
state            2088 source3/rpc_client/cli_pipe.c 	talloc_set_destructor(state, rpc_api_pipe_req_state_destructor);
state            2090 source3/rpc_client/cli_pipe.c 	status = prepare_next_frag(state, &is_last_frag);
state            2096 source3/rpc_client/cli_pipe.c 		subreq = rpc_api_pipe_send(state, ev, state->cli,
state            2097 source3/rpc_client/cli_pipe.c 					   &state->outgoing_frag,
state            2107 source3/rpc_client/cli_pipe.c 			state, ev, cli->transport,
state            2108 source3/rpc_client/cli_pipe.c 			(uint8_t *)prs_data_p(&state->outgoing_frag),
state            2109 source3/rpc_client/cli_pipe.c 			prs_offset(&state->outgoing_frag));
state            2141 source3/rpc_client/cli_pipe.c 	data_left = prs_offset(state->req_data) - state->req_data_sent;
state            2144 source3/rpc_client/cli_pipe.c 		state->cli, data_left, &frag_len, &auth_len, &ss_padding);
state            2146 source3/rpc_client/cli_pipe.c 	if (state->req_data_sent == 0) {
state            2154 source3/rpc_client/cli_pipe.c 	if (!prs_set_offset(&state->outgoing_frag, 0)) {
state            2159 source3/rpc_client/cli_pipe.c 	init_rpc_hdr(&hdr, RPC_REQUEST, flags, state->call_id, frag_len,
state            2162 source3/rpc_client/cli_pipe.c 	if (!smb_io_rpc_hdr("hdr    ", &hdr, &state->outgoing_frag, 0)) {
state            2167 source3/rpc_client/cli_pipe.c 	init_rpc_hdr_req(&hdr_req, prs_offset(state->req_data),
state            2168 source3/rpc_client/cli_pipe.c 			 state->op_num);
state            2171 source3/rpc_client/cli_pipe.c 				&state->outgoing_frag, 0)) {
state            2176 source3/rpc_client/cli_pipe.c 	if (!prs_append_some_prs_data(&state->outgoing_frag,
state            2177 source3/rpc_client/cli_pipe.c 				      state->req_data, state->req_data_sent,
state            2183 source3/rpc_client/cli_pipe.c 	if (!prs_copy_data_in(&state->outgoing_frag, pad, ss_padding)) {
state            2188 source3/rpc_client/cli_pipe.c 	switch (state->cli->auth->auth_type) {
state            2194 source3/rpc_client/cli_pipe.c 		status = add_ntlmssp_auth_footer(state->cli, &hdr, ss_padding,
state            2195 source3/rpc_client/cli_pipe.c 						 &state->outgoing_frag);
state            2198 source3/rpc_client/cli_pipe.c 		status = add_schannel_auth_footer(state->cli, &hdr, ss_padding,
state            2199 source3/rpc_client/cli_pipe.c 						  &state->outgoing_frag);
state            2206 source3/rpc_client/cli_pipe.c 	state->req_data_sent += data_sent_thistime;
state            2216 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_req_state *state = talloc_get_type_abort(
state            2228 source3/rpc_client/cli_pipe.c 	status = prepare_next_frag(state, &is_last_frag);
state            2235 source3/rpc_client/cli_pipe.c 		subreq = rpc_api_pipe_send(state, state->ev, state->cli,
state            2236 source3/rpc_client/cli_pipe.c 					   &state->outgoing_frag,
state            2245 source3/rpc_client/cli_pipe.c 			state, state->ev,
state            2246 source3/rpc_client/cli_pipe.c 			state->cli->transport,
state            2247 source3/rpc_client/cli_pipe.c 			(uint8_t *)prs_data_p(&state->outgoing_frag),
state            2248 source3/rpc_client/cli_pipe.c 			prs_offset(&state->outgoing_frag));
state            2261 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_req_state *state = talloc_get_type_abort(
state            2265 source3/rpc_client/cli_pipe.c 	status = rpc_api_pipe_recv(subreq, state, &state->reply_pdu);
state            2277 source3/rpc_client/cli_pipe.c 	struct rpc_api_pipe_req_state *state = talloc_get_type_abort(
state            2290 source3/rpc_client/cli_pipe.c 	*reply_pdu = state->reply_pdu;
state            2297 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->reply_pdu, state, UNMARSHALL);
state            2322 source3/rpc_client/cli_pipe.c 	while (req->state < ASYNC_REQ_DONE) {
state            2536 source3/rpc_client/cli_pipe.c 	prs_mem_free(&state->rpc_out);
state            2558 source3/rpc_client/cli_pipe.c 	struct rpc_pipe_bind_state *state;
state            2561 source3/rpc_client/cli_pipe.c 	if (!async_req_setup(mem_ctx, &result, &state,
state            2571 source3/rpc_client/cli_pipe.c 	state->ev = ev;
state            2572 source3/rpc_client/cli_pipe.c 	state->cli = cli;
state            2573 source3/rpc_client/cli_pipe.c 	state->rpc_call_id = get_rpc_call_id();
state            2575 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->rpc_out, state, MARSHALL);
state            2576 source3/rpc_client/cli_pipe.c 	talloc_set_destructor(state, rpc_pipe_bind_state_destructor);
state            2581 source3/rpc_client/cli_pipe.c 	status = create_rpc_bind_req(cli, &state->rpc_out,
state            2582 source3/rpc_client/cli_pipe.c 				     state->rpc_call_id,
state            2592 source3/rpc_client/cli_pipe.c 	subreq = rpc_api_pipe_send(state, ev, cli, &state->rpc_out,
state            2614 source3/rpc_client/cli_pipe.c 	struct rpc_pipe_bind_state *state = talloc_get_type_abort(
state            2625 source3/rpc_client/cli_pipe.c 			  rpccli_pipe_txt(debug_ctx(), state->cli),
state            2647 source3/rpc_client/cli_pipe.c 	if (!check_bind_response(&hdr_ba, &state->cli->transfer_syntax)) {
state            2654 source3/rpc_client/cli_pipe.c 	state->cli->max_xmit_frag = hdr_ba.bba.max_tsize;
state            2655 source3/rpc_client/cli_pipe.c 	state->cli->max_recv_frag = hdr_ba.bba.max_rsize;
state            2661 source3/rpc_client/cli_pipe.c 	switch(state->cli->auth->auth_type) {
state            2672 source3/rpc_client/cli_pipe.c 		status = rpc_finish_auth3_bind_send(req, state, &hdr,
state            2682 source3/rpc_client/cli_pipe.c 		status = rpc_finish_spnego_ntlmssp_bind_send(req, state, &hdr,
state            2695 source3/rpc_client/cli_pipe.c 			 (unsigned int)state->cli->auth->auth_type));
state            2733 source3/rpc_client/cli_pipe.c 	status = ntlmssp_update(state->cli->auth->a_u.ntlmssp_state,
state            2742 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->rpc_out, talloc_tos(), MARSHALL);
state            2744 source3/rpc_client/cli_pipe.c 	status = create_rpc_bind_auth3(state->cli, state->rpc_call_id,
state            2745 source3/rpc_client/cli_pipe.c 				       state->cli->auth->auth_type,
state            2746 source3/rpc_client/cli_pipe.c 				       state->cli->auth->auth_level,
state            2747 source3/rpc_client/cli_pipe.c 				       &client_reply, &state->rpc_out);
state            2754 source3/rpc_client/cli_pipe.c 	subreq = rpc_write_send(state, state->ev, state->cli->transport,
state            2755 source3/rpc_client/cli_pipe.c 				(uint8_t *)prs_data_p(&state->rpc_out),
state            2756 source3/rpc_client/cli_pipe.c 				prs_offset(&state->rpc_out));
state            2829 source3/rpc_client/cli_pipe.c 	status = ntlmssp_update(state->cli->auth->a_u.ntlmssp_state,
state            2849 source3/rpc_client/cli_pipe.c 	prs_init_empty(&state->rpc_out, state, MARSHALL);
state            2851 source3/rpc_client/cli_pipe.c 	status = create_rpc_alter_context(state->rpc_call_id,
state            2852 source3/rpc_client/cli_pipe.c 					  &state->cli->abstract_syntax,
state            2853 source3/rpc_client/cli_pipe.c 					  &state->cli->transfer_syntax,
state            2854 source3/rpc_client/cli_pipe.c 					  state->cli->auth->auth_level,
state            2856 source3/rpc_client/cli_pipe.c 					  &state->rpc_out);
state            2863 source3/rpc_client/cli_pipe.c 	subreq = rpc_api_pipe_send(state, state->ev, state->cli,
state            2864 source3/rpc_client/cli_pipe.c 				   &state->rpc_out, RPC_ALTCONTRESP);
state            2877 source3/rpc_client/cli_pipe.c 	struct rpc_pipe_bind_state *state = talloc_get_type_abort(
state            2930 source3/rpc_client/cli_pipe.c 		 "%s.\n", rpccli_pipe_txt(debug_ctx(), state->cli)));
state            2957 source3/rpc_client/cli_pipe.c 	while (req->state < ASYNC_REQ_DONE) {
state              62 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_write_state *state;
state              64 source3/rpc_client/rpc_transport_np.c 	if (!async_req_setup(mem_ctx, &result, &state,
state              68 source3/rpc_client/rpc_transport_np.c 	state->size = size;
state              89 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_write_state *state = talloc_get_type_abort(
state              93 source3/rpc_client/rpc_transport_np.c 	status = cli_write_andx_recv(subreq, &state->written);
state             104 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_write_state *state = talloc_get_type_abort(
state             111 source3/rpc_client/rpc_transport_np.c 	*pwritten = state->written;
state             131 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_read_state *state;
state             133 source3/rpc_client/rpc_transport_np.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             137 source3/rpc_client/rpc_transport_np.c 	state->data = data;
state             138 source3/rpc_client/rpc_transport_np.c 	state->size = size;
state             157 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_read_state *state = talloc_get_type_abort(
state             162 source3/rpc_client/rpc_transport_np.c 	status = cli_read_andx_recv(subreq, &state->received, &rcvbuf);
state             176 source3/rpc_client/rpc_transport_np.c 	if (state->received > state->size) {
state             182 source3/rpc_client/rpc_transport_np.c 	memcpy(state->data, rcvbuf, state->received);
state             188 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_read_state *state = talloc_get_type_abort(
state             195 source3/rpc_client/rpc_transport_np.c 	*preceived = state->received;
state             216 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_trans_state *state;
state             218 source3/rpc_client/rpc_transport_np.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             223 source3/rpc_client/rpc_transport_np.c 	SSVAL(state->setup+0, 0, TRANSACT_DCERPCCMD);
state             224 source3/rpc_client/rpc_transport_np.c 	SSVAL(state->setup+1, 0, np_transport->fnum);
state             227 source3/rpc_client/rpc_transport_np.c 		state, ev, np_transport->cli, SMBtrans,
state             228 source3/rpc_client/rpc_transport_np.c 		"\\PIPE\\", 0, 0, 0, state->setup, 2, 0,
state             246 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_trans_state *state = talloc_get_type_abort(
state             250 source3/rpc_client/rpc_transport_np.c 	status = cli_trans_recv(subreq, state, NULL, NULL, NULL, NULL,
state             251 source3/rpc_client/rpc_transport_np.c 				&state->rdata, &state->rdata_len);
state             263 source3/rpc_client/rpc_transport_np.c 	struct rpc_np_trans_state *state = talloc_get_type_abort(
state             270 source3/rpc_client/rpc_transport_np.c 	*prdata = talloc_move(mem_ctx, &state->rdata);
state             271 source3/rpc_client/rpc_transport_np.c 	*prdata_len = state->rdata_len;
state             288 source3/rpc_client/rpc_transport_np.c 	struct rpc_transport_np_init_state *state;
state             290 source3/rpc_client/rpc_transport_np.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             295 source3/rpc_client/rpc_transport_np.c 	state->transport = talloc(state, struct rpc_cli_transport);
state             296 source3/rpc_client/rpc_transport_np.c 	if (state->transport == NULL) {
state             299 source3/rpc_client/rpc_transport_np.c 	state->transport_np = talloc(state->transport,
state             301 source3/rpc_client/rpc_transport_np.c 	if (state->transport_np == NULL) {
state             304 source3/rpc_client/rpc_transport_np.c 	state->transport->priv = state->transport_np;
state             306 source3/rpc_client/rpc_transport_np.c 	state->transport_np->pipe_name = get_pipe_name_from_iface(
state             308 source3/rpc_client/rpc_transport_np.c 	state->transport_np->cli = cli;
state             311 source3/rpc_client/rpc_transport_np.c 		state, ev, cli, state->transport_np->pipe_name,	0,
state             330 source3/rpc_client/rpc_transport_np.c 	struct rpc_transport_np_init_state *state = talloc_get_type_abort(
state             334 source3/rpc_client/rpc_transport_np.c 	status = cli_ntcreate_recv(subreq, &state->transport_np->fnum);
state             341 source3/rpc_client/rpc_transport_np.c 	talloc_set_destructor(state->transport_np,
state             350 source3/rpc_client/rpc_transport_np.c 	struct rpc_transport_np_init_state *state = talloc_get_type_abort(
state             358 source3/rpc_client/rpc_transport_np.c 	state->transport->write_send = rpc_np_write_send;
state             359 source3/rpc_client/rpc_transport_np.c 	state->transport->write_recv = rpc_np_write_recv;
state             360 source3/rpc_client/rpc_transport_np.c 	state->transport->read_send = rpc_np_read_send;
state             361 source3/rpc_client/rpc_transport_np.c 	state->transport->read_recv = rpc_np_read_recv;
state             362 source3/rpc_client/rpc_transport_np.c 	state->transport->trans_send = rpc_np_trans_send;
state             363 source3/rpc_client/rpc_transport_np.c 	state->transport->trans_recv = rpc_np_trans_recv;
state             365 source3/rpc_client/rpc_transport_np.c 	*presult = talloc_move(mem_ctx, &state->transport);
state             390 source3/rpc_client/rpc_transport_np.c 	while (req->state < ASYNC_REQ_DONE) {
state             402 source3/rpc_client/rpc_transport_np.c 	struct rpc_transport_np_state *state = talloc_get_type(
state             405 source3/rpc_client/rpc_transport_np.c 	if (state == NULL) {
state             408 source3/rpc_client/rpc_transport_np.c 	return state->cli;
state             140 source3/rpc_client/rpc_transport_smbd.c 	struct get_anon_ipc_state *state;
state             142 source3/rpc_client/rpc_transport_smbd.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             147 source3/rpc_client/rpc_transport_smbd.c 	state->ev = ev;
state             148 source3/rpc_client/rpc_transport_smbd.c 	state->cli = cli;
state             150 source3/rpc_client/rpc_transport_smbd.c 	subreq = cli_negprot_send(state, ev, cli);
state             166 source3/rpc_client/rpc_transport_smbd.c 	struct get_anon_ipc_state *state = talloc_get_type_abort(
state             177 source3/rpc_client/rpc_transport_smbd.c 	subreq = cli_session_setup_guest_send(state, state->ev, state->cli);
state             189 source3/rpc_client/rpc_transport_smbd.c 	struct get_anon_ipc_state *state = talloc_get_type_abort(
state             200 source3/rpc_client/rpc_transport_smbd.c 	subreq = cli_tcon_andx_send(state, state->ev, state->cli,
state             244 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_cli_smbd_conn_init_state *state;
state             253 source3/rpc_client/rpc_transport_smbd.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             257 source3/rpc_client/rpc_transport_smbd.c 	state->ev = ev;
state             259 source3/rpc_client/rpc_transport_smbd.c 	state->conn = talloc(state, struct rpc_cli_smbd_conn);
state             260 source3/rpc_client/rpc_transport_smbd.c 	if (state->conn == NULL) {
state             264 source3/rpc_client/rpc_transport_smbd.c 	state->conn->cli = cli_initialise();
state             265 source3/rpc_client/rpc_transport_smbd.c 	if (state->conn->cli == NULL) {
state             268 source3/rpc_client/rpc_transport_smbd.c 	state->conn->stdout_fd = -1;
state             269 source3/rpc_client/rpc_transport_smbd.c 	state->conn->stdout_callback.fn = stdout_callback;
state             270 source3/rpc_client/rpc_transport_smbd.c 	state->conn->stdout_callback.priv = priv;
state             271 source3/rpc_client/rpc_transport_smbd.c 	talloc_set_destructor(state->conn, rpc_cli_smbd_conn_destructor);
state             322 source3/rpc_client/rpc_transport_smbd.c 	state->conn->cli->fd = smb_sock[0];
state             327 source3/rpc_client/rpc_transport_smbd.c 	state->conn->stdout_fd = stdout_pipe[0];
state             332 source3/rpc_client/rpc_transport_smbd.c 	subreq = get_anon_ipc_send(state, ev, state->conn->cli);
state             337 source3/rpc_client/rpc_transport_smbd.c 	if (event_add_fd(ev, state, state->conn->stdout_fd, EVENT_FD_READ,
state             338 source3/rpc_client/rpc_transport_smbd.c 			 rpc_cli_smbd_stdout_reader, state->conn) == NULL) {
state             387 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_cli_smbd_conn_init_state *state = talloc_get_type_abort(
state             394 source3/rpc_client/rpc_transport_smbd.c 	*pconn = talloc_move(mem_ctx, &state->conn);
state             422 source3/rpc_client/rpc_transport_smbd.c 	while (req->state < ASYNC_REQ_DONE) {
state             447 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_write_state *state;
state             449 source3/rpc_client/rpc_transport_smbd.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             453 source3/rpc_client/rpc_transport_smbd.c 	state->sub_transp = transp->sub_transp;
state             455 source3/rpc_client/rpc_transport_smbd.c 	subreq = transp->sub_transp->write_send(state, ev, data, size,
state             461 source3/rpc_client/rpc_transport_smbd.c 	if (event_add_fd(ev, state, transp->conn->stdout_fd, EVENT_FD_READ,
state             479 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_write_state *state = talloc_get_type_abort(
state             483 source3/rpc_client/rpc_transport_smbd.c 	status = state->sub_transp->write_recv(subreq, &state->written);
state             494 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_write_state *state = talloc_get_type_abort(
state             501 source3/rpc_client/rpc_transport_smbd.c 	*pwritten = state->written;
state             520 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_read_state *state;
state             522 source3/rpc_client/rpc_transport_smbd.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             526 source3/rpc_client/rpc_transport_smbd.c 	state->sub_transp = transp->sub_transp;
state             528 source3/rpc_client/rpc_transport_smbd.c 	subreq = transp->sub_transp->read_send(state, ev, data, size,
state             534 source3/rpc_client/rpc_transport_smbd.c 	if (event_add_fd(ev, state, transp->conn->stdout_fd, EVENT_FD_READ,
state             552 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_read_state *state = talloc_get_type_abort(
state             556 source3/rpc_client/rpc_transport_smbd.c 	status = state->sub_transp->read_recv(subreq, &state->received);
state             567 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_smbd_read_state *state = talloc_get_type_abort(
state             574 source3/rpc_client/rpc_transport_smbd.c 	*preceived = state->received;
state             591 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_transport_smbd_init_state *state;
state             593 source3/rpc_client/rpc_transport_smbd.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             598 source3/rpc_client/rpc_transport_smbd.c 	state->transport = talloc(state, struct rpc_cli_transport);
state             599 source3/rpc_client/rpc_transport_smbd.c 	if (state->transport == NULL) {
state             602 source3/rpc_client/rpc_transport_smbd.c 	state->transport_smbd = talloc(state->transport,
state             604 source3/rpc_client/rpc_transport_smbd.c 	if (state->transport_smbd == NULL) {
state             607 source3/rpc_client/rpc_transport_smbd.c 	state->transport_smbd->conn = conn;
state             608 source3/rpc_client/rpc_transport_smbd.c 	state->transport->priv = state->transport_smbd;
state             610 source3/rpc_client/rpc_transport_smbd.c 	if (event_add_fd(ev, state, conn->stdout_fd, EVENT_FD_READ,
state             615 source3/rpc_client/rpc_transport_smbd.c 	subreq = rpc_transport_np_init_send(state, ev, conn->cli,
state             633 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_transport_smbd_init_state *state = talloc_get_type_abort(
state             638 source3/rpc_client/rpc_transport_smbd.c 		subreq, state->transport_smbd,
state             639 source3/rpc_client/rpc_transport_smbd.c 		&state->transport_smbd->sub_transp);
state             652 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_transport_smbd_init_state *state = talloc_get_type_abort(
state             660 source3/rpc_client/rpc_transport_smbd.c 	state->transport->write_send = rpc_smbd_write_send;
state             661 source3/rpc_client/rpc_transport_smbd.c 	state->transport->write_recv = rpc_smbd_write_recv;
state             662 source3/rpc_client/rpc_transport_smbd.c 	state->transport->read_send = rpc_smbd_read_send;
state             663 source3/rpc_client/rpc_transport_smbd.c 	state->transport->read_recv = rpc_smbd_read_recv;
state             664 source3/rpc_client/rpc_transport_smbd.c 	state->transport->trans_send = NULL;
state             665 source3/rpc_client/rpc_transport_smbd.c 	state->transport->trans_recv = NULL;
state             667 source3/rpc_client/rpc_transport_smbd.c 	*presult = talloc_move(mem_ctx, &state->transport);
state             693 source3/rpc_client/rpc_transport_smbd.c 	while (req->state < ASYNC_REQ_DONE) {
state             705 source3/rpc_client/rpc_transport_smbd.c 	struct rpc_transport_smbd_state *state = talloc_get_type(p->transport->priv,
state             707 source3/rpc_client/rpc_transport_smbd.c 	if (!state || !state->conn) {
state             710 source3/rpc_client/rpc_transport_smbd.c 	return state->conn->cli;
state              54 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_read_state *state;
state              57 source3/rpc_client/rpc_transport_sock.c 	if (!async_req_setup(mem_ctx, &result, &state,
state              63 source3/rpc_client/rpc_transport_sock.c 	subreq = async_recv_send(state, ev, sock_transp->fd, data, size, 0);
state              83 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_read_state *state = talloc_get_type_abort(
state              87 source3/rpc_client/rpc_transport_sock.c 	state->received = async_recv_recv(subreq, &err);
state              88 source3/rpc_client/rpc_transport_sock.c 	if (state->received == -1) {
state              97 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_read_state *state = talloc_get_type_abort(
state             104 source3/rpc_client/rpc_transport_sock.c 	*preceived = state->received;
state             123 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_write_state *state;
state             126 source3/rpc_client/rpc_transport_sock.c 	if (!async_req_setup(mem_ctx, &result, &state,
state             131 source3/rpc_client/rpc_transport_sock.c 	subreq = async_send_send(state, ev, sock_transp->fd, data, size, 0);
state             151 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_write_state *state = talloc_get_type_abort(
state             155 source3/rpc_client/rpc_transport_sock.c 	state->sent = async_send_recv(subreq, &err);
state             156 source3/rpc_client/rpc_transport_sock.c 	if (state->sent == -1) {
state             165 source3/rpc_client/rpc_transport_sock.c 	struct rpc_sock_write_state *state = talloc_get_type_abort(
state             172 source3/rpc_client/rpc_transport_sock.c 	*psent = state->sent;
state             180 source3/rpc_client/rpc_transport_sock.c 	struct rpc_transport_sock_state *state;
state             186 source3/rpc_client/rpc_transport_sock.c 	state = talloc(result, struct rpc_transport_sock_state);
state             187 source3/rpc_client/rpc_transport_sock.c 	if (state == NULL) {
state             191 source3/rpc_client/rpc_transport_sock.c 	result->priv = state;
state             193 source3/rpc_client/rpc_transport_sock.c 	state->fd = fd;
state             194 source3/rpc_client/rpc_transport_sock.c 	state->timeout = 10000; /* 10 seconds. */
state             195 source3/rpc_client/rpc_transport_sock.c 	talloc_set_destructor(state, rpc_transport_sock_state_destructor);
state             210 source3/rpc_client/rpc_transport_sock.c 	struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
state             213 source3/rpc_client/rpc_transport_sock.c 	if (!state) {
state             216 source3/rpc_client/rpc_transport_sock.c 	orig_timeout = state->timeout;
state             217 source3/rpc_client/rpc_transport_sock.c 	state->timeout = timeout;
state             223 source3/rpc_client/rpc_transport_sock.c 	struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
state             225 source3/rpc_client/rpc_transport_sock.c 	if (state) {
state             226 source3/rpc_client/rpc_transport_sock.c 		if (state->fd != -1) {
state             227 source3/rpc_client/rpc_transport_sock.c 			close(state->fd);
state             228 source3/rpc_client/rpc_transport_sock.c 			state->fd = -1;
state             236 source3/rpc_client/rpc_transport_sock.c 	struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
state             238 source3/rpc_client/rpc_transport_sock.c 	if (state && state->fd != -1) {
state             206 source3/rpc_server/srv_dfs_nt.c 	dfs2->state = 1; /* set up state of dfs junction as OK */
state             225 source3/rpc_server/srv_dfs_nt.c 	dfs3->state = 1;
state             256 source3/rpc_server/srv_dfs_nt.c 		stor->state = 2; /* set all stores as ONLINE */
state             963 source3/rpc_server/srv_pipe_hnd.c 	if (state->fd != -1) {
state             964 source3/rpc_server/srv_pipe_hnd.c 		close(state->fd);
state            1192 source3/rpc_server/srv_pipe_hnd.c 	struct np_write_state *state;
state            1198 source3/rpc_server/srv_pipe_hnd.c 	req = tevent_req_create(mem_ctx, &state, struct np_write_state);
state            1204 source3/rpc_server/srv_pipe_hnd.c 		state->nwritten = 0;
state            1213 source3/rpc_server/srv_pipe_hnd.c 		state->nwritten = write_to_internal_pipe(p, (char *)data, len);
state            1215 source3/rpc_server/srv_pipe_hnd.c 		status = (state->nwritten >= 0)
state            1225 source3/rpc_server/srv_pipe_hnd.c 		state->ev = ev;
state            1226 source3/rpc_server/srv_pipe_hnd.c 		state->p = p;
state            1227 source3/rpc_server/srv_pipe_hnd.c 		state->iov.iov_base = CONST_DISCARD(void *, data);
state            1228 source3/rpc_server/srv_pipe_hnd.c 		state->iov.iov_len = len;
state            1230 source3/rpc_server/srv_pipe_hnd.c 		subreq = writev_send(state, ev, p->write_queue, p->fd,
state            1231 source3/rpc_server/srv_pipe_hnd.c 				     &state->iov, 1);
state            1256 source3/rpc_server/srv_pipe_hnd.c 	struct np_write_state *state = tevent_req_data(
state            1266 source3/rpc_server/srv_pipe_hnd.c 	state->nwritten = received;
state            1272 source3/rpc_server/srv_pipe_hnd.c 	struct np_write_state *state = tevent_req_data(
state            1279 source3/rpc_server/srv_pipe_hnd.c 	*pnwritten = state->nwritten;
state            1322 source3/rpc_server/srv_pipe_hnd.c 	struct np_read_state *state;
state            1325 source3/rpc_server/srv_pipe_hnd.c 	req = tevent_req_create(mem_ctx, &state, struct np_read_state);
state            1334 source3/rpc_server/srv_pipe_hnd.c 		state->nread = read_from_internal_pipe(
state            1335 source3/rpc_server/srv_pipe_hnd.c 			p, (char *)data, len, &state->is_data_outstanding);
state            1337 source3/rpc_server/srv_pipe_hnd.c 		status = (state->nread >= 0)
state            1353 source3/rpc_server/srv_pipe_hnd.c 			state->nread = thistime;
state            1357 source3/rpc_server/srv_pipe_hnd.c 				state->is_data_outstanding = true;
state            1359 source3/rpc_server/srv_pipe_hnd.c 				state->is_data_outstanding = false;
state            1366 source3/rpc_server/srv_pipe_hnd.c 		state->ev = ev;
state            1367 source3/rpc_server/srv_pipe_hnd.c 		state->p = p;
state            1368 source3/rpc_server/srv_pipe_hnd.c 		state->data = data;
state            1369 source3/rpc_server/srv_pipe_hnd.c 		state->len = len;
state            1393 source3/rpc_server/srv_pipe_hnd.c 	struct np_read_state *state = tevent_req_data(
state            1397 source3/rpc_server/srv_pipe_hnd.c 	subreq = read_packet_send(state, state->ev, state->p->fd,
state            1409 source3/rpc_server/srv_pipe_hnd.c 	struct np_read_state *state = tevent_req_data(
state            1415 source3/rpc_server/srv_pipe_hnd.c 	received = read_packet_recv(subreq, state->p, &state->p->msg, &err);
state            1422 source3/rpc_server/srv_pipe_hnd.c 	thistime = MIN(received, state->len);
state            1424 source3/rpc_server/srv_pipe_hnd.c 	memcpy(state->data, state->p->msg, thistime);
state            1425 source3/rpc_server/srv_pipe_hnd.c 	state->p->sent = thistime;
state            1426 source3/rpc_server/srv_pipe_hnd.c 	state->nread = thistime;
state            1428 source3/rpc_server/srv_pipe_hnd.c 	if (state->p->sent < received) {
state            1429 source3/rpc_server/srv_pipe_hnd.c 		state->is_data_outstanding = true;
state            1431 source3/rpc_server/srv_pipe_hnd.c 		TALLOC_FREE(state->p->msg);
state            1432 source3/rpc_server/srv_pipe_hnd.c 		state->is_data_outstanding = false;
state            1442 source3/rpc_server/srv_pipe_hnd.c 	struct np_read_state *state = tevent_req_data(
state            1449 source3/rpc_server/srv_pipe_hnd.c 	*nread = state->nread;
state            1450 source3/rpc_server/srv_pipe_hnd.c 	*is_data_outstanding = state->is_data_outstanding;
state             550 source3/rpc_server/srv_svcctl_nt.c 	switch (r->in.state) {
state             120 source3/rpcclient/cmd_dfs.c 	printf("\tstate: %d\n", info2->state);
state             134 source3/rpcclient/cmd_dfs.c 	printf("\tstate: %d\n", info3->state);
state              35 source3/services/svc_netlogon.c 		service_status->state		= SVCCTL_RUNNING;
state              39 source3/services/svc_netlogon.c 		service_status->state		= SVCCTL_STOPPED;
state              49 source3/services/svc_rcinit.c 	status->state			= (ret == 0 ) ? SVCCTL_STOPPED : SVCCTL_RUNNING;
state             112 source3/services/svc_rcinit.c 	status->state			= (ret == 0 ) ? SVCCTL_RUNNING : SVCCTL_STOPPED;
state              35 source3/services/svc_spoolss.c 	service_status->state			= SVCCTL_STOPPED;
state              71 source3/services/svc_spoolss.c 	service_status->state			= lp_get_spoolss_state();
state              49 source3/services/svc_winreg.c 	service_status->state			= SVCCTL_RUNNING;
state              35 source3/services/svc_wins.c 		service_status->state     = SVCCTL_RUNNING;
state              37 source3/services/svc_wins.c 		service_status->state		= SVCCTL_STOPPED;
state              38 source3/smbd/avahi_register.c 	struct avahi_state_struct *state = talloc_get_type_abort(
state              48 source3/smbd/avahi_register.c 		error = avahi_client_errno(state->client);
state              72 source3/smbd/avahi_register.c 	struct avahi_state_struct *state = talloc_get_type_abort(
state              80 source3/smbd/avahi_register.c 		state->entry_group = avahi_entry_group_new(
state              81 source3/smbd/avahi_register.c 			c, avahi_entry_group_callback, state);
state              82 source3/smbd/avahi_register.c 		if (state->entry_group == NULL) {
state              89 source3/smbd/avahi_register.c 			    state->entry_group, AVAHI_IF_UNSPEC,
state              91 source3/smbd/avahi_register.c 			    "_smb._tcp", NULL, NULL, state->port, NULL) < 0) {
state              95 source3/smbd/avahi_register.c 			avahi_entry_group_free(state->entry_group);
state              96 source3/smbd/avahi_register.c 			state->entry_group = NULL;
state              99 source3/smbd/avahi_register.c 		if (avahi_entry_group_commit(state->entry_group) < 0) {
state             103 source3/smbd/avahi_register.c 			avahi_entry_group_free(state->entry_group);
state             104 source3/smbd/avahi_register.c 			state->entry_group = NULL;
state             118 source3/smbd/avahi_register.c 		state->client = avahi_client_new(state->poll, AVAHI_CLIENT_NO_FAIL,
state             119 source3/smbd/avahi_register.c 						 avahi_client_callback, state,
state             121 source3/smbd/avahi_register.c 		if (state->client == NULL) {
state             145 source3/smbd/avahi_register.c 	struct avahi_state_struct *state;
state             148 source3/smbd/avahi_register.c 	state = talloc(mem_ctx, struct avahi_state_struct);
state             149 source3/smbd/avahi_register.c 	if (state == NULL) {
state             150 source3/smbd/avahi_register.c 		return state;
state             152 source3/smbd/avahi_register.c 	state->port = port;
state             153 source3/smbd/avahi_register.c 	state->poll = tevent_avahi_poll(state, ev);
state             154 source3/smbd/avahi_register.c 	if (state->poll == NULL) {
state             157 source3/smbd/avahi_register.c 	state->client = avahi_client_new(state->poll, AVAHI_CLIENT_NO_FAIL,
state             158 source3/smbd/avahi_register.c 					 avahi_client_callback, state,
state             160 source3/smbd/avahi_register.c 	if (state->client == NULL) {
state             165 source3/smbd/avahi_register.c 	return state;
state             168 source3/smbd/avahi_register.c 	TALLOC_FREE(state);
state             246 source3/smbd/conn.c 	struct trans_state *state = NULL;
state             259 source3/smbd/conn.c 	for (state = conn->pending_trans; state; state = state->next) {
state             261 source3/smbd/conn.c 		SAFE_FREE(state->param);
state             262 source3/smbd/conn.c 		SAFE_FREE(state->data);
state             222 source3/smbd/ipc.c 	struct dcerpc_cmd_state *state;
state             229 source3/smbd/ipc.c 	state = talloc(req, struct dcerpc_cmd_state);
state             230 source3/smbd/ipc.c 	if (state == NULL) {
state             234 source3/smbd/ipc.c 	req->async_priv = state;
state             236 source3/smbd/ipc.c 	state->handle = fsp->fake_file_handle;
state             242 source3/smbd/ipc.c 	state->data = (uint8_t *)talloc_memdup(state, data, length);
state             243 source3/smbd/ipc.c 	if (state->data == NULL) {
state             247 source3/smbd/ipc.c 	state->num_data = length;
state             248 source3/smbd/ipc.c 	state->max_read = max_read;
state             250 source3/smbd/ipc.c 	subreq = np_write_send(state, smbd_event_context(), state->handle,
state             251 source3/smbd/ipc.c 			       state->data, length);
state             253 source3/smbd/ipc.c 		TALLOC_FREE(state);
state             265 source3/smbd/ipc.c 	struct dcerpc_cmd_state *state = talloc_get_type_abort(
state             272 source3/smbd/ipc.c 	if (!NT_STATUS_IS_OK(status) || (nwritten != state->num_data)) {
state             274 source3/smbd/ipc.c 			   nt_errstr(status), (int)state->num_data,
state             280 source3/smbd/ipc.c 	state->data = TALLOC_REALLOC_ARRAY(state, state->data, uint8_t,
state             281 source3/smbd/ipc.c 					   state->max_read);
state             282 source3/smbd/ipc.c 	if (state->data == NULL) {
state             288 source3/smbd/ipc.c 			      state->handle, state->data, state->max_read);
state             310 source3/smbd/ipc.c 	struct dcerpc_cmd_state *state = talloc_get_type_abort(
state             334 source3/smbd/ipc.c 	send_trans_reply(req->conn, req, NULL, 0, (char *)state->data, nread,
state             535 source3/smbd/ipc.c 		 state->name,(unsigned int)state->total_data,(unsigned int)state->total_param,
state             536 source3/smbd/ipc.c 		 (unsigned int)state->setup_count));
state             542 source3/smbd/ipc.c 	local_machine_name = talloc_asprintf(state, "\\%s\\",
state             550 source3/smbd/ipc.c 	if (strnequal(state->name, local_machine_name,
state             555 source3/smbd/ipc.c 	if (!strnequal(&state->name[name_offset], "\\PIPE",
state             566 source3/smbd/ipc.c 	if (state->name[name_offset] == '\\')
state             570 source3/smbd/ipc.c 	named_pipe(conn, state->vuid, req,
state             571 source3/smbd/ipc.c 		   state->name+name_offset,
state             572 source3/smbd/ipc.c 		   state->setup,state->data,
state             573 source3/smbd/ipc.c 		   state->param,
state             574 source3/smbd/ipc.c 		   state->setup_count,state->total_data,
state             575 source3/smbd/ipc.c 		   state->total_param,
state             576 source3/smbd/ipc.c 		   state->max_setup_return,
state             577 source3/smbd/ipc.c 		   state->max_data_return,
state             578 source3/smbd/ipc.c 		   state->max_param_return);
state             580 source3/smbd/ipc.c 	if (state->close_on_completion) {
state             581 source3/smbd/ipc.c 		close_cnum(conn,state->vuid);
state             599 source3/smbd/ipc.c 	struct trans_state *state;
state             624 source3/smbd/ipc.c 	if ((state = TALLOC_P(conn, struct trans_state)) == NULL) {
state             631 source3/smbd/ipc.c 	state->cmd = SMBtrans;
state             633 source3/smbd/ipc.c 	state->mid = req->mid;
state             634 source3/smbd/ipc.c 	state->vuid = req->vuid;
state             635 source3/smbd/ipc.c 	state->setup_count = CVAL(req->vwv+13, 0);
state             636 source3/smbd/ipc.c 	state->setup = NULL;
state             637 source3/smbd/ipc.c 	state->total_param = SVAL(req->vwv+0, 0);
state             638 source3/smbd/ipc.c 	state->param = NULL;
state             639 source3/smbd/ipc.c 	state->total_data = SVAL(req->vwv+1, 0);
state             640 source3/smbd/ipc.c 	state->data = NULL;
state             641 source3/smbd/ipc.c 	state->max_param_return = SVAL(req->vwv+2, 0);
state             642 source3/smbd/ipc.c 	state->max_data_return = SVAL(req->vwv+3, 0);
state             643 source3/smbd/ipc.c 	state->max_setup_return = CVAL(req->vwv+4, 0);
state             644 source3/smbd/ipc.c 	state->close_on_completion = BITSETW(req->vwv+5, 0);
state             645 source3/smbd/ipc.c 	state->one_way = BITSETW(req->vwv+5, 1);
state             647 source3/smbd/ipc.c 	srvstr_pull_req_talloc(state, req, &state->name, req->buf,
state             650 source3/smbd/ipc.c 	if ((dscnt > state->total_data) || (pscnt > state->total_param) ||
state             651 source3/smbd/ipc.c 			!state->name)
state             654 source3/smbd/ipc.c 	if (state->total_data)  {
state             656 source3/smbd/ipc.c 		if (trans_oob(state->total_data, 0, dscnt)
state             663 source3/smbd/ipc.c 		state->data = (char *)SMB_MALLOC(state->total_data+100);
state             664 source3/smbd/ipc.c 		if (state->data == NULL) {
state             666 source3/smbd/ipc.c 				 "bytes !\n", (unsigned int)state->total_data));
state             667 source3/smbd/ipc.c 			TALLOC_FREE(state);
state             673 source3/smbd/ipc.c 		memset(&state->data[state->total_data], 0, 100);
state             675 source3/smbd/ipc.c 		memcpy(state->data,smb_base(req->inbuf)+dsoff,dscnt);
state             678 source3/smbd/ipc.c 	if (state->total_param) {
state             680 source3/smbd/ipc.c 		if (trans_oob(state->total_param, 0, pscnt)
state             687 source3/smbd/ipc.c 		state->param = (char *)SMB_MALLOC(state->total_param+100);
state             688 source3/smbd/ipc.c 		if (state->param == NULL) {
state             690 source3/smbd/ipc.c 				 "bytes !\n", (unsigned int)state->total_param));
state             691 source3/smbd/ipc.c 			SAFE_FREE(state->data);
state             692 source3/smbd/ipc.c 			TALLOC_FREE(state);
state             698 source3/smbd/ipc.c 		memset(&state->param[state->total_param], 0, 100);
state             700 source3/smbd/ipc.c 		memcpy(state->param,smb_base(req->inbuf)+psoff,pscnt);
state             703 source3/smbd/ipc.c 	state->received_data  = dscnt;
state             704 source3/smbd/ipc.c 	state->received_param = pscnt;
state             706 source3/smbd/ipc.c 	if (state->setup_count) {
state             717 source3/smbd/ipc.c 		if (state->setup_count + 14 > (unsigned int)req->wct) {
state             721 source3/smbd/ipc.c 		if((state->setup = TALLOC_ARRAY(
state             722 source3/smbd/ipc.c 			    state, uint16, state->setup_count)) == NULL) {
state             725 source3/smbd/ipc.c 				 (state->setup_count * sizeof(uint16))));
state             726 source3/smbd/ipc.c 			SAFE_FREE(state->data);
state             727 source3/smbd/ipc.c 			SAFE_FREE(state->param);
state             728 source3/smbd/ipc.c 			TALLOC_FREE(state);
state             734 source3/smbd/ipc.c 		for (i=0;i<state->setup_count;i++) {
state             735 source3/smbd/ipc.c 			state->setup[i] = SVAL(req->vwv + 14 + i, 0);
state             739 source3/smbd/ipc.c 	state->received_param = pscnt;
state             741 source3/smbd/ipc.c 	if ((state->received_param != state->total_param) ||
state             742 source3/smbd/ipc.c 	    (state->received_data != state->total_data)) {
state             743 source3/smbd/ipc.c 		DLIST_ADD(conn->pending_trans, state);
state             753 source3/smbd/ipc.c 	talloc_steal(talloc_tos(), state);
state             755 source3/smbd/ipc.c 	handle_trans(conn, req, state);
state             757 source3/smbd/ipc.c 	SAFE_FREE(state->data);
state             758 source3/smbd/ipc.c 	SAFE_FREE(state->param);
state             759 source3/smbd/ipc.c 	TALLOC_FREE(state);
state             767 source3/smbd/ipc.c 	SAFE_FREE(state->data);
state             768 source3/smbd/ipc.c 	SAFE_FREE(state->param);
state             769 source3/smbd/ipc.c 	TALLOC_FREE(state);
state             783 source3/smbd/ipc.c 	struct trans_state *state;
state             795 source3/smbd/ipc.c 	for (state = conn->pending_trans; state != NULL;
state             796 source3/smbd/ipc.c 	     state = state->next) {
state             797 source3/smbd/ipc.c 		if (state->mid == req->mid) {
state             802 source3/smbd/ipc.c 	if ((state == NULL) || (state->cmd != SMBtrans)) {
state             811 source3/smbd/ipc.c 	if (SVAL(req->vwv+0, 0) < state->total_param)
state             812 source3/smbd/ipc.c 		state->total_param = SVAL(req->vwv+0, 0);
state             813 source3/smbd/ipc.c 	if (SVAL(req->vwv+1, 0) < state->total_data)
state             814 source3/smbd/ipc.c 		state->total_data = SVAL(req->vwv+1, 0);
state             824 source3/smbd/ipc.c 	state->received_param += pcnt;
state             825 source3/smbd/ipc.c 	state->received_data += dcnt;
state             827 source3/smbd/ipc.c 	if ((state->received_data > state->total_data) ||
state             828 source3/smbd/ipc.c 	    (state->received_param > state->total_param))
state             832 source3/smbd/ipc.c 		if (trans_oob(state->total_param, pdisp, pcnt)
state             836 source3/smbd/ipc.c 		memcpy(state->param+pdisp,smb_base(req->inbuf)+poff,pcnt);
state             840 source3/smbd/ipc.c 		if (trans_oob(state->total_data, ddisp, dcnt)
state             844 source3/smbd/ipc.c 		memcpy(state->data+ddisp, smb_base(req->inbuf)+doff,dcnt);
state             847 source3/smbd/ipc.c 	if ((state->received_param < state->total_param) ||
state             848 source3/smbd/ipc.c 	    (state->received_data < state->total_data)) {
state             853 source3/smbd/ipc.c 	talloc_steal(talloc_tos(), state);
state             855 source3/smbd/ipc.c 	handle_trans(conn, req, state);
state             857 source3/smbd/ipc.c 	DLIST_REMOVE(conn->pending_trans, state);
state             858 source3/smbd/ipc.c 	SAFE_FREE(state->data);
state             859 source3/smbd/ipc.c 	SAFE_FREE(state->param);
state             860 source3/smbd/ipc.c 	TALLOC_FREE(state);
state             868 source3/smbd/ipc.c 	DLIST_REMOVE(conn->pending_trans, state);
state             869 source3/smbd/ipc.c 	SAFE_FREE(state->data);
state             870 source3/smbd/ipc.c 	SAFE_FREE(state->param);
state             871 source3/smbd/ipc.c 	TALLOC_FREE(state);
state              74 source3/smbd/message.c 	if (!convert_string_talloc(talloc_tos(), CH_DOS, CH_UNIX, state->msg,
state              75 source3/smbd/message.c 				   talloc_get_size(state->msg), (void *)&msg,
state              79 source3/smbd/message.c 		msg = state->msg;
state             102 source3/smbd/message.c 	alpha_strcpy(alpha_buf, state->from, NULL, sizeof(alpha_buf));
state             109 source3/smbd/message.c 	alpha_strcpy(alpha_buf, state->to, NULL, sizeof(alpha_buf));
state             140 source3/smbd/message.c 	struct msg_state *state;
state             153 source3/smbd/message.c 	state = talloc(talloc_tos(), struct msg_state);
state             157 source3/smbd/message.c 		state, req, &state->from, p, STR_ASCII|STR_TERMINATE) + 1;
state             159 source3/smbd/message.c 		state, req, &state->to, p, STR_ASCII|STR_TERMINATE) + 1;
state             166 source3/smbd/message.c 	state->msg = talloc_array(state, char, len);
state             168 source3/smbd/message.c 	if (state->msg == NULL) {
state             174 source3/smbd/message.c 	memcpy(state->msg, msg+2, len);
state             176 source3/smbd/message.c 	msg_deliver(state);
state            2502 source3/smbd/nttrans.c 	SMB_PERFCOUNT_SET_SUBOP(&req->pcd, state->call);
state            2505 source3/smbd/nttrans.c 	switch(state->call) {
state            2511 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2512 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2513 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2514 source3/smbd/nttrans.c 				state->max_data_return);
state            2524 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2525 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2526 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2527 source3/smbd/nttrans.c 				state->max_data_return);
state            2537 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2538 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2539 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2540 source3/smbd/nttrans.c 				state->max_data_return);
state            2550 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2551 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2552 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2553 source3/smbd/nttrans.c 				state->max_data_return,
state            2554 source3/smbd/nttrans.c 				state->max_param_return);
state            2564 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2565 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2566 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2567 source3/smbd/nttrans.c 				state->max_data_return);
state            2577 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2578 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2579 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2580 source3/smbd/nttrans.c 				state->max_data_return);
state            2591 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2592 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2593 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2594 source3/smbd/nttrans.c 				state->max_data_return);
state            2604 source3/smbd/nttrans.c 				&state->setup, state->setup_count,
state            2605 source3/smbd/nttrans.c 				&state->param, state->total_param,
state            2606 source3/smbd/nttrans.c 				&state->data, state->total_data,
state            2607 source3/smbd/nttrans.c 				state->max_data_return);
state            2616 source3/smbd/nttrans.c 				 "nttrans call\n", state->call));
state            2636 source3/smbd/nttrans.c 	struct trans_state *state;
state            2666 source3/smbd/nttrans.c 	if ((state = TALLOC_P(conn, struct trans_state)) == NULL) {
state            2672 source3/smbd/nttrans.c 	state->cmd = SMBnttrans;
state            2674 source3/smbd/nttrans.c 	state->mid = req->mid;
state            2675 source3/smbd/nttrans.c 	state->vuid = req->vuid;
state            2676 source3/smbd/nttrans.c 	state->total_data = IVAL(req->vwv+3, 1);
state            2677 source3/smbd/nttrans.c 	state->data = NULL;
state            2678 source3/smbd/nttrans.c 	state->total_param = IVAL(req->vwv+1, 1);
state            2679 source3/smbd/nttrans.c 	state->param = NULL;
state            2680 source3/smbd/nttrans.c 	state->max_data_return = IVAL(req->vwv+7, 1);
state            2681 source3/smbd/nttrans.c 	state->max_param_return = IVAL(req->vwv+5, 1);
state            2684 source3/smbd/nttrans.c 	state->setup_count = 2*CVAL(req->vwv+17, 1);
state            2685 source3/smbd/nttrans.c 	state->setup = NULL;
state            2686 source3/smbd/nttrans.c 	state->call = function_code;
state            2692 source3/smbd/nttrans.c 		   (unsigned)state->setup_count,
state            2693 source3/smbd/nttrans.c 		   (unsigned)state->total_param, (unsigned)pscnt,
state            2694 source3/smbd/nttrans.c 		   (unsigned)state->max_param_return,
state            2695 source3/smbd/nttrans.c 		   (unsigned)state->total_data, (unsigned)dscnt,
state            2696 source3/smbd/nttrans.c 		   (unsigned)state->max_data_return,
state            2704 source3/smbd/nttrans.c 	if(req->wct != 19 + (state->setup_count/2)) {
state            2706 source3/smbd/nttrans.c 			 req->wct, 19 + (state->setup_count/2)));
state            2711 source3/smbd/nttrans.c 	if ((state->total_data > (1024*1024*128)) ||
state            2712 source3/smbd/nttrans.c 	    (state->total_param > (1024*1024*128))) {
state            2718 source3/smbd/nttrans.c 	if ((dscnt > state->total_data) || (pscnt > state->total_param))
state            2721 source3/smbd/nttrans.c 	if (state->total_data)  {
state            2723 source3/smbd/nttrans.c 		if (trans_oob(state->total_data, 0, dscnt)
state            2730 source3/smbd/nttrans.c 		if ((state->data = (char *)SMB_MALLOC(state->total_data)) == NULL) {
state            2732 source3/smbd/nttrans.c 				 "bytes !\n", (unsigned int)state->total_data));
state            2733 source3/smbd/nttrans.c 			TALLOC_FREE(state);
state            2739 source3/smbd/nttrans.c 		memcpy(state->data,smb_base(req->inbuf)+dsoff,dscnt);
state            2742 source3/smbd/nttrans.c 	if (state->total_param) {
state            2744 source3/smbd/nttrans.c 		if (trans_oob(state->total_param, 0, pscnt)
state            2751 source3/smbd/nttrans.c 		if ((state->param = (char *)SMB_MALLOC(state->total_param)) == NULL) {
state            2753 source3/smbd/nttrans.c 				 "bytes !\n", (unsigned int)state->total_param));
state            2754 source3/smbd/nttrans.c 			SAFE_FREE(state->data);
state            2755 source3/smbd/nttrans.c 			TALLOC_FREE(state);
state            2761 source3/smbd/nttrans.c 		memcpy(state->param,smb_base(req->inbuf)+psoff,pscnt);
state            2764 source3/smbd/nttrans.c 	state->received_data  = dscnt;
state            2765 source3/smbd/nttrans.c 	state->received_param = pscnt;
state            2767 source3/smbd/nttrans.c 	if(state->setup_count > 0) {
state            2769 source3/smbd/nttrans.c 			  state->setup_count));
state            2779 source3/smbd/nttrans.c 		if ((state->setup_count/2) + 19 > (unsigned int)req->wct) {
state            2783 source3/smbd/nttrans.c 		state->setup = (uint16 *)TALLOC(state, state->setup_count);
state            2784 source3/smbd/nttrans.c 		if (state->setup == NULL) {
state            2786 source3/smbd/nttrans.c 			SAFE_FREE(state->data);
state            2787 source3/smbd/nttrans.c 			SAFE_FREE(state->param);
state            2788 source3/smbd/nttrans.c 			TALLOC_FREE(state);
state            2794 source3/smbd/nttrans.c 		memcpy(state->setup, req->vwv+19, state->setup_count);
state            2795 source3/smbd/nttrans.c 		dump_data(10, (uint8 *)state->setup, state->setup_count);
state            2798 source3/smbd/nttrans.c 	if ((state->received_data == state->total_data) &&
state            2799 source3/smbd/nttrans.c 	    (state->received_param == state->total_param)) {
state            2800 source3/smbd/nttrans.c 		handle_nttrans(conn, state, req);
state            2801 source3/smbd/nttrans.c 		SAFE_FREE(state->param);
state            2802 source3/smbd/nttrans.c 		SAFE_FREE(state->data);
state            2803 source3/smbd/nttrans.c 		TALLOC_FREE(state);
state            2808 source3/smbd/nttrans.c 	DLIST_ADD(conn->pending_trans, state);
state            2820 source3/smbd/nttrans.c 	SAFE_FREE(state->data);
state            2821 source3/smbd/nttrans.c 	SAFE_FREE(state->param);
state            2822 source3/smbd/nttrans.c 	TALLOC_FREE(state);
state            2836 source3/smbd/nttrans.c 	struct trans_state *state;
state            2848 source3/smbd/nttrans.c 	for (state = conn->pending_trans; state != NULL;
state            2849 source3/smbd/nttrans.c 	     state = state->next) {
state            2850 source3/smbd/nttrans.c 		if (state->mid == req->mid) {
state            2855 source3/smbd/nttrans.c 	if ((state == NULL) || (state->cmd != SMBnttrans)) {
state            2863 source3/smbd/nttrans.c 	if (IVAL(req->vwv+1, 1) < state->total_param) {
state            2864 source3/smbd/nttrans.c 		state->total_param = IVAL(req->vwv+1, 1);
state            2866 source3/smbd/nttrans.c 	if (IVAL(req->vwv+3, 1) < state->total_data) {
state            2867 source3/smbd/nttrans.c 		state->total_data = IVAL(req->vwv+3, 1);
state            2878 source3/smbd/nttrans.c 	state->received_param += pcnt;
state            2879 source3/smbd/nttrans.c 	state->received_data += dcnt;
state            2881 source3/smbd/nttrans.c 	if ((state->received_data > state->total_data) ||
state            2882 source3/smbd/nttrans.c 	    (state->received_param > state->total_param))
state            2886 source3/smbd/nttrans.c 		if (trans_oob(state->total_param, pdisp, pcnt)
state            2890 source3/smbd/nttrans.c 		memcpy(state->param+pdisp, smb_base(req->inbuf)+poff,pcnt);
state            2894 source3/smbd/nttrans.c 		if (trans_oob(state->total_data, ddisp, dcnt)
state            2898 source3/smbd/nttrans.c 		memcpy(state->data+ddisp, smb_base(req->inbuf)+doff,dcnt);
state            2901 source3/smbd/nttrans.c 	if ((state->received_param < state->total_param) ||
state            2902 source3/smbd/nttrans.c 	    (state->received_data < state->total_data)) {
state            2907 source3/smbd/nttrans.c 	handle_nttrans(conn, state, req);
state            2909 source3/smbd/nttrans.c 	DLIST_REMOVE(conn->pending_trans, state);
state            2910 source3/smbd/nttrans.c 	SAFE_FREE(state->data);
state            2911 source3/smbd/nttrans.c 	SAFE_FREE(state->param);
state            2912 source3/smbd/nttrans.c 	TALLOC_FREE(state);
state            2919 source3/smbd/nttrans.c 	DLIST_REMOVE(conn->pending_trans, state);
state            2920 source3/smbd/nttrans.c 	SAFE_FREE(state->data);
state            2921 source3/smbd/nttrans.c 	SAFE_FREE(state->param);
state            2922 source3/smbd/nttrans.c 	TALLOC_FREE(state);
state            1032 source3/smbd/open.c 				       (char *)state, sizeof(*state))) {
state            1035 source3/smbd/open.c 	add_deferred_open(lck, req->mid, request_time, state->id);
state            1302 source3/smbd/open.c 	struct deferred_open_record state;
state            1327 source3/smbd/open.c 	state.delayed_for_oplocks = True;
state            1328 source3/smbd/open.c 	state.id = lck->id;
state            1331 source3/smbd/open.c 		defer_open(lck, request_time, timeout, req, &state);
state            1488 source3/smbd/open.c 		struct deferred_open_record *state =
state            1498 source3/smbd/open.c 		lck = get_share_mode_lock(talloc_tos(), state->id, NULL, NULL,
state            1845 source3/smbd/open.c 				struct deferred_open_record state;
state            1869 source3/smbd/open.c 				state.delayed_for_oplocks = False;
state            1870 source3/smbd/open.c 				state.id = id;
state            1876 source3/smbd/open.c 						   req, &state);
state            1990 source3/smbd/open.c 			struct deferred_open_record state;
state            1994 source3/smbd/open.c 			state.delayed_for_oplocks = False;
state            1995 source3/smbd/open.c 			state.id = id;
state            2006 source3/smbd/open.c 					   req, &state);
state            2712 source3/smbd/open.c 	state->conn->case_sensitive = state->case_sensitive;
state            2713 source3/smbd/open.c 	state->conn->case_preserve = state->case_preserve;
state            2714 source3/smbd/open.c 	state->conn->short_case_preserve = state->short_case_preserve;
state             250 source3/smbd/oplock_irix.c 		int state = sys_fcntl_long(fsp->fh->fd, F_OPLKACK, -1);
state             254 source3/smbd/oplock_irix.c                         fsp->fh->gen_id, state );
state             144 source3/smbd/oplock_linux.c 		int state = fcntl(fsp->fh->fd, F_GETLEASE, 0);
state             148 source3/smbd/oplock_linux.c 			fsp->fh->gen_id, state );
state              49 source3/smbd/oplock_onefs.c 	enum onefs_callback_state state;
state              74 source3/smbd/oplock_onefs.c 	switch (r->state) {
state              85 source3/smbd/oplock_onefs.c 			     r->id, r->state);
state             140 source3/smbd/oplock_onefs.c 	if (rec->state != expected_state) {
state             218 source3/smbd/oplock_onefs.c 	result->state = ONEFS_WAITING_FOR_OPLOCK;
state             259 source3/smbd/oplock_onefs.c 	cb->state = ONEFS_OPEN_FILE;
state             443 source3/smbd/oplock_onefs.c 	struct deferred_open_record *state;
state             473 source3/smbd/oplock_onefs.c 	state = (struct deferred_open_record *)pml->private_data.data;
state             476 source3/smbd/oplock_onefs.c 	state->failed = true;
state             157 source3/smbd/pipes.c 	struct pipe_write_state *state;
state             170 source3/smbd/pipes.c 	state = talloc(req, struct pipe_write_state);
state             171 source3/smbd/pipes.c 	if (state == NULL) {
state             175 source3/smbd/pipes.c 	req->async_priv = state;
state             177 source3/smbd/pipes.c 	state->numtowrite = SVAL(req->vwv+1, 0);
state             182 source3/smbd/pipes.c 		  fsp->fsp_name, (int)state->numtowrite));
state             184 source3/smbd/pipes.c 	subreq = np_write_send(state, smbd_event_context(),
state             185 source3/smbd/pipes.c 			       fsp->fake_file_handle, data, state->numtowrite);
state             187 source3/smbd/pipes.c 		TALLOC_FREE(state);
state             199 source3/smbd/pipes.c 	struct pipe_write_state *state = talloc_get_type_abort(
state             206 source3/smbd/pipes.c 	if ((nwritten == 0 && state->numtowrite != 0) || (nwritten < 0)) {
state             245 source3/smbd/pipes.c 	struct pipe_write_andx_state *state;
state             258 source3/smbd/pipes.c 	state = talloc(req, struct pipe_write_andx_state);
state             259 source3/smbd/pipes.c 	if (state == NULL) {
state             263 source3/smbd/pipes.c 	req->async_priv = state;
state             265 source3/smbd/pipes.c 	state->numtowrite = SVAL(req->vwv+10, 0);
state             266 source3/smbd/pipes.c 	state->pipe_start_message_raw =
state             271 source3/smbd/pipes.c 		  (int)fsp->fnum, fsp->fsp_name, (int)state->numtowrite));
state             275 source3/smbd/pipes.c 	if (state->pipe_start_message_raw) {
state             281 source3/smbd/pipes.c 		if (state->numtowrite < 2) {
state             284 source3/smbd/pipes.c 				 (unsigned int)state->numtowrite ));
state             290 source3/smbd/pipes.c 		state->numtowrite -= 2;
state             293 source3/smbd/pipes.c 	subreq = np_write_send(state, smbd_event_context(),
state             294 source3/smbd/pipes.c 			       fsp->fake_file_handle, data, state->numtowrite);
state             296 source3/smbd/pipes.c 		TALLOC_FREE(state);
state             308 source3/smbd/pipes.c 	struct pipe_write_andx_state *state = talloc_get_type_abort(
state             315 source3/smbd/pipes.c 	if (!NT_STATUS_IS_OK(status) || (nwritten != state->numtowrite)) {
state             322 source3/smbd/pipes.c 	nwritten = (state->pipe_start_message_raw ? nwritten + 2 : nwritten);
state             354 source3/smbd/pipes.c 	struct pipe_read_andx_state *state;
state             374 source3/smbd/pipes.c 	state = talloc(req, struct pipe_read_andx_state);
state             375 source3/smbd/pipes.c 	if (state == NULL) {
state             379 source3/smbd/pipes.c 	req->async_priv = state;
state             381 source3/smbd/pipes.c 	state->smb_maxcnt = SVAL(req->vwv+5, 0);
state             382 source3/smbd/pipes.c 	state->smb_mincnt = SVAL(req->vwv+6, 0);
state             384 source3/smbd/pipes.c 	reply_outbuf(req, 12, state->smb_maxcnt);
state             390 source3/smbd/pipes.c 	state->outbuf = req->outbuf;
state             393 source3/smbd/pipes.c 	subreq = np_read_send(state, smbd_event_context(),
state             395 source3/smbd/pipes.c 			      state->smb_maxcnt);
state             408 source3/smbd/pipes.c 	struct pipe_read_andx_state *state = talloc_get_type_abort(
state             421 source3/smbd/pipes.c 	req->outbuf = state->outbuf;
state             422 source3/smbd/pipes.c 	state->outbuf = NULL;
state             432 source3/smbd/pipes.c 	SSVAL(req->outbuf,smb_vwv11,state->smb_maxcnt);
state             435 source3/smbd/pipes.c 		 state->smb_mincnt, state->smb_maxcnt, (int)nread));
state             287 source3/smbd/session.c 	struct session_list *sesslist = (struct session_list *) state;
state            7519 source3/smbd/trans2.c 		if (state->call != TRANSACT2_QFSINFO &&
state            7520 source3/smbd/trans2.c 				state->call != TRANSACT2_SETFSINFO) {
state            7523 source3/smbd/trans2.c 				(unsigned int)state->call));
state            7529 source3/smbd/trans2.c 	SMB_PERFCOUNT_SET_SUBOP(&req->pcd, state->call);
state            7532 source3/smbd/trans2.c 	switch(state->call)  {
state            7537 source3/smbd/trans2.c 				&state->param, state->total_param,
state            7538 source3/smbd/trans2.c 				&state->data, state->total_data,
state            7539 source3/smbd/trans2.c 				state->max_data_return);
state            7548 source3/smbd/trans2.c 				     &state->param, state->total_param,
state            7549 source3/smbd/trans2.c 				     &state->data, state->total_data,
state            7550 source3/smbd/trans2.c 				     state->max_data_return);
state            7559 source3/smbd/trans2.c 				    &state->param, state->total_param,
state            7560 source3/smbd/trans2.c 				    &state->data, state->total_data,
state            7561 source3/smbd/trans2.c 				    state->max_data_return);
state            7570 source3/smbd/trans2.c 				   &state->param, state->total_param,
state            7571 source3/smbd/trans2.c 				   &state->data, state->total_data,
state            7572 source3/smbd/trans2.c 				   state->max_data_return);
state            7581 source3/smbd/trans2.c 				     &state->param, state->total_param,
state            7582 source3/smbd/trans2.c 				     &state->data, state->total_data,
state            7583 source3/smbd/trans2.c 				     state->max_data_return);
state            7592 source3/smbd/trans2.c 		call_trans2qfilepathinfo(conn, req, state->call,
state            7593 source3/smbd/trans2.c 					 &state->param, state->total_param,
state            7594 source3/smbd/trans2.c 					 &state->data, state->total_data,
state            7595 source3/smbd/trans2.c 					 state->max_data_return);
state            7604 source3/smbd/trans2.c 		call_trans2setfilepathinfo(conn, req, state->call,
state            7605 source3/smbd/trans2.c 					   &state->param, state->total_param,
state            7606 source3/smbd/trans2.c 					   &state->data, state->total_data,
state            7607 source3/smbd/trans2.c 					   state->max_data_return);
state            7616 source3/smbd/trans2.c 					   &state->param, state->total_param,
state            7617 source3/smbd/trans2.c 					   &state->data, state->total_data,
state            7618 source3/smbd/trans2.c 					   state->max_data_return);
state            7627 source3/smbd/trans2.c 					  &state->param, state->total_param,
state            7628 source3/smbd/trans2.c 					  &state->data, state->total_data,
state            7629 source3/smbd/trans2.c 					  state->max_data_return);
state            7638 source3/smbd/trans2.c 				 &state->param, state->total_param,
state            7639 source3/smbd/trans2.c 				 &state->data, state->total_data,
state            7640 source3/smbd/trans2.c 				 state->max_data_return);
state            7649 source3/smbd/trans2.c 					  &state->param, state->total_param,
state            7650 source3/smbd/trans2.c 					  &state->data, state->total_data,
state            7651 source3/smbd/trans2.c 					  state->max_data_return);
state            7660 source3/smbd/trans2.c 				 &state->param, state->total_param,
state            7661 source3/smbd/trans2.c 				 &state->data, state->total_data,
state            7662 source3/smbd/trans2.c 				 state->max_data_return);
state            7669 source3/smbd/trans2.c 		DEBUG(2,("Unknown request %d in trans2 call\n", state->call));
state            7686 source3/smbd/trans2.c 	struct trans_state *state;
state            7728 source3/smbd/trans2.c 	if ((state = TALLOC_P(conn, struct trans_state)) == NULL) {
state            7735 source3/smbd/trans2.c 	state->cmd = SMBtrans2;
state            7737 source3/smbd/trans2.c 	state->mid = req->mid;
state            7738 source3/smbd/trans2.c 	state->vuid = req->vuid;
state            7739 source3/smbd/trans2.c 	state->setup_count = SVAL(req->vwv+13, 0);
state            7740 source3/smbd/trans2.c 	state->setup = NULL;
state            7741 source3/smbd/trans2.c 	state->total_param = SVAL(req->vwv+0, 0);
state            7742 source3/smbd/trans2.c 	state->param = NULL;
state            7743 source3/smbd/trans2.c 	state->total_data =  SVAL(req->vwv+1, 0);
state            7744 source3/smbd/trans2.c 	state->data = NULL;
state            7745 source3/smbd/trans2.c 	state->max_param_return = SVAL(req->vwv+2, 0);
state            7746 source3/smbd/trans2.c 	state->max_data_return  = SVAL(req->vwv+3, 0);
state            7747 source3/smbd/trans2.c 	state->max_setup_return = SVAL(req->vwv+4, 0);
state            7748 source3/smbd/trans2.c 	state->close_on_completion = BITSETW(req->vwv+5, 0);
state            7749 source3/smbd/trans2.c 	state->one_way = BITSETW(req->vwv+5, 1);
state            7751 source3/smbd/trans2.c 	state->call = tran_call;
state            7755 source3/smbd/trans2.c 	if (state->setup_count != 1) {
state            7764 source3/smbd/trans2.c 		if ( (state->setup_count == 4)
state            7770 source3/smbd/trans2.c 			DEBUG(2,("Invalid smb_sucnt in trans2 call(%u)\n",state->setup_count));
state            7772 source3/smbd/trans2.c 			TALLOC_FREE(state);
state            7779 source3/smbd/trans2.c 	if ((dscnt > state->total_data) || (pscnt > state->total_param))
state            7782 source3/smbd/trans2.c 	if (state->total_data) {
state            7784 source3/smbd/trans2.c 		if (trans_oob(state->total_data, 0, dscnt)
state            7791 source3/smbd/trans2.c 		state->data = (char *)SMB_MALLOC(state->total_data);
state            7792 source3/smbd/trans2.c 		if (state->data == NULL) {
state            7794 source3/smbd/trans2.c 				 "bytes !\n", (unsigned int)state->total_data));
state            7795 source3/smbd/trans2.c 			TALLOC_FREE(state);
state            7801 source3/smbd/trans2.c 		memcpy(state->data,smb_base(req->inbuf)+dsoff,dscnt);
state            7804 source3/smbd/trans2.c 	if (state->total_param) {
state            7806 source3/smbd/trans2.c 		if (trans_oob(state->total_param, 0, pscnt)
state            7813 source3/smbd/trans2.c 		state->param = (char *)SMB_MALLOC(state->total_param);
state            7814 source3/smbd/trans2.c 		if (state->param == NULL) {
state            7816 source3/smbd/trans2.c 				 "bytes !\n", (unsigned int)state->total_param));
state            7817 source3/smbd/trans2.c 			SAFE_FREE(state->data);
state            7818 source3/smbd/trans2.c 			TALLOC_FREE(state);
state            7824 source3/smbd/trans2.c 		memcpy(state->param,smb_base(req->inbuf)+psoff,pscnt);
state            7827 source3/smbd/trans2.c 	state->received_data  = dscnt;
state            7828 source3/smbd/trans2.c 	state->received_param = pscnt;
state            7830 source3/smbd/trans2.c 	if ((state->received_param == state->total_param) &&
state            7831 source3/smbd/trans2.c 	    (state->received_data == state->total_data)) {
state            7833 source3/smbd/trans2.c 		handle_trans2(conn, req, state);
state            7835 source3/smbd/trans2.c 		SAFE_FREE(state->data);
state            7836 source3/smbd/trans2.c 		SAFE_FREE(state->param);
state            7837 source3/smbd/trans2.c 		TALLOC_FREE(state);
state            7842 source3/smbd/trans2.c 	DLIST_ADD(conn->pending_trans, state);
state            7854 source3/smbd/trans2.c 	SAFE_FREE(state->data);
state            7855 source3/smbd/trans2.c 	SAFE_FREE(state->param);
state            7856 source3/smbd/trans2.c 	TALLOC_FREE(state);
state            7870 source3/smbd/trans2.c 	struct trans_state *state;
state            7882 source3/smbd/trans2.c 	for (state = conn->pending_trans; state != NULL;
state            7883 source3/smbd/trans2.c 	     state = state->next) {
state            7884 source3/smbd/trans2.c 		if (state->mid == req->mid) {
state            7889 source3/smbd/trans2.c 	if ((state == NULL) || (state->cmd != SMBtrans2)) {
state            7898 source3/smbd/trans2.c 	if (SVAL(req->vwv+0, 0) < state->total_param)
state            7899 source3/smbd/trans2.c 		state->total_param = SVAL(req->vwv+0, 0);
state            7900 source3/smbd/trans2.c 	if (SVAL(req->vwv+1, 0) < state->total_data)
state            7901 source3/smbd/trans2.c 		state->total_data = SVAL(req->vwv+1, 0);
state            7911 source3/smbd/trans2.c 	state->received_param += pcnt;
state            7912 source3/smbd/trans2.c 	state->received_data += dcnt;
state            7914 source3/smbd/trans2.c 	if ((state->received_data > state->total_data) ||
state            7915 source3/smbd/trans2.c 	    (state->received_param > state->total_param))
state            7919 source3/smbd/trans2.c 		if (trans_oob(state->total_param, pdisp, pcnt)
state            7923 source3/smbd/trans2.c 		memcpy(state->param+pdisp,smb_base(req->inbuf)+poff,pcnt);
state            7927 source3/smbd/trans2.c 		if (trans_oob(state->total_data, ddisp, dcnt)
state            7931 source3/smbd/trans2.c 		memcpy(state->data+ddisp, smb_base(req->inbuf)+doff,dcnt);
state            7934 source3/smbd/trans2.c 	if ((state->received_param < state->total_param) ||
state            7935 source3/smbd/trans2.c 	    (state->received_data < state->total_data)) {
state            7940 source3/smbd/trans2.c 	handle_trans2(conn, req, state);
state            7942 source3/smbd/trans2.c 	DLIST_REMOVE(conn->pending_trans, state);
state            7943 source3/smbd/trans2.c 	SAFE_FREE(state->data);
state            7944 source3/smbd/trans2.c 	SAFE_FREE(state->param);
state            7945 source3/smbd/trans2.c 	TALLOC_FREE(state);
state            7953 source3/smbd/trans2.c 	DLIST_REMOVE(conn->pending_trans, state);
state            7954 source3/smbd/trans2.c 	SAFE_FREE(state->data);
state            7955 source3/smbd/trans2.c 	SAFE_FREE(state->param);
state            7956 source3/smbd/trans2.c 	TALLOC_FREE(state);
state            4505 source3/torture/torture.c 	struct cli_state *pcli = (struct cli_state *)state;
state            5230 source3/torture/torture.c 	while (req->state < ASYNC_REQ_DONE) {
state            5293 source3/torture/torture.c 	struct cli_state *pcli = (struct cli_state *)state;
state            5316 source3/torture/torture.c 	struct sn_state *s = (struct sn_state  *)state;
state             230 source3/utils/debug2html.c             state = dbg_null,
state             243 source3/utils/debug2html.c       newtok = dbg_char2token( &state, bufr[i] );
state             150 source3/utils/debugparse.c       *state = dbg_null;   /* Set state to null (initial state) so */
state             154 source3/utils/debugparse.c       *state = dbg_null;   /* A newline or eoln resets to the null state. */
state             163 source3/utils/debugparse.c   if( dbg_message == *state )
state             170 source3/utils/debugparse.c   if( dbg_null == *state )
state             174 source3/utils/debugparse.c       *state = dbg_timestamp;
state             177 source3/utils/debugparse.c     *state = dbg_message;
state             192 source3/utils/debugparse.c     if( (' ' == c) && (dbg_timestamp == *state) )
state             205 source3/utils/debugparse.c       if( dbg_timestamp == *state )
state             207 source3/utils/debugparse.c         *state = dbg_level;
state             212 source3/utils/debugparse.c       if( dbg_level == *state )
state             214 source3/utils/debugparse.c         *state = dbg_sourcefile;
state             219 source3/utils/debugparse.c       if( dbg_sourcefile == *state )
state             221 source3/utils/debugparse.c         *state = dbg_function;
state             226 source3/utils/debugparse.c       if( dbg_function == *state )
state             228 source3/utils/debugparse.c         *state = dbg_lineno;
state             233 source3/utils/debugparse.c       if( dbg_lineno == *state )
state             235 source3/utils/debugparse.c         *state = dbg_null;
state             244 source3/utils/debugparse.c   return( *state );
state             266 source3/utils/debugparse.c             state = dbg_null;
state             273 source3/utils/debugparse.c       newtok = dbg_char2token( &state, bufr[i] );
state             348 source3/utils/net_lua.c 	lua_State *state;
state             350 source3/utils/net_lua.c 	state = lua_open();
state             351 source3/utils/net_lua.c 	if (state == NULL) {
state             356 source3/utils/net_lua.c 	luaL_openlibs(state);
state             357 source3/utils/net_lua.c 	evt_lua_init(state, "event");
state             358 source3/utils/net_lua.c 	sock_lua_init(state, "socket");
state             369 source3/utils/net_lua.c 			if (luaL_dofile(state, &line[1])) {
state             374 source3/utils/net_lua.c 			if (luaL_dostring(state, line) != 0) {
state             382 source3/utils/net_lua.c 	lua_close(state);
state            3202 source3/utils/net_rpc.c 	local_state = (struct copy_clistate *)state;
state            4340 source3/utils/net_rpc.c 	struct share_list *share_list = (struct share_list *)state;
state            1375 source3/utils/net_rpc_printer.c 	int state;
state            1402 source3/utils/net_rpc_printer.c 		state = info.info7.action;
state            1403 source3/utils/net_rpc_printer.c 		switch (state) {
state            1417 source3/utils/net_rpc_printer.c 				printf("unkown state: %d\n", state);
state              47 source3/utils/net_rpc_service.c 	fstr_sprintf( msg, "Unknown State [%d]", state );
state              50 source3/utils/net_rpc_service.c 		if ( state_msg_table[i].flag == state ) {
state              92 source3/utils/net_rpc_service.c 		*state = service_status.state;
state             111 source3/utils/net_rpc_service.c 	uint32 state = 0;
state             116 source3/utils/net_rpc_service.c 	while ( (state != watch_state ) && i<30 ) {
state             119 source3/utils/net_rpc_service.c 		result = query_service_state(pipe_hnd, mem_ctx, hSCM, service, &state  );
state             130 source3/utils/net_rpc_service.c 	*final_state = state;
state             149 source3/utils/net_rpc_service.c 	uint32 state = 0;
state             180 source3/utils/net_rpc_service.c 	result = watch_service_state(pipe_hnd, mem_ctx, hSCM, service, watch_state, &state );
state             182 source3/utils/net_rpc_service.c 	d_printf("%s service is %s.\n", service, svc_status_string(state));
state             363 source3/utils/net_rpc_service.c 	d_printf("%s service is %s.\n", argv[0], svc_status_string(service_status.state));
state             571 source3/utils/net_rpc_service.c 	uint32 state = 0;
state             617 source3/utils/net_rpc_service.c 	result = watch_service_state(pipe_hnd, mem_ctx, &hSCM, argv[0], SVCCTL_RUNNING, &state  );
state             619 source3/utils/net_rpc_service.c 	if ( W_ERROR_IS_OK(result) && (state == SVCCTL_RUNNING) )
state             156 source3/utils/net_status.c 	struct sessionids *ids = (struct sessionids *)state;
state             740 source3/utils/ntlm_auth.c 			TALLOC_FREE(state->want_feature_list);
state             741 source3/utils/ntlm_auth.c 			state->want_feature_list = talloc_strdup(state->mem_ctx,
state             771 source3/utils/ntlm_auth.c 		if (state->ntlmssp_state)
state             772 source3/utils/ntlm_auth.c 			ntlmssp_end(&state->ntlmssp_state);
state             773 source3/utils/ntlm_auth.c 		state->svr_state = SERVER_INITIAL;
state             779 source3/utils/ntlm_auth.c 		if (state->svr_state == SERVER_FINISHED) {
state             780 source3/utils/ntlm_auth.c 			x_fprintf(x_stdout, "GF 0x%08x\n", state->neg_flags);
state             789 source3/utils/ntlm_auth.c 		if(state->have_session_key) {
state             790 source3/utils/ntlm_auth.c 			char *key64 = base64_encode_data_blob(state->mem_ctx,
state             791 source3/utils/ntlm_auth.c 					state->session_key);
state             806 source3/utils/ntlm_auth.c 	if (!state->ntlmssp_state) {
state             808 source3/utils/ntlm_auth.c 				&state->ntlmssp_state);
state             813 source3/utils/ntlm_auth.c 		ntlmssp_want_feature_list(state->ntlmssp_state,
state             814 source3/utils/ntlm_auth.c 				state->want_feature_list);
state             820 source3/utils/ntlm_auth.c 	nt_status = ntlmssp_update(state->ntlmssp_state, request, &reply);
state             823 source3/utils/ntlm_auth.c 		char *reply_base64 = base64_encode_data_blob(state->mem_ctx,
state             828 source3/utils/ntlm_auth.c 		state->svr_state = SERVER_CHALLENGE;
state             834 source3/utils/ntlm_auth.c 		ntlmssp_end(&state->ntlmssp_state);
state             840 source3/utils/ntlm_auth.c 				(char *)state->ntlmssp_state->auth_context);
state             843 source3/utils/ntlm_auth.c 		if(state->have_session_key)
state             844 source3/utils/ntlm_auth.c 			data_blob_free(&state->session_key);
state             845 source3/utils/ntlm_auth.c 		state->session_key = data_blob(
state             846 source3/utils/ntlm_auth.c 				state->ntlmssp_state->session_key.data,
state             847 source3/utils/ntlm_auth.c 				state->ntlmssp_state->session_key.length);
state             848 source3/utils/ntlm_auth.c 		state->neg_flags = state->ntlmssp_state->neg_flags;
state             849 source3/utils/ntlm_auth.c 		state->have_session_key = true;
state             850 source3/utils/ntlm_auth.c 		state->svr_state = SERVER_FINISHED;
state             876 source3/utils/ntlm_auth.c 			talloc_free(state->want_feature_list);
state             877 source3/utils/ntlm_auth.c 			state->want_feature_list = talloc_strdup(state->mem_ctx,
state             905 source3/utils/ntlm_auth.c 	if (!state->ntlmssp_state && use_cached_creds) {
state             927 source3/utils/ntlm_auth.c 		if (state->ntlmssp_state)
state             928 source3/utils/ntlm_auth.c 			ntlmssp_end(&state->ntlmssp_state);
state             929 source3/utils/ntlm_auth.c 		state->cli_state = CLIENT_INITIAL;
state             935 source3/utils/ntlm_auth.c 		if(state->cli_state == CLIENT_FINISHED) {
state             936 source3/utils/ntlm_auth.c 			x_fprintf(x_stdout, "GF 0x%08x\n", state->neg_flags);
state             947 source3/utils/ntlm_auth.c 		if(state->cli_state == CLIENT_FINISHED) {
state             948 source3/utils/ntlm_auth.c 			char *key64 = base64_encode_data_blob(state->mem_ctx,
state             949 source3/utils/ntlm_auth.c 					state->session_key);
state             965 source3/utils/ntlm_auth.c 	if (!state->ntlmssp_state) {
state             967 source3/utils/ntlm_auth.c 				&state->ntlmssp_state);
state             972 source3/utils/ntlm_auth.c 		ntlmssp_want_feature_list(state->ntlmssp_state,
state             973 source3/utils/ntlm_auth.c 				state->want_feature_list);
state             974 source3/utils/ntlm_auth.c 		state->initial_message = data_blob_null;
state             981 source3/utils/ntlm_auth.c 			(state->cli_state == CLIENT_RESPONSE)) {
state             982 source3/utils/ntlm_auth.c 		nt_status = do_ccache_ntlm_auth(state->initial_message, request,
state             985 source3/utils/ntlm_auth.c 		nt_status = ntlmssp_update(state->ntlmssp_state, request,
state             990 source3/utils/ntlm_auth.c 		char *reply_base64 = base64_encode_data_blob(state->mem_ctx,
state             992 source3/utils/ntlm_auth.c 		if (state->cli_state == CLIENT_INITIAL) {
state             994 source3/utils/ntlm_auth.c 			state->initial_message = reply;
state             995 source3/utils/ntlm_auth.c 			state->cli_state = CLIENT_RESPONSE;
state            1008 source3/utils/ntlm_auth.c 		if(state->have_session_key)
state            1009 source3/utils/ntlm_auth.c 			data_blob_free(&state->session_key);
state            1011 source3/utils/ntlm_auth.c 		state->session_key = data_blob(
state            1012 source3/utils/ntlm_auth.c 				state->ntlmssp_state->session_key.data,
state            1013 source3/utils/ntlm_auth.c 				state->ntlmssp_state->session_key.length);
state            1014 source3/utils/ntlm_auth.c 		state->neg_flags = state->ntlmssp_state->neg_flags;
state            1015 source3/utils/ntlm_auth.c 		state->have_session_key = true;
state            1018 source3/utils/ntlm_auth.c 		state->cli_state = CLIENT_FINISHED;
state            1019 source3/utils/ntlm_auth.c 		if (state->ntlmssp_state)
state            1020 source3/utils/ntlm_auth.c 			ntlmssp_end(&state->ntlmssp_state);
state            1024 source3/utils/ntlm_auth.c 		state->cli_state = CLIENT_ERROR;
state            1025 source3/utils/ntlm_auth.c 		if (state->ntlmssp_state)
state            1026 source3/utils/ntlm_auth.c 			ntlmssp_end(&state->ntlmssp_state);
state            1047 source3/utils/ntlm_auth.c 	if (state->helper_mode == SQUID_2_5_BASIC) {
state            2151 source3/utils/ntlm_auth.c 	buf = talloc_strdup(state->mem_ctx, "");
state            2198 source3/utils/ntlm_auth.c 	fn(state, buf, length);
state            2205 source3/utils/ntlm_auth.c 	struct ntlm_auth_state *state;
state            2218 source3/utils/ntlm_auth.c 	state = talloc_zero(mem_ctx, struct ntlm_auth_state);
state            2219 source3/utils/ntlm_auth.c 	if (!state) {
state            2225 source3/utils/ntlm_auth.c 	state->mem_ctx = mem_ctx;
state            2226 source3/utils/ntlm_auth.c 	state->helper_mode = stdio_mode;
state            2229 source3/utils/ntlm_auth.c 		manage_squid_request(state, fn);
state              50 source3/utils/smbtree.c         struct smb_name_list **name_list = (struct smb_name_list **)state;
state             198 source3/utils/smbtree.c 		fn(info.name, info.type, info.comment, state);
state             753 source3/winbindd/idmap_ad.c 	if (e->state != NULL) {
state             754 source3/winbindd/idmap_ad.c 		dom = talloc_get_type(e->state, struct idmap_domain);
state             761 source3/winbindd/idmap_ad.c 		e->state = dom;
state             851 source3/winbindd/idmap_ad.c 	dom = talloc_get_type(e->state, struct idmap_domain);
state             962 source3/winbindd/idmap_ad.c 	dom = talloc_get_type(e->state, struct idmap_domain);
state            1042 source3/winbindd/idmap_ad.c 	dom = talloc_get_type(e->state, struct idmap_domain);
state             442 source3/winbindd/winbindd.c 	void (*fn)(struct winbindd_cli_state *state);
state             541 source3/winbindd/winbindd.c 	SAFE_FREE(state->response.extra_data.data);  
state             543 source3/winbindd/winbindd.c 	ZERO_STRUCT(state->response);
state             545 source3/winbindd/winbindd.c 	state->response.result = WINBINDD_PENDING;
state             546 source3/winbindd/winbindd.c 	state->response.length = sizeof(struct winbindd_response);
state             548 source3/winbindd/winbindd.c 	state->mem_ctx = talloc_init("winbind request");
state             549 source3/winbindd/winbindd.c 	if (state->mem_ctx == NULL)
state             553 source3/winbindd/winbindd.c 	state->pid = state->request.pid;
state             558 source3/winbindd/winbindd.c 		if (state->request.cmd == table->cmd) {
state             561 source3/winbindd/winbindd.c 			table->fn(state);
state             568 source3/winbindd/winbindd.c 			  (int)state->request.cmd ));
state             569 source3/winbindd/winbindd.c 		request_error(state);
state             700 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state =
state             703 source3/winbindd/winbindd.c 	TALLOC_FREE(state->mem_ctx);
state             706 source3/winbindd/winbindd.c 		state->finished = True;
state             710 source3/winbindd/winbindd.c 	SAFE_FREE(state->response.extra_data.data);
state             712 source3/winbindd/winbindd.c 	setup_async_read(&state->fd_event, &state->request, sizeof(uint32),
state             713 source3/winbindd/winbindd.c 			 request_len_recv, state);
state             718 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state =
state             722 source3/winbindd/winbindd.c 		state->finished = True;
state             726 source3/winbindd/winbindd.c 	if (state->response.length == sizeof(state->response)) {
state             727 source3/winbindd/winbindd.c 		TALLOC_FREE(state->mem_ctx);
state             729 source3/winbindd/winbindd.c 		setup_async_read(&state->fd_event, &state->request,
state             730 source3/winbindd/winbindd.c 				 sizeof(uint32), request_len_recv, state);
state             734 source3/winbindd/winbindd.c 	setup_async_write(&state->fd_event, state->response.extra_data.data,
state             735 source3/winbindd/winbindd.c 			  state->response.length - sizeof(state->response),
state             736 source3/winbindd/winbindd.c 			  response_extra_sent, state);
state             742 source3/winbindd/winbindd.c 	SAFE_FREE(state->request.extra_data.data);
state             743 source3/winbindd/winbindd.c 	setup_async_write(&state->fd_event, &state->response,
state             744 source3/winbindd/winbindd.c 			  sizeof(state->response), response_main_sent, state);
state             749 source3/winbindd/winbindd.c 	SMB_ASSERT(state->response.result == WINBINDD_PENDING);
state             750 source3/winbindd/winbindd.c 	state->response.result = WINBINDD_ERROR;
state             751 source3/winbindd/winbindd.c 	request_finished(state);
state             756 source3/winbindd/winbindd.c 	SMB_ASSERT(state->response.result == WINBINDD_PENDING);
state             757 source3/winbindd/winbindd.c 	state->response.result = WINBINDD_OK;
state             758 source3/winbindd/winbindd.c 	request_finished(state);
state             763 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state =
state             767 source3/winbindd/winbindd.c 		state->finished = True;
state             771 source3/winbindd/winbindd.c 	if (*(uint32 *)(&state->request) != sizeof(state->request)) {
state             773 source3/winbindd/winbindd.c 			 *(uint32_t *)(&state->request), (uint32_t)sizeof(state->request)));
state             774 source3/winbindd/winbindd.c 		state->finished = True;
state             778 source3/winbindd/winbindd.c 	setup_async_read(&state->fd_event, (uint32 *)(&state->request)+1,
state             779 source3/winbindd/winbindd.c 			 sizeof(state->request) - sizeof(uint32),
state             780 source3/winbindd/winbindd.c 			 request_main_recv, state);
state             785 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state =
state             789 source3/winbindd/winbindd.c 		state->finished = True;
state             793 source3/winbindd/winbindd.c 	if (state->request.extra_len == 0) {
state             794 source3/winbindd/winbindd.c 		state->request.extra_data.data = NULL;
state             795 source3/winbindd/winbindd.c 		request_recv(state, True);
state             799 source3/winbindd/winbindd.c 	if ((!state->privileged) &&
state             800 source3/winbindd/winbindd.c 	    (state->request.extra_len > WINBINDD_MAX_EXTRA_DATA)) {
state             802 source3/winbindd/winbindd.c 			  "unprivileged socket\n", (int)state->request.extra_len));
state             803 source3/winbindd/winbindd.c 		state->request.extra_data.data = NULL;
state             804 source3/winbindd/winbindd.c 		state->finished = True;
state             808 source3/winbindd/winbindd.c 	state->request.extra_data.data =
state             809 source3/winbindd/winbindd.c 		SMB_MALLOC_ARRAY(char, state->request.extra_len + 1);
state             811 source3/winbindd/winbindd.c 	if (state->request.extra_data.data == NULL) {
state             813 source3/winbindd/winbindd.c 		state->finished = True;
state             818 source3/winbindd/winbindd.c 	state->request.extra_data.data[state->request.extra_len] = '\0';
state             820 source3/winbindd/winbindd.c 	setup_async_read(&state->fd_event, state->request.extra_data.data,
state             821 source3/winbindd/winbindd.c 			 state->request.extra_len, request_recv, state);
state             826 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state =
state             830 source3/winbindd/winbindd.c 		state->finished = True;
state             834 source3/winbindd/winbindd.c 	process_request(state);
state             842 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state;
state             861 source3/winbindd/winbindd.c 	if ((state = TALLOC_ZERO_P(NULL, struct winbindd_cli_state)) == NULL) {
state             866 source3/winbindd/winbindd.c 	state->sock = sock;
state             868 source3/winbindd/winbindd.c 	state->last_access = time(NULL);	
state             870 source3/winbindd/winbindd.c 	state->privileged = privileged;
state             872 source3/winbindd/winbindd.c 	state->fd_event.fd = state->sock;
state             873 source3/winbindd/winbindd.c 	state->fd_event.flags = 0;
state             874 source3/winbindd/winbindd.c 	add_fd_event(&state->fd_event);
state             876 source3/winbindd/winbindd.c 	setup_async_read(&state->fd_event, &state->request, sizeof(uint32),
state             877 source3/winbindd/winbindd.c 			 request_len_recv, state);
state             881 source3/winbindd/winbindd.c 	winbindd_add_client(state);
state             893 source3/winbindd/winbindd.c 	if (state == NULL) {
state             897 source3/winbindd/winbindd.c 	if (!state->finished) {
state             899 source3/winbindd/winbindd.c 		nwritten = write(state->sock, &c, sizeof(c));
state             908 source3/winbindd/winbindd.c 	close(state->sock);
state             912 source3/winbindd/winbindd.c 	free_getent_state(state->getpwent_state);
state             913 source3/winbindd/winbindd.c 	free_getent_state(state->getgrent_state);
state             918 source3/winbindd/winbindd.c 	SAFE_FREE(state->response.extra_data.data);
state             920 source3/winbindd/winbindd.c 	TALLOC_FREE(state->mem_ctx);
state             922 source3/winbindd/winbindd.c 	remove_fd_event(&state->fd_event);
state             926 source3/winbindd/winbindd.c 	winbindd_remove_client(state);
state             927 source3/winbindd/winbindd.c 	TALLOC_FREE(state);
state             934 source3/winbindd/winbindd.c 	struct winbindd_cli_state *state, *remove_state = NULL;
state             938 source3/winbindd/winbindd.c 	for (state = winbindd_client_list(); state; state = state->next) {
state             939 source3/winbindd/winbindd.c 		if (state->response.result != WINBINDD_PENDING &&
state             940 source3/winbindd/winbindd.c 		    state->fd_event.flags == EVENT_FD_READ &&
state             941 source3/winbindd/winbindd.c 		    !state->getpwent_state && !state->getgrent_state) {
state             943 source3/winbindd/winbindd.c 			if (!last_access || state->last_access < last_access) {
state             944 source3/winbindd/winbindd.c 				last_access = state->last_access;
state             945 source3/winbindd/winbindd.c 				remove_state = state;
state            1436 source3/winbindd/winbindd.c 		struct winbindd_cli_state *state;
state            1446 source3/winbindd/winbindd.c 		state = winbindd_client_list();
state            1447 source3/winbindd/winbindd.c 		while (state) {
state            1448 source3/winbindd/winbindd.c 			struct winbindd_cli_state *next = state->next;
state            1450 source3/winbindd/winbindd.c 			if (state->finished) {
state            1451 source3/winbindd/winbindd.c 				remove_client(state);
state            1454 source3/winbindd/winbindd.c 			state = next;
state             141 source3/winbindd/winbindd.h 					  struct winbindd_cli_state *state);
state              53 source3/winbindd/winbindd_async.c 	struct do_async_state *state =
state              56 source3/winbindd/winbindd_async.c 	state->cont(state->mem_ctx, success, &state->response,
state              57 source3/winbindd/winbindd_async.c 		    state->c, state->private_data);
state              67 source3/winbindd/winbindd_async.c 	struct do_async_state *state;
state              69 source3/winbindd/winbindd_async.c 	state = TALLOC_ZERO_P(mem_ctx, struct do_async_state);
state              70 source3/winbindd/winbindd_async.c 	if (state == NULL) {
state              76 source3/winbindd/winbindd_async.c 	state->mem_ctx = mem_ctx;
state              77 source3/winbindd/winbindd_async.c 	state->request = *request;
state              78 source3/winbindd/winbindd_async.c 	state->request.length = sizeof(state->request);
state              79 source3/winbindd/winbindd_async.c 	state->cont = cont;
state              80 source3/winbindd/winbindd_async.c 	state->c = c;
state              81 source3/winbindd/winbindd_async.c 	state->private_data = private_data;
state              83 source3/winbindd/winbindd_async.c 	async_request(mem_ctx, child, &state->request,
state              84 source3/winbindd/winbindd_async.c 		      &state->response, do_async_recv, state);
state              94 source3/winbindd/winbindd_async.c 	struct do_async_state *state;
state              96 source3/winbindd/winbindd_async.c 	state = TALLOC_ZERO_P(mem_ctx, struct do_async_state);
state              97 source3/winbindd/winbindd_async.c 	if (state == NULL) {
state             103 source3/winbindd/winbindd_async.c 	state->mem_ctx = mem_ctx;
state             104 source3/winbindd/winbindd_async.c 	state->request = *request;
state             105 source3/winbindd/winbindd_async.c 	state->request.length = sizeof(state->request);
state             106 source3/winbindd/winbindd_async.c 	state->cont = cont;
state             107 source3/winbindd/winbindd_async.c 	state->c = c;
state             108 source3/winbindd/winbindd_async.c 	state->private_data = private_data;
state             110 source3/winbindd/winbindd_async.c 	async_domain_request(mem_ctx, domain, &state->request,
state             111 source3/winbindd/winbindd_async.c 			     &state->response, do_async_recv, state);
state             236 source3/winbindd/winbindd_async.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             238 source3/winbindd/winbindd_async.c 	DEBUG(3, ("[%5lu]: lookupsid %s\n", (unsigned long)state->pid, 
state             239 source3/winbindd/winbindd_async.c 		  state->request.data.sid));
state             243 source3/winbindd/winbindd_async.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             244 source3/winbindd/winbindd_async.c 		DEBUG(5, ("%s not a SID\n", state->request.data.sid));
state             250 source3/winbindd/winbindd_async.c 	if (!winbindd_lookup_name_by_sid(state->mem_ctx, domain, &sid, 
state             258 source3/winbindd/winbindd_async.c 	fstrcpy(state->response.data.name.dom_name, dom_name);
state             259 source3/winbindd/winbindd_async.c 	fstrcpy(state->response.data.name.name, name);
state             260 source3/winbindd/winbindd_async.c 	state->response.data.name.type = type;
state             425 source3/winbindd/winbindd_async.c 	state->request.data.name.dom_name[sizeof(state->request.data.name.dom_name)-1]='\0';
state             428 source3/winbindd/winbindd_async.c 	state->request.data.name.name[sizeof(state->request.data.name.name)-1]='\0';
state             431 source3/winbindd/winbindd_async.c 	p = strstr(state->request.data.name.name, lp_winbind_separator());
state             434 source3/winbindd/winbindd_async.c 		name_domain = state->request.data.name.name;
state             437 source3/winbindd/winbindd_async.c 		name_domain = state->request.data.name.dom_name;
state             438 source3/winbindd/winbindd_async.c 		name_user = state->request.data.name.name;
state             441 source3/winbindd/winbindd_async.c 	DEBUG(3, ("[%5lu]: lookupname %s%s%s\n", (unsigned long)state->pid,
state             445 source3/winbindd/winbindd_async.c 	if (!winbindd_lookup_sid_by_name(state->mem_ctx, state->request.original_cmd, domain, name_domain,
state             450 source3/winbindd/winbindd_async.c 	sid_to_fstring(state->response.data.sid.sid, &sid);
state             451 source3/winbindd/winbindd_async.c 	state->response.data.sid.type = type;
state             506 source3/winbindd/winbindd_async.c 	fstrcpy(state->response.data.name.dom_name, domain->name);
state             510 source3/winbindd/winbindd_async.c 	status = methods->query_user_list(domain, state->mem_ctx, 
state             550 source3/winbindd/winbindd_async.c 		state->response.extra_data.data = extra_data;
state             551 source3/winbindd/winbindd_async.c 		state->response.length += extra_data_len;
state             567 source3/winbindd/winbindd_async.c 	fstrcpy(state->response.data.name.dom_name, domain->name);
state             607 source3/winbindd/winbindd_async.c 		state->response.extra_data.data = extra_data;
state             608 source3/winbindd/winbindd_async.c 		state->response.length += extra_data_len;
state             704 source3/winbindd/winbindd_async.c 		   state->request.domain_name,
state             705 source3/winbindd/winbindd_async.c 		   state->request.data.sid));
state             707 source3/winbindd/winbindd_async.c 	if (!parse_ridlist(state->mem_ctx, state->request.extra_data.data,
state             713 source3/winbindd/winbindd_async.c 	if (!string_to_sid(&domain_sid, state->request.data.sid)) {
state             715 source3/winbindd/winbindd_async.c 			  state->request.data.sid));
state             719 source3/winbindd/winbindd_async.c 	status = domain->methods->rids_to_names(domain, state->mem_ctx,
state             734 source3/winbindd/winbindd_async.c 		sprintf_append(state->mem_ctx, &result, &len, &buflen,
state             738 source3/winbindd/winbindd_async.c 	fstrcpy(state->response.data.domain_name, domain_name);
state             741 source3/winbindd/winbindd_async.c 		state->response.extra_data.data = SMB_STRDUP(result);
state             742 source3/winbindd/winbindd_async.c 		if (!state->response.extra_data.data) {
state             745 source3/winbindd/winbindd_async.c 		state->response.length += len+1;
state             852 source3/winbindd/winbindd_async.c 	struct gettoken_state *state;
state             854 source3/winbindd/winbindd_async.c 	state = TALLOC_ZERO_P(mem_ctx, struct gettoken_state);
state             855 source3/winbindd/winbindd_async.c 	if (state == NULL) {
state             861 source3/winbindd/winbindd_async.c 	state->mem_ctx = mem_ctx;
state             862 source3/winbindd/winbindd_async.c 	sid_copy(&state->user_sid, user_sid);
state             863 source3/winbindd/winbindd_async.c 	state->alias_domain = find_our_domain();
state             864 source3/winbindd/winbindd_async.c 	state->local_alias_domain = find_domain_from_name( get_global_sam_name() );
state             865 source3/winbindd/winbindd_async.c 	state->builtin_domain = find_builtin_domain();
state             866 source3/winbindd/winbindd_async.c 	state->cont = cont;
state             867 source3/winbindd/winbindd_async.c 	state->private_data = private_data;
state             882 source3/winbindd/winbindd_async.c 			NULL, state);
state             889 source3/winbindd/winbindd_async.c 	struct gettoken_state *state =
state             895 source3/winbindd/winbindd_async.c 		state->cont(state->private_data, False, NULL, 0);
state             905 source3/winbindd/winbindd_async.c 		if ( !sid_check_is_in_our_domain( &state->user_sid ) ) {
state             907 source3/winbindd/winbindd_async.c 			state->cont(state->private_data, True, NULL, 0);
state             912 source3/winbindd/winbindd_async.c 	state->sids = NULL;
state             913 source3/winbindd/winbindd_async.c 	state->num_sids = 0;
state             915 source3/winbindd/winbindd_async.c 	if (!NT_STATUS_IS_OK(add_sid_to_array(mem_ctx, &state->user_sid,
state             916 source3/winbindd/winbindd_async.c 					      &state->sids, &state->num_sids)))
state             919 source3/winbindd/winbindd_async.c 		state->cont(state->private_data, False, NULL, 0);
state             923 source3/winbindd/winbindd_async.c 	if (sids_str && !parse_sidlist(mem_ctx, sids_str, &state->sids,
state             924 source3/winbindd/winbindd_async.c 			   &state->num_sids)) {
state             926 source3/winbindd/winbindd_async.c 		state->cont(state->private_data, False, NULL, 0);
state             932 source3/winbindd/winbindd_async.c 	if (state->alias_domain == NULL) {
state             934 source3/winbindd/winbindd_async.c 		state->cont(state->private_data, True, state->sids,
state             935 source3/winbindd/winbindd_async.c 			    state->num_sids);
state             939 source3/winbindd/winbindd_async.c 	winbindd_getsidaliases_async(state->alias_domain, mem_ctx,
state             940 source3/winbindd/winbindd_async.c 				     state->sids, state->num_sids,
state             941 source3/winbindd/winbindd_async.c 				     gettoken_recvaliases, state);
state             948 source3/winbindd/winbindd_async.c 	struct gettoken_state *state = (struct gettoken_state *)private_data;
state             953 source3/winbindd/winbindd_async.c 		state->cont(state->private_data, False, NULL, 0);
state             958 source3/winbindd/winbindd_async.c 		if (!NT_STATUS_IS_OK(add_sid_to_array(state->mem_ctx,
state             960 source3/winbindd/winbindd_async.c 						      &state->sids,
state             961 source3/winbindd/winbindd_async.c 						      &state->num_sids)))
state             964 source3/winbindd/winbindd_async.c 			state->cont(state->private_data, False, NULL, 0);
state             969 source3/winbindd/winbindd_async.c 	if (state->local_alias_domain != NULL) {
state             970 source3/winbindd/winbindd_async.c 		struct winbindd_domain *local_domain = state->local_alias_domain;
state             972 source3/winbindd/winbindd_async.c 		state->local_alias_domain = NULL;
state             973 source3/winbindd/winbindd_async.c 		winbindd_getsidaliases_async(local_domain, state->mem_ctx,
state             974 source3/winbindd/winbindd_async.c 					     state->sids, state->num_sids,
state             975 source3/winbindd/winbindd_async.c 					     gettoken_recvaliases, state);
state             979 source3/winbindd/winbindd_async.c 	if (state->builtin_domain != NULL) {
state             980 source3/winbindd/winbindd_async.c 		struct winbindd_domain *builtin_domain = state->builtin_domain;
state             982 source3/winbindd/winbindd_async.c 		state->builtin_domain = NULL;
state             983 source3/winbindd/winbindd_async.c 		winbindd_getsidaliases_async(builtin_domain, state->mem_ctx,
state             984 source3/winbindd/winbindd_async.c 					     state->sids, state->num_sids,
state             985 source3/winbindd/winbindd_async.c 					     gettoken_recvaliases, state);
state             989 source3/winbindd/winbindd_async.c 	state->cont(state->private_data, True, state->sids, state->num_sids);
state            2915 source3/winbindd/winbindd_cache.c 	int *cred_count = (int*)state;
state            3139 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3140 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3155 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3164 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3177 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3187 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3200 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3210 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3227 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3237 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3249 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3259 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3273 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3283 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3299 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3309 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3330 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3340 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3357 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3367 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3383 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3393 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3408 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3418 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3436 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3450 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3451 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3466 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3467 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3478 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3491 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3502 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3512 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3523 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3533 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3543 source3/winbindd/winbindd_cache.c 	struct cache_entry *centry = create_centry_validate(keystr, dbuf, state);
state            3561 source3/winbindd/winbindd_cache.c 	if (!(state->success)) {
state            3575 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3576 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3591 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3592 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3606 source3/winbindd/winbindd_cache.c 		state->bad_entry = true;
state            3607 source3/winbindd/winbindd_cache.c 		state->success = false;
state            3622 source3/winbindd/winbindd_cache.c 	int (*validate_data_fn)(TALLOC_CTX *mem_ctx, const char *keystr, TDB_DATA dbuf, struct tdb_validation_status* state);
state            3657 source3/winbindd/winbindd_cache.c 	struct tdb_validation_status *v_state = (struct tdb_validation_status *)state;
state             133 source3/winbindd/winbindd_ccache_access.c 	ret = sys_getpeereid(state->sock, &ret_uid);
state             156 source3/winbindd/winbindd_ccache_access.c 	state->request.data.ccache_ntlm_auth.user[
state             157 source3/winbindd/winbindd_ccache_access.c 			sizeof(state->request.data.ccache_ntlm_auth.user)-1]='\0';
state             159 source3/winbindd/winbindd_ccache_access.c 	DEBUG(3, ("[%5lu]: perform NTLM auth on behalf of user %s\n", (unsigned long)state->pid,
state             160 source3/winbindd/winbindd_ccache_access.c 		state->request.data.ccache_ntlm_auth.user));
state             164 source3/winbindd/winbindd_ccache_access.c 	if (!canonicalize_username(state->request.data.ccache_ntlm_auth.user,
state             167 source3/winbindd/winbindd_ccache_access.c 			state->request.data.ccache_ntlm_auth.user));
state             168 source3/winbindd/winbindd_ccache_access.c 		request_error(state);
state             172 source3/winbindd/winbindd_ccache_access.c 	domain = find_auth_domain(state, name_domain);
state             177 source3/winbindd/winbindd_ccache_access.c 		request_error(state);
state             181 source3/winbindd/winbindd_ccache_access.c 	if (!check_client_uid(state, state->request.data.ccache_ntlm_auth.uid)) {
state             182 source3/winbindd/winbindd_ccache_access.c 		request_error(state);
state             186 source3/winbindd/winbindd_ccache_access.c 	sendto_domain(state, domain);
state             199 source3/winbindd/winbindd_ccache_access.c 	state->request.data.ccache_ntlm_auth.user[
state             200 source3/winbindd/winbindd_ccache_access.c 		sizeof(state->request.data.ccache_ntlm_auth.user)-1]='\0';
state             203 source3/winbindd/winbindd_ccache_access.c 		"behalf of user %s (dual)\n", (unsigned long)state->pid,
state             204 source3/winbindd/winbindd_ccache_access.c 		state->request.data.ccache_ntlm_auth.user));
state             207 source3/winbindd/winbindd_ccache_access.c 	initial_blob_len = state->request.data.ccache_ntlm_auth.initial_blob_len;
state             208 source3/winbindd/winbindd_ccache_access.c 	challenge_blob_len = state->request.data.ccache_ntlm_auth.challenge_blob_len;
state             209 source3/winbindd/winbindd_ccache_access.c 	extra_len = state->request.extra_len;
state             225 source3/winbindd/winbindd_ccache_access.c 	if (!parse_domain_user(state->request.data.ccache_ntlm_auth.user, name_domain, name_user)) {
state             228 source3/winbindd/winbindd_ccache_access.c 			state->request.data.ccache_ntlm_auth.user));
state             232 source3/winbindd/winbindd_ccache_access.c 	entry = find_memory_creds_by_name(state->request.data.ccache_ntlm_auth.user);
state             236 source3/winbindd/winbindd_ccache_access.c 			state->request.data.ccache_ntlm_auth.user));
state             242 source3/winbindd/winbindd_ccache_access.c 	if (!client_can_access_ccache_entry(state->request.data.ccache_ntlm_auth.uid, entry)) {
state             249 source3/winbindd/winbindd_ccache_access.c 		state->response.data.ccache_ntlm_auth.auth_blob_len = 0;
state             253 source3/winbindd/winbindd_ccache_access.c 	initial = data_blob(state->request.extra_data.data, initial_blob_len);
state             254 source3/winbindd/winbindd_ccache_access.c 	challenge = data_blob(state->request.extra_data.data + initial_blob_len, 
state             255 source3/winbindd/winbindd_ccache_access.c 				state->request.data.ccache_ntlm_auth.challenge_blob_len);
state             272 source3/winbindd/winbindd_ccache_access.c 	state->response.extra_data.data = smb_xmemdup(auth.data, auth.length);
state             273 source3/winbindd/winbindd_ccache_access.c 	if (!state->response.extra_data.data) {
state             277 source3/winbindd/winbindd_ccache_access.c 	state->response.length += auth.length;
state             278 source3/winbindd/winbindd_ccache_access.c 	state->response.data.ccache_ntlm_auth.auth_blob_len = auth.length;
state              47 source3/winbindd/winbindd_dual.c 	status = read_data(state->sock, (char *)&state->request,
state              48 source3/winbindd/winbindd_dual.c 			   sizeof(state->request));
state              53 source3/winbindd/winbindd_dual.c 		state->finished = True;
state              57 source3/winbindd/winbindd_dual.c 	if (state->request.extra_len == 0) {
state              58 source3/winbindd/winbindd_dual.c 		state->request.extra_data.data = NULL;
state              62 source3/winbindd/winbindd_dual.c 	DEBUG(10, ("Need to read %d extra bytes\n", (int)state->request.extra_len));
state              64 source3/winbindd/winbindd_dual.c 	state->request.extra_data.data =
state              65 source3/winbindd/winbindd_dual.c 		SMB_MALLOC_ARRAY(char, state->request.extra_len + 1);
state              67 source3/winbindd/winbindd_dual.c 	if (state->request.extra_data.data == NULL) {
state              69 source3/winbindd/winbindd_dual.c 		state->finished = True;
state              74 source3/winbindd/winbindd_dual.c 	state->request.extra_data.data[state->request.extra_len] = '\0';
state              76 source3/winbindd/winbindd_dual.c 	status= read_data(state->sock, state->request.extra_data.data,
state              77 source3/winbindd/winbindd_dual.c 			  state->request.extra_len);
state              82 source3/winbindd/winbindd_dual.c 		state->finished = True;
state             119 source3/winbindd/winbindd_dual.c 	struct winbindd_async_request *state;
state             127 source3/winbindd/winbindd_dual.c 	state = TALLOC_P(mem_ctx, struct winbindd_async_request);
state             129 source3/winbindd/winbindd_dual.c 	if (state == NULL) {
state             135 source3/winbindd/winbindd_dual.c 	state->mem_ctx = mem_ctx;
state             136 source3/winbindd/winbindd_dual.c 	state->child = child;
state             137 source3/winbindd/winbindd_dual.c 	state->reply_timeout_event = NULL;
state             138 source3/winbindd/winbindd_dual.c 	state->request = request;
state             139 source3/winbindd/winbindd_dual.c 	state->response = response;
state             140 source3/winbindd/winbindd_dual.c 	state->continuation = continuation;
state             141 source3/winbindd/winbindd_dual.c 	state->private_data = private_data;
state             143 source3/winbindd/winbindd_dual.c 	DLIST_ADD_END(child->requests, state, struct winbindd_async_request *);
state             152 source3/winbindd/winbindd_dual.c 	struct winbindd_async_request *state =
state             157 source3/winbindd/winbindd_dual.c 		async_request_fail(state);
state             161 source3/winbindd/winbindd_dual.c 	if (state->request->extra_len == 0) {
state             166 source3/winbindd/winbindd_dual.c 	setup_async_write(&state->child->event, state->request->extra_data.data,
state             167 source3/winbindd/winbindd_dual.c 			  state->request->extra_len,
state             168 source3/winbindd/winbindd_dual.c 			  async_request_sent, state);
state             181 source3/winbindd/winbindd_dual.c 	struct winbindd_async_request *state =
state             186 source3/winbindd/winbindd_dual.c 		(unsigned int)state->child_pid ));
state             199 source3/winbindd/winbindd_dual.c 	DLIST_REMOVE(state->child->requests, state);
state             201 source3/winbindd/winbindd_dual.c 	TALLOC_FREE(state->reply_timeout_event);
state             206 source3/winbindd/winbindd_dual.c 	if ((state->child->pid != (pid_t)0) &&
state             207 source3/winbindd/winbindd_dual.c 			(state->child->pid != (pid_t)-1) &&
state             208 source3/winbindd/winbindd_dual.c 			(state->child->pid == state->child_pid)) {
state             209 source3/winbindd/winbindd_dual.c 		kill(state->child_pid, SIGTERM);
state             214 source3/winbindd/winbindd_dual.c 		winbind_child_died(state->child_pid);
state             217 source3/winbindd/winbindd_dual.c 	state->response->length = sizeof(struct winbindd_response);
state             218 source3/winbindd/winbindd_dual.c 	state->response->result = WINBINDD_ERROR;
state             219 source3/winbindd/winbindd_dual.c 	state->continuation(state->private_data, False);
state             224 source3/winbindd/winbindd_dual.c 	struct winbindd_async_request *state =
state             229 source3/winbindd/winbindd_dual.c 			(unsigned int)state->child_pid ));
state             230 source3/winbindd/winbindd_dual.c 		async_request_fail(state);
state             236 source3/winbindd/winbindd_dual.c 	setup_async_read(&state->child->event,
state             237 source3/winbindd/winbindd_dual.c 			 &state->response->result,
state             238 source3/winbindd/winbindd_dual.c 			 sizeof(state->response->result),
state             239 source3/winbindd/winbindd_dual.c 			 async_reply_recv, state);
state             247 source3/winbindd/winbindd_dual.c 	state->reply_timeout_event = event_add_timed(winbind_event_context(),
state             251 source3/winbindd/winbindd_dual.c 							state);
state             252 source3/winbindd/winbindd_dual.c 	if (!state->reply_timeout_event) {
state             259 source3/winbindd/winbindd_dual.c 	struct winbindd_async_request *state =
state             261 source3/winbindd/winbindd_dual.c 	struct winbindd_child *child = state->child;
state             263 source3/winbindd/winbindd_dual.c 	TALLOC_FREE(state->reply_timeout_event);
state             265 source3/winbindd/winbindd_dual.c 	state->response->length = sizeof(struct winbindd_response);
state             269 source3/winbindd/winbindd_dual.c 			(unsigned int)state->child_pid ));
state             271 source3/winbindd/winbindd_dual.c 		cache_cleanup_response(state->child_pid);
state             272 source3/winbindd/winbindd_dual.c 		async_request_fail(state);
state             276 source3/winbindd/winbindd_dual.c 	SMB_ASSERT(cache_retrieve_response(state->child_pid,
state             277 source3/winbindd/winbindd_dual.c 					   state->response));
state             279 source3/winbindd/winbindd_dual.c 	cache_cleanup_response(state->child_pid);
state             281 source3/winbindd/winbindd_dual.c 	DLIST_REMOVE(child->requests, state);
state             285 source3/winbindd/winbindd_dual.c 	state->continuation(state->private_data, True);
state             356 source3/winbindd/winbindd_dual.c 	struct domain_request_state *state;
state             364 source3/winbindd/winbindd_dual.c 	state = TALLOC_P(mem_ctx, struct domain_request_state);
state             365 source3/winbindd/winbindd_dual.c 	if (state == NULL) {
state             371 source3/winbindd/winbindd_dual.c 	state->mem_ctx = mem_ctx;
state             372 source3/winbindd/winbindd_dual.c 	state->domain = domain;
state             373 source3/winbindd/winbindd_dual.c 	state->request = request;
state             374 source3/winbindd/winbindd_dual.c 	state->response = response;
state             375 source3/winbindd/winbindd_dual.c 	state->continuation = continuation;
state             376 source3/winbindd/winbindd_dual.c 	state->private_data_data = private_data_data;
state             378 source3/winbindd/winbindd_dual.c 	init_child_connection(domain, domain_init_recv, state);
state             383 source3/winbindd/winbindd_dual.c 	struct domain_request_state *state =
state             388 source3/winbindd/winbindd_dual.c 		state->continuation(state->private_data_data, False);
state             392 source3/winbindd/winbindd_dual.c 	async_request(state->mem_ctx, &state->domain->child,
state             393 source3/winbindd/winbindd_dual.c 		      state->request, state->response,
state             394 source3/winbindd/winbindd_dual.c 		      state->continuation, state->private_data_data);
state             399 source3/winbindd/winbindd_dual.c 	struct winbindd_cli_state *state =
state             401 source3/winbindd/winbindd_dual.c 	enum winbindd_result result = state->response.result;
state             407 source3/winbindd/winbindd_dual.c 	state->response.result = WINBINDD_PENDING;
state             410 source3/winbindd/winbindd_dual.c 		request_error(state);
state             414 source3/winbindd/winbindd_dual.c 	request_ok(state);
state             420 source3/winbindd/winbindd_dual.c 	async_request(state->mem_ctx, child, &state->request,
state             421 source3/winbindd/winbindd_dual.c 		      &state->response, recvfrom_child, state);
state             427 source3/winbindd/winbindd_dual.c 	async_domain_request(state->mem_ctx, domain,
state             428 source3/winbindd/winbindd_dual.c 			     &state->request, &state->response,
state             429 source3/winbindd/winbindd_dual.c 			     recvfrom_child, state);
state             441 source3/winbindd/winbindd_dual.c 	state->response.result = WINBINDD_ERROR;
state             442 source3/winbindd/winbindd_dual.c 	state->response.length = sizeof(struct winbindd_response);
state             445 source3/winbindd/winbindd_dual.c 	state->mem_ctx = talloc_tos();
state             450 source3/winbindd/winbindd_dual.c 		if (state->request.cmd == table->struct_cmd) {
state             453 source3/winbindd/winbindd_dual.c 			state->response.result = table->struct_fn(domain, state);
state             459 source3/winbindd/winbindd_dual.c 		  (int)state->request.cmd));
state             460 source3/winbindd/winbindd_dual.c 	state->response.result = WINBINDD_ERROR;
state            1244 source3/winbindd/winbindd_dual.c 	struct winbindd_cli_state state;
state            1260 source3/winbindd/winbindd_dual.c 	ZERO_STRUCT(state);
state            1261 source3/winbindd/winbindd_dual.c 	state.pid = sys_getpid();
state            1288 source3/winbindd/winbindd_dual.c 	state.sock = fdpair[0];
state            1406 source3/winbindd/winbindd_dual.c 		FD_SET(state.sock, &r_fds);
state            1407 source3/winbindd/winbindd_dual.c 		maxfd = state.sock;
state            1445 source3/winbindd/winbindd_dual.c 		child_read_request(&state);
state            1447 source3/winbindd/winbindd_dual.c 		if (state.finished) {
state            1452 source3/winbindd/winbindd_dual.c 		DEBUG(4,("child daemon request %d\n", (int)state.request.cmd));
state            1454 source3/winbindd/winbindd_dual.c 		ZERO_STRUCT(state.response);
state            1455 source3/winbindd/winbindd_dual.c 		state.request.null_term = '\0';
state            1456 source3/winbindd/winbindd_dual.c 		child_process_request(child, &state);
state            1458 source3/winbindd/winbindd_dual.c 		SAFE_FREE(state.request.extra_data.data);
state            1460 source3/winbindd/winbindd_dual.c 		cache_store_response(sys_getpid(), &state.response);
state            1462 source3/winbindd/winbindd_dual.c 		SAFE_FREE(state.response.extra_data.data);
state            1468 source3/winbindd/winbindd_dual.c 		if (write_data(state.sock,
state            1469 source3/winbindd/winbindd_dual.c 			       (const char *)&state.response.result,
state            1470 source3/winbindd/winbindd_dual.c 			       sizeof(state.response.result)) !=
state            1471 source3/winbindd/winbindd_dual.c 		    sizeof(state.response.result)) {
state             251 source3/winbindd/winbindd_group.c 	if (state) {
state             253 source3/winbindd/winbindd_group.c 		if (sys_getpeereid(state->sock, &ret_uid)==0) {
state             578 source3/winbindd/winbindd_group.c 		result = fill_grent_mem_domusers( mem_ctx, domain, state,
state             739 source3/winbindd/winbindd_group.c 	struct winbindd_cli_state *state = (struct winbindd_cli_state*)private_data;
state             743 source3/winbindd/winbindd_group.c 		request_error(state);
state             749 source3/winbindd/winbindd_group.c 		request_error(state);
state             753 source3/winbindd/winbindd_group.c 	winbindd_getgrsid( state, *sid );
state             767 source3/winbindd/winbindd_group.c 	state->request.data.groupname[sizeof(state->request.data.groupname)-1]='\0';
state             769 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: getgrnam %s\n", (unsigned long)state->pid,
state             770 source3/winbindd/winbindd_group.c 		  state->request.data.groupname));
state             772 source3/winbindd/winbindd_group.c 	nt_status = normalize_name_unmap(state->mem_ctx,
state             773 source3/winbindd/winbindd_group.c 					 state->request.data.groupname,
state             780 source3/winbindd/winbindd_group.c 		tmp = state->request.data.groupname;
state             804 source3/winbindd/winbindd_group.c 		request_error(state);
state             812 source3/winbindd/winbindd_group.c 		request_error(state);
state             820 source3/winbindd/winbindd_group.c 	winbindd_lookupname_async( state->mem_ctx, domain->name, name_group,
state             821 source3/winbindd/winbindd_group.c 				   getgrnam_recv, WINBINDD_GETGRNAM, state );
state             825 source3/winbindd/winbindd_group.c 	struct winbindd_cli_state *state;
state             845 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             853 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             862 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             866 source3/winbindd/winbindd_group.c 	if (!fill_grent(s->state->mem_ctx, &s->state->response.data.gr,
state             868 source3/winbindd/winbindd_group.c 	    !fill_grent_mem(domain, s->state, &s->group_sid, s->group_type,
state             871 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             875 source3/winbindd/winbindd_group.c 	s->state->response.data.gr.num_gr_mem = (uint32)num_gr_mem;
state             879 source3/winbindd/winbindd_group.c 	s->state->response.data.gr.gr_mem_ofs = 0;
state             881 source3/winbindd/winbindd_group.c 	s->state->response.length += gr_mem_len;
state             882 source3/winbindd/winbindd_group.c 	s->state->response.extra_data.data = gr_mem;
state             884 source3/winbindd/winbindd_group.c 	request_ok(s->state);
state             898 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             911 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             920 source3/winbindd/winbindd_group.c 	nt_status = normalize_name_unmap(s->state->mem_ctx, raw_name,
state             925 source3/winbindd/winbindd_group.c 		s->group_name = talloc_asprintf(s->state->mem_ctx,
state             937 source3/winbindd/winbindd_group.c 		s->group_name = talloc_asprintf(s->state->mem_ctx,
state             946 source3/winbindd/winbindd_group.c 		request_error(s->state);
state             952 source3/winbindd/winbindd_group.c 	winbindd_sid2gid_async(s->state->mem_ctx, &s->group_sid,
state             960 source3/winbindd/winbindd_group.c 	if ( (s = TALLOC_ZERO_P(state->mem_ctx, struct getgrsid_state)) == NULL ) {
state             962 source3/winbindd/winbindd_group.c 		request_error(state);
state             966 source3/winbindd/winbindd_group.c 	s->state = state;
state             971 source3/winbindd/winbindd_group.c 		request_error(state);
state             977 source3/winbindd/winbindd_group.c 	winbindd_lookupsid_async( s->state->mem_ctx,  &group_sid,
state             984 source3/winbindd/winbindd_group.c 	struct winbindd_cli_state *state = talloc_get_type_abort(private_data, struct winbindd_cli_state);
state             990 source3/winbindd/winbindd_group.c 			  (unsigned long)(state->request.data.gid), sid));
state             995 source3/winbindd/winbindd_group.c 			request_error(state);
state             999 source3/winbindd/winbindd_group.c 		winbindd_getgrsid(state, group_sid);
state            1004 source3/winbindd/winbindd_group.c 	if (pdb_gid_to_sid(state->request.data.gid, &group_sid) &&
state            1005 source3/winbindd/winbindd_group.c 	    lookup_sid(state->mem_ctx, &group_sid, NULL, NULL, &name_type) &&
state            1009 source3/winbindd/winbindd_group.c 			  (unsigned long)(state->request.data.gid), sid));
state            1010 source3/winbindd/winbindd_group.c 		winbindd_getgrsid(state, group_sid);
state            1015 source3/winbindd/winbindd_group.c 		  (unsigned long)state->request.data.gid));
state            1016 source3/winbindd/winbindd_group.c 	request_error(state);
state            1022 source3/winbindd/winbindd_group.c 	gid_t gid = state->request.data.gid;
state            1025 source3/winbindd/winbindd_group.c 		  (unsigned long)state->pid,
state            1029 source3/winbindd/winbindd_group.c 	winbindd_gid2sid_async(state->mem_ctx, gid, getgrgid_recv, state);
state            1042 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: setgrent\n", (unsigned long)state->pid));
state            1052 source3/winbindd/winbindd_group.c 	if (state->getgrent_state != NULL) {
state            1053 source3/winbindd/winbindd_group.c 		free_getent_state(state->getgrent_state);
state            1054 source3/winbindd/winbindd_group.c 		state->getgrent_state = NULL;
state            1085 source3/winbindd/winbindd_group.c 		DLIST_ADD(state->getgrent_state, domain_state);
state            1088 source3/winbindd/winbindd_group.c 	state->getgrent_initialized = True;
state            1094 source3/winbindd/winbindd_group.c 	if (winbindd_setgrent_internal(state)) {
state            1095 source3/winbindd/winbindd_group.c 		request_ok(state);
state            1097 source3/winbindd/winbindd_group.c 		request_error(state);
state            1105 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: endgrent\n", (unsigned long)state->pid));
state            1107 source3/winbindd/winbindd_group.c 	free_getent_state(state->getgrent_state);
state            1108 source3/winbindd/winbindd_group.c 	state->getgrent_initialized = False;
state            1109 source3/winbindd/winbindd_group.c 	state->getgrent_state = NULL;
state            1110 source3/winbindd/winbindd_group.c 	request_ok(state);
state            1259 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: getgrent\n", (unsigned long)state->pid));
state            1264 source3/winbindd/winbindd_group.c 		request_error(state);
state            1268 source3/winbindd/winbindd_group.c 	num_groups = MIN(MAX_GETGRENT_GROUPS, state->request.data.num_entries);
state            1271 source3/winbindd/winbindd_group.c 		request_error(state);
state            1277 source3/winbindd/winbindd_group.c 		request_error(state);
state            1281 source3/winbindd/winbindd_group.c 	state->response.extra_data.data = group_list;
state            1283 source3/winbindd/winbindd_group.c 	memset(state->response.extra_data.data, '\0',
state            1286 source3/winbindd/winbindd_group.c 	state->response.data.num_entries = 0;
state            1288 source3/winbindd/winbindd_group.c 	if (!state->getgrent_initialized)
state            1289 source3/winbindd/winbindd_group.c 		winbindd_setgrent_internal(state);
state            1291 source3/winbindd/winbindd_group.c 	if (!(ent = state->getgrent_state)) {
state            1292 source3/winbindd/winbindd_group.c 		request_error(state);
state            1328 source3/winbindd/winbindd_group.c 				DLIST_REMOVE(state->getgrent_state, ent);
state            1392 source3/winbindd/winbindd_group.c 		result = fill_grent(state->mem_ctx, &group_list[group_list_ndx],
state            1407 source3/winbindd/winbindd_group.c 			if (state->request.cmd == WINBINDD_GETGRLST) {
state            1457 source3/winbindd/winbindd_group.c 				   state->response.data.num_entries));
state            1460 source3/winbindd/winbindd_group.c 			state->response.data.num_entries++;
state            1462 source3/winbindd/winbindd_group.c 			state->response.length +=
state            1476 source3/winbindd/winbindd_group.c 	state->response.extra_data.data = SMB_REALLOC(
state            1477 source3/winbindd/winbindd_group.c 		state->response.extra_data.data,
state            1480 source3/winbindd/winbindd_group.c 	if (!state->response.extra_data.data) {
state            1484 source3/winbindd/winbindd_group.c 		request_error(state);
state            1488 source3/winbindd/winbindd_group.c 	memcpy(&((char *)state->response.extra_data.data)
state            1492 source3/winbindd/winbindd_group.c 	state->response.length += gr_mem_list_len;
state            1504 source3/winbindd/winbindd_group.c 		request_ok(state);
state            1506 source3/winbindd/winbindd_group.c 		request_error(state);
state            1512 source3/winbindd/winbindd_group.c 	winbindd_list_ent(state, LIST_GROUPS);
state            1522 source3/winbindd/winbindd_group.c 	struct winbindd_cli_state *state;
state            1548 source3/winbindd/winbindd_group.c 	state->request.data.username
state            1549 source3/winbindd/winbindd_group.c 		[sizeof(state->request.data.username)-1]='\0';
state            1551 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: getgroups %s\n", (unsigned long)state->pid,
state            1552 source3/winbindd/winbindd_group.c 		  state->request.data.username));
state            1556 source3/winbindd/winbindd_group.c 	s = TALLOC_P(state->mem_ctx, struct getgroups_state);
state            1559 source3/winbindd/winbindd_group.c 		request_error(state);
state            1563 source3/winbindd/winbindd_group.c 	s->state = state;
state            1565 source3/winbindd/winbindd_group.c 	nt_status = normalize_name_unmap(state->mem_ctx,
state            1566 source3/winbindd/winbindd_group.c 					 state->request.data.username,
state            1574 source3/winbindd/winbindd_group.c 		real_name = state->request.data.username;
state            1577 source3/winbindd/winbindd_group.c 	if (!parse_domain_user_talloc(state->mem_ctx, real_name,
state            1585 source3/winbindd/winbindd_group.c 			request_error(state);
state            1589 source3/winbindd/winbindd_group.c 		s->domname = talloc_strdup(state->mem_ctx,
state            1591 source3/winbindd/winbindd_group.c 		s->username = talloc_strdup(state->mem_ctx,
state            1592 source3/winbindd/winbindd_group.c 					    state->request.data.username);
state            1611 source3/winbindd/winbindd_group.c 		request_error(state);
state            1619 source3/winbindd/winbindd_group.c 		request_error(state);
state            1625 source3/winbindd/winbindd_group.c 	winbindd_lookupname_async(state->mem_ctx,
state            1639 source3/winbindd/winbindd_group.c 		request_error(s->state);
state            1645 source3/winbindd/winbindd_group.c 	winbindd_gettoken_async(s->state->mem_ctx, &s->user_sid,
state            1659 source3/winbindd/winbindd_group.c 		request_error(s->state);
state            1679 source3/winbindd/winbindd_group.c 		if (!add_gid_to_array_unique(s->state->mem_ctx, gid,
state            1695 source3/winbindd/winbindd_group.c 		winbindd_sid2gid_async(s->state->mem_ctx, sid,
state            1700 source3/winbindd/winbindd_group.c 	s->state->response.data.num_entries = s->num_token_gids;
state            1703 source3/winbindd/winbindd_group.c 		s->state->response.extra_data.data =
state            1706 source3/winbindd/winbindd_group.c 		s->state->response.length += s->num_token_gids * sizeof(gid_t);
state            1708 source3/winbindd/winbindd_group.c 	request_ok(s->state);
state            1731 source3/winbindd/winbindd_group.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state            1733 source3/winbindd/winbindd_group.c 	user_sid = TALLOC_P(state->mem_ctx, DOM_SID);
state            1736 source3/winbindd/winbindd_group.c 		request_error(state);
state            1740 source3/winbindd/winbindd_group.c 	if (!string_to_sid(user_sid, state->request.data.sid)) {
state            1742 source3/winbindd/winbindd_group.c 			  state->request.data.sid));
state            1743 source3/winbindd/winbindd_group.c 		request_error(state);
state            1747 source3/winbindd/winbindd_group.c 	winbindd_gettoken_async(state->mem_ctx, user_sid, getusersids_recv,
state            1748 source3/winbindd/winbindd_group.c 				state);
state            1754 source3/winbindd/winbindd_group.c 	struct winbindd_cli_state *state =
state            1761 source3/winbindd/winbindd_group.c 		request_error(state);
state            1776 source3/winbindd/winbindd_group.c 		request_error(state);
state            1788 source3/winbindd/winbindd_group.c 	state->response.data.num_entries = num_sids;
state            1789 source3/winbindd/winbindd_group.c 	state->response.extra_data.data = ret;
state            1790 source3/winbindd/winbindd_group.c 	state->response.length += ret_size;
state            1791 source3/winbindd/winbindd_group.c 	request_ok(state);
state            1800 source3/winbindd/winbindd_group.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state            1802 source3/winbindd/winbindd_group.c 	if (!string_to_sid(&user_sid, state->request.data.sid)) {
state            1804 source3/winbindd/winbindd_group.c 			  state->request.data.sid));
state            1805 source3/winbindd/winbindd_group.c 		request_error(state);
state            1813 source3/winbindd/winbindd_group.c 		request_error(state);
state            1817 source3/winbindd/winbindd_group.c 	sendto_domain(state, domain);
state            1832 source3/winbindd/winbindd_group.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state            1834 source3/winbindd/winbindd_group.c 	if (!string_to_sid(&user_sid, state->request.data.sid)) {
state            1836 source3/winbindd/winbindd_group.c 			  state->request.data.sid));
state            1840 source3/winbindd/winbindd_group.c 	status = domain->methods->lookup_usergroups(domain, state->mem_ctx,
state            1847 source3/winbindd/winbindd_group.c 		state->response.data.num_entries = 0;
state            1848 source3/winbindd/winbindd_group.c 		state->response.extra_data.data = NULL;
state            1852 source3/winbindd/winbindd_group.c 	if (!print_sidlist(state->mem_ctx,
state            1859 source3/winbindd/winbindd_group.c 	state->response.extra_data.data = SMB_STRDUP(sidstring);
state            1860 source3/winbindd/winbindd_group.c 	if (!state->response.extra_data.data) {
state            1863 source3/winbindd/winbindd_group.c 	state->response.length += len+1;
state            1864 source3/winbindd/winbindd_group.c 	state->response.data.num_entries = num_groups;
state            1875 source3/winbindd/winbindd_group.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state            1877 source3/winbindd/winbindd_group.c 	if (!string_to_sid(&domain_sid, state->request.data.sid)) {
state            1879 source3/winbindd/winbindd_group.c 			  state->request.data.sid));
state            1880 source3/winbindd/winbindd_group.c 		request_error(state);
state            1888 source3/winbindd/winbindd_group.c 		request_error(state);
state            1892 source3/winbindd/winbindd_group.c 	sendto_domain(state, domain);
state            1907 source3/winbindd/winbindd_group.c 	DEBUG(3, ("[%5lu]: getsidaliases\n", (unsigned long)state->pid));
state            1909 source3/winbindd/winbindd_group.c 	sidstr = state->request.extra_data.data;
state            1911 source3/winbindd/winbindd_group.c 		sidstr = talloc_strdup(state->mem_ctx, "\n"); /* No SID */
state            1920 source3/winbindd/winbindd_group.c 	if (!parse_sidlist(state->mem_ctx, sidstr, &sids, &num_sids)) {
state            1929 source3/winbindd/winbindd_group.c 						     state->mem_ctx,
state            1951 source3/winbindd/winbindd_group.c 		result = add_sid_to_array(state->mem_ctx, &sid, &sids,
state            1959 source3/winbindd/winbindd_group.c 	if (!print_sidlist(state->mem_ctx, sids, num_sids, &sidstr, &len)) {
state            1961 source3/winbindd/winbindd_group.c 		state->response.extra_data.data = NULL;
state            1965 source3/winbindd/winbindd_group.c 	state->response.extra_data.data = NULL;
state            1968 source3/winbindd/winbindd_group.c 		state->response.extra_data.data = SMB_STRDUP(sidstr);
state            1969 source3/winbindd/winbindd_group.c 		if (!state->response.extra_data.data) {
state            1974 source3/winbindd/winbindd_group.c 			   (char *)state->response.extra_data.data));
state            1975 source3/winbindd/winbindd_group.c 		state->response.length += len+1;
state            1976 source3/winbindd/winbindd_group.c 		state->response.data.num_entries = num_sids;
state             100 source3/winbindd/winbindd_idmap.c 	DEBUG(3, ("[%5lu]: dual_idmapset\n", (unsigned long)state->pid));
state             102 source3/winbindd/winbindd_idmap.c 	if (!string_to_sid(&sid, state->request.data.dual_idmapset.sid))
state             106 source3/winbindd/winbindd_idmap.c 	map.xid.id = state->request.data.dual_idmapset.id;
state             107 source3/winbindd/winbindd_idmap.c 	map.xid.type = state->request.data.dual_idmapset.type;
state             159 source3/winbindd/winbindd_idmap.c 	DEBUG(3, ("[%5lu]: dual_idmapremove\n", (unsigned long)state->pid));
state             161 source3/winbindd/winbindd_idmap.c 	if (!string_to_sid(&sid, state->request.data.dual_idmapset.sid))
state             165 source3/winbindd/winbindd_idmap.c 	map.xid.id = state->request.data.dual_idmapset.id;
state             166 source3/winbindd/winbindd_idmap.c 	map.xid.type = state->request.data.dual_idmapset.type;
state             214 source3/winbindd/winbindd_idmap.c 	DEBUG(3, ("[%5lu]: dual_set_hwm\n", (unsigned long)state->pid));
state             216 source3/winbindd/winbindd_idmap.c 	xid.id = state->request.data.dual_idmapset.id;
state             217 source3/winbindd/winbindd_idmap.c 	xid.type = state->request.data.dual_idmapset.type;
state             292 source3/winbindd/winbindd_idmap.c 	DEBUG(3, ("[%5lu]: sid to uid %s\n", (unsigned long)state->pid,
state             293 source3/winbindd/winbindd_idmap.c 		  state->request.data.dual_sid2id.sid));
state             295 source3/winbindd/winbindd_idmap.c 	if (!string_to_sid(&sid, state->request.data.dual_sid2id.sid)) {
state             297 source3/winbindd/winbindd_idmap.c 			  state->request.data.dual_sid2id.sid));
state             301 source3/winbindd/winbindd_idmap.c 	result = idmap_sid_to_uid(state->request.domain_name, &sid,
state             302 source3/winbindd/winbindd_idmap.c 				  &state->response.data.uid);
state             306 source3/winbindd/winbindd_idmap.c 		   (unsigned int)state->response.data.uid));
state             363 source3/winbindd/winbindd_idmap.c 	DEBUG(3, ("[%5lu]: sid to gid %s\n", (unsigned long)state->pid,
state             364 source3/winbindd/winbindd_idmap.c 		  state->request.data.dual_sid2id.sid));
state             366 source3/winbindd/winbindd_idmap.c 	if (!string_to_sid(&sid, state->request.data.dual_sid2id.sid)) {
state             368 source3/winbindd/winbindd_idmap.c 			  state->request.data.dual_sid2id.sid));
state             374 source3/winbindd/winbindd_idmap.c 	result = idmap_sid_to_gid(state->request.domain_name, &sid,
state             375 source3/winbindd/winbindd_idmap.c 				  &state->response.data.gid);
state             379 source3/winbindd/winbindd_idmap.c 		   (unsigned int)state->response.data.gid));
state             439 source3/winbindd/winbindd_idmap.c 		 (unsigned long)state->pid,
state             440 source3/winbindd/winbindd_idmap.c 		 (unsigned long) state->request.data.uid));
state             443 source3/winbindd/winbindd_idmap.c 	result = idmap_uid_to_sid(state->request.domain_name, &sid,
state             444 source3/winbindd/winbindd_idmap.c 				  state->request.data.uid);
state             447 source3/winbindd/winbindd_idmap.c 		sid_to_fstring(state->response.data.sid.sid, &sid);
state             448 source3/winbindd/winbindd_idmap.c 		state->response.data.sid.type = SID_NAME_USER;
state             507 source3/winbindd/winbindd_idmap.c 		(unsigned long)state->pid,
state             508 source3/winbindd/winbindd_idmap.c 		(unsigned long) state->request.data.gid));
state             511 source3/winbindd/winbindd_idmap.c 	result = idmap_gid_to_sid(state->request.domain_name, &sid,
state             512 source3/winbindd/winbindd_idmap.c 				  state->request.data.gid);
state             515 source3/winbindd/winbindd_idmap.c 		sid_to_fstring(state->response.data.sid.sid, &sid);
state             517 source3/winbindd/winbindd_idmap.c 			   (unsigned long)state->pid,
state             518 source3/winbindd/winbindd_idmap.c 			   state->response.data.sid.sid));
state             519 source3/winbindd/winbindd_idmap.c 		state->response.data.sid.type = SID_NAME_DOM_GRP;
state              48 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.domain_name
state              49 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.domain_name)-1] = '\0';
state              50 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.site_name
state              51 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.site_name)-1] = '\0';
state              52 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.domain_guid
state              53 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.domain_guid)-1] = '\0';
state              55 source3/winbindd/winbindd_locator.c 	DEBUG(3, ("[%5lu]: dsgetdcname for %s\n", (unsigned long)state->pid,
state              56 source3/winbindd/winbindd_locator.c 		  state->request.data.dsgetdcname.domain_name));
state              58 source3/winbindd/winbindd_locator.c 	sendto_child(state, locator_child());
state             110 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.domain_name
state             111 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.domain_name)-1] = '\0';
state             112 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.site_name
state             113 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.site_name)-1] = '\0';
state             114 source3/winbindd/winbindd_locator.c 	state->request.data.dsgetdcname.domain_guid
state             115 source3/winbindd/winbindd_locator.c 		[sizeof(state->request.data.dsgetdcname.domain_guid)-1] = '\0';
state             117 source3/winbindd/winbindd_locator.c 	DEBUG(3, ("[%5lu]: dsgetdcname for %s\n", (unsigned long)state->pid,
state             118 source3/winbindd/winbindd_locator.c 		  state->request.data.dsgetdcname.domain_name));
state             120 source3/winbindd/winbindd_locator.c 	ds_flags = get_dsgetdc_flags(state->request.flags);
state             122 source3/winbindd/winbindd_locator.c 	result = GUID_from_string(state->request.data.dsgetdcname.domain_guid,
state             128 source3/winbindd/winbindd_locator.c 	result = dsgetdcname(state->mem_ctx,
state             130 source3/winbindd/winbindd_locator.c 			     state->request.data.dsgetdcname.domain_name,
state             132 source3/winbindd/winbindd_locator.c 			     state->request.data.dsgetdcname.site_name,
state             140 source3/winbindd/winbindd_locator.c 	guid_str = GUID_string(state->mem_ctx, &info->domain_guid);
state             145 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.dc_unc, info->dc_unc);
state             146 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.dc_address, info->dc_address);
state             147 source3/winbindd/winbindd_locator.c 	state->response.data.dsgetdcname.dc_address_type = info->dc_address_type;
state             148 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.domain_guid, guid_str);
state             149 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.domain_name, info->domain_name);
state             150 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.forest_name, info->forest_name);
state             151 source3/winbindd/winbindd_locator.c 	state->response.data.dsgetdcname.dc_flags = info->dc_flags;
state             152 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.dc_site_name, info->dc_site_name);
state             153 source3/winbindd/winbindd_locator.c 	fstrcpy(state->response.data.dsgetdcname.client_site_name, info->client_site_name);
state              34 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state              36 source3/winbindd/winbindd_misc.c 	sendto_domain(state, find_our_domain());
state              46 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: check machine account\n", (unsigned long)state->pid));
state              89 source3/winbindd/winbindd_misc.c 	set_auth_errors(&state->response, result);
state              92 source3/winbindd/winbindd_misc.c 						state->response.data.auth.nt_status_string));
state             126 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: list %s\n", (unsigned long)state->pid, 
state             130 source3/winbindd/winbindd_misc.c 	state->request.domain_name[sizeof(state->request.domain_name)-1]='\0';	
state             131 source3/winbindd/winbindd_misc.c 	which_domain = state->request.domain_name;
state             134 source3/winbindd/winbindd_misc.c 	ent_state = TALLOC_P(state->mem_ctx, struct listent_state);
state             137 source3/winbindd/winbindd_misc.c 		request_error(state);
state             141 source3/winbindd/winbindd_misc.c 	ent_state->mem_ctx = state->mem_ctx;
state             142 source3/winbindd/winbindd_misc.c 	ent_state->cli_state = state;
state             164 source3/winbindd/winbindd_misc.c 		request_ok(state);
state             174 source3/winbindd/winbindd_misc.c 		winbindd_listent_async(state->mem_ctx, domain, 
state             184 source3/winbindd/winbindd_misc.c 	struct listent_state *state = talloc_get_type_abort(
state             190 source3/winbindd/winbindd_misc.c 		      dom_name, get_ent_type_string(state->type)));
state             191 source3/winbindd/winbindd_misc.c                 if (!state->extra_data)
state             192 source3/winbindd/winbindd_misc.c                         state->extra_data = talloc_asprintf(state->mem_ctx,
state             195 source3/winbindd/winbindd_misc.c                         state->extra_data = talloc_asprintf_append(
state             196 source3/winbindd/winbindd_misc.c                                                             state->extra_data,
state             199 source3/winbindd/winbindd_misc.c                 state->extra_data_len += strlen(extra_data) + 1;
state             203 source3/winbindd/winbindd_misc.c 		      dom_name, get_ent_type_string(state->type)));
state             206 source3/winbindd/winbindd_misc.c 	if (--state->domain_count)
state             211 source3/winbindd/winbindd_misc.c 	if (state->extra_data) {
state             212 source3/winbindd/winbindd_misc.c 		state->cli_state->response.extra_data.data = 
state             213 source3/winbindd/winbindd_misc.c 			SMB_STRDUP(state->extra_data);
state             214 source3/winbindd/winbindd_misc.c 		state->cli_state->response.length += state->extra_data_len;
state             217 source3/winbindd/winbindd_misc.c 	request_ok(state->cli_state);
state             288 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state             291 source3/winbindd/winbindd_misc.c 		request_error(state);	
state             306 source3/winbindd/winbindd_misc.c 			extra_data = talloc_asprintf(state->mem_ctx, 
state             310 source3/winbindd/winbindd_misc.c 						     sid_string_talloc(state->mem_ctx, &d->sid),
state             317 source3/winbindd/winbindd_misc.c 			extra_data = talloc_asprintf(state->mem_ctx, 
state             322 source3/winbindd/winbindd_misc.c 						     sid_string_talloc(state->mem_ctx, &d->sid),
state             337 source3/winbindd/winbindd_misc.c 		state->response.extra_data.data = SMB_STRDUP(extra_data);
state             338 source3/winbindd/winbindd_misc.c 		state->response.length += extra_data_len+1;
state             341 source3/winbindd/winbindd_misc.c 	request_ok(state);	
state             359 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state             361 source3/winbindd/winbindd_misc.c 	result = domain->methods->trusted_domains(domain, state->mem_ctx,
state             371 source3/winbindd/winbindd_misc.c 	extra_data = talloc_strdup(state->mem_ctx, "");
state             375 source3/winbindd/winbindd_misc.c 			state->mem_ctx, "%s\\%s\\%s",
state             377 source3/winbindd/winbindd_misc.c 			sid_string_talloc(state->mem_ctx, &sids[0]));
state             381 source3/winbindd/winbindd_misc.c 			state->mem_ctx, "%s\n%s\\%s\\%s",
state             384 source3/winbindd/winbindd_misc.c 			sid_string_talloc(state->mem_ctx, &sids[i]));
state             395 source3/winbindd/winbindd_misc.c 	if (state->request.data.list_all_domains && !have_own_domain) {
state             397 source3/winbindd/winbindd_misc.c 			state->mem_ctx, "%s\n%s\\%s\\%s",
state             400 source3/winbindd/winbindd_misc.c 			sid_string_talloc(state->mem_ctx, &domain->sid));
state             412 source3/winbindd/winbindd_misc.c 		state->response.extra_data.data = SMB_STRDUP(extra_data);
state             413 source3/winbindd/winbindd_misc.c 		state->response.length += extra_data_len+1;
state             423 source3/winbindd/winbindd_misc.c 	state->request.domain_name
state             424 source3/winbindd/winbindd_misc.c 		[sizeof(state->request.domain_name)-1] = '\0';
state             426 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: Get DC name for %s\n", (unsigned long)state->pid,
state             427 source3/winbindd/winbindd_misc.c 		  state->request.domain_name));
state             429 source3/winbindd/winbindd_misc.c 	domain = find_domain_from_name_noinit(state->request.domain_name);
state             431 source3/winbindd/winbindd_misc.c 		fstrcpy(state->response.data.dc_name, global_myname());
state             432 source3/winbindd/winbindd_misc.c 		request_ok(state);	
state             436 source3/winbindd/winbindd_misc.c 	sendto_domain(state, find_our_domain());
state             450 source3/winbindd/winbindd_misc.c 	state->request.domain_name
state             451 source3/winbindd/winbindd_misc.c 		[sizeof(state->request.domain_name)-1] = '\0';
state             453 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: Get DC name for %s\n", (unsigned long)state->pid,
state             454 source3/winbindd/winbindd_misc.c 		  state->request.domain_name));
state             468 source3/winbindd/winbindd_misc.c 	req_domain = find_domain_from_name_noinit(state->request.domain_name);
state             471 source3/winbindd/winbindd_misc.c 					       state->mem_ctx,
state             473 source3/winbindd/winbindd_misc.c 					       state->request.domain_name,
state             478 source3/winbindd/winbindd_misc.c 						  state->mem_ctx,
state             480 source3/winbindd/winbindd_misc.c 						  state->request.domain_name,
state             489 source3/winbindd/winbindd_misc.c 			state->request.domain_name, nt_errstr(result)));
state             495 source3/winbindd/winbindd_misc.c 			state->request.domain_name, win_errstr(werr)));
state             507 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.dc_name, p);
state             527 source3/winbindd/winbindd_misc.c 	state->request.domain_name[sizeof(state->request.domain_name)-1]='\0';
state             529 source3/winbindd/winbindd_misc.c 	if (strlen(state->request.domain_name) > 0) {
state             532 source3/winbindd/winbindd_misc.c 			state->request.domain_name);
state             534 source3/winbindd/winbindd_misc.c 			request_error(state);
state             537 source3/winbindd/winbindd_misc.c 		sendto_domain(state, domain);
state             543 source3/winbindd/winbindd_misc.c 	seq = TALLOC_P(state->mem_ctx, struct sequence_state);
state             546 source3/winbindd/winbindd_misc.c 		request_error(state);
state             550 source3/winbindd/winbindd_misc.c 	seq->mem_ctx = state->mem_ctx;
state             551 source3/winbindd/winbindd_misc.c 	seq->cli_state = state;
state             555 source3/winbindd/winbindd_misc.c 		request_error(state);
state             558 source3/winbindd/winbindd_misc.c 	seq->request = TALLOC_ZERO_P(state->mem_ctx,
state             560 source3/winbindd/winbindd_misc.c 	seq->response = TALLOC_ZERO_P(state->mem_ctx,
state             562 source3/winbindd/winbindd_misc.c 	seq->extra_data = talloc_strdup(state->mem_ctx, "");
state             567 source3/winbindd/winbindd_misc.c 		request_error(state);
state             575 source3/winbindd/winbindd_misc.c 	async_domain_request(state->mem_ctx, seq->domain,
state             582 source3/winbindd/winbindd_misc.c 	struct sequence_state *state =
state             586 source3/winbindd/winbindd_misc.c 	if ((success) && (state->response->result == WINBINDD_OK))
state             587 source3/winbindd/winbindd_misc.c 		seq = state->response->data.sequence_number;
state             590 source3/winbindd/winbindd_misc.c 		state->extra_data = talloc_asprintf(state->mem_ctx,
state             592 source3/winbindd/winbindd_misc.c 						    state->extra_data,
state             593 source3/winbindd/winbindd_misc.c 						    state->domain->name);
state             595 source3/winbindd/winbindd_misc.c 		state->extra_data = talloc_asprintf(state->mem_ctx,
state             597 source3/winbindd/winbindd_misc.c 						    state->extra_data,
state             598 source3/winbindd/winbindd_misc.c 						    state->domain->name, seq);
state             601 source3/winbindd/winbindd_misc.c 	state->domain->sequence_number = seq;
state             603 source3/winbindd/winbindd_misc.c 	state->domain = state->domain->next;
state             605 source3/winbindd/winbindd_misc.c 	if (state->domain == NULL) {
state             606 source3/winbindd/winbindd_misc.c 		struct winbindd_cli_state *cli_state = state->cli_state;
state             609 source3/winbindd/winbindd_misc.c 			strlen(state->extra_data) + 1;
state             611 source3/winbindd/winbindd_misc.c 			SMB_STRDUP(state->extra_data);
state             617 source3/winbindd/winbindd_misc.c 	fstrcpy(state->request->domain_name, state->domain->name);
state             618 source3/winbindd/winbindd_misc.c 	async_domain_request(state->mem_ctx, state->domain,
state             619 source3/winbindd/winbindd_misc.c 			     state->request, state->response,
state             620 source3/winbindd/winbindd_misc.c 			     sequence_recv, state);
state             629 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: show sequence\n", (unsigned long)state->pid));
state             632 source3/winbindd/winbindd_misc.c 	state->request.domain_name[sizeof(state->request.domain_name)-1]='\0';
state             636 source3/winbindd/winbindd_misc.c 	state->response.data.sequence_number =
state             653 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: domain_info [%s]\n", (unsigned long)state->pid,
state             654 source3/winbindd/winbindd_misc.c 		  state->request.domain_name));
state             656 source3/winbindd/winbindd_misc.c 	domain = find_domain_from_name_noinit(state->request.domain_name);
state             660 source3/winbindd/winbindd_misc.c 			  state->request.domain_name));
state             661 source3/winbindd/winbindd_misc.c 		request_error(state);
state             668 source3/winbindd/winbindd_misc.c 		istate = TALLOC_P(state->mem_ctx, struct domain_info_state);
state             671 source3/winbindd/winbindd_misc.c 			request_error(state);
state             675 source3/winbindd/winbindd_misc.c 		istate->cli_state = state;
state             683 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.domain_info.name,
state             685 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.domain_info.alt_name,
state             687 source3/winbindd/winbindd_misc.c 	sid_to_fstring(state->response.data.domain_info.sid, &domain->sid);
state             689 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.native_mode =
state             691 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.active_directory =
state             693 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.primary =
state             696 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             703 source3/winbindd/winbindd_misc.c 	struct winbindd_cli_state *state = istate->cli_state;
state             711 source3/winbindd/winbindd_misc.c 		request_error(state);
state             715 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.domain_info.name,
state             717 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.domain_info.alt_name,
state             719 source3/winbindd/winbindd_misc.c 	sid_to_fstring(state->response.data.domain_info.sid, &domain->sid);
state             721 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.native_mode =
state             723 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.active_directory =
state             725 source3/winbindd/winbindd_misc.c 	state->response.data.domain_info.primary =
state             728 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             733 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: ping\n", (unsigned long)state->pid));
state             734 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             742 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: request misc info\n", (unsigned long)state->pid));
state             744 source3/winbindd/winbindd_misc.c 	state->response.data.info.winbind_separator = *lp_winbind_separator();
state             745 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.info.samba_version, samba_version_string());
state             746 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             754 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state             756 source3/winbindd/winbindd_misc.c 	state->response.data.interface_version = WINBIND_INTERFACE_VERSION;
state             757 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             764 source3/winbindd/winbindd_misc.c 	DEBUG(3, ("[%5lu]: request domain name\n", (unsigned long)state->pid));
state             766 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.domain_name, lp_workgroup());
state             767 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             775 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state             777 source3/winbindd/winbindd_misc.c 	fstrcpy(state->response.data.netbios_name, global_myname());
state             778 source3/winbindd/winbindd_misc.c 	request_ok(state);
state             787 source3/winbindd/winbindd_misc.c 		  (unsigned long)state->pid));
state             789 source3/winbindd/winbindd_misc.c 	state->response.extra_data.data = SMB_STRDUP(get_winbind_priv_pipe_dir());
state             790 source3/winbindd/winbindd_misc.c 	if (!state->response.extra_data.data) {
state             792 source3/winbindd/winbindd_misc.c 		request_error(state);
state             797 source3/winbindd/winbindd_misc.c 	state->response.length +=
state             798 source3/winbindd/winbindd_misc.c 		strlen((char *)state->response.extra_data.data) + 1;
state             800 source3/winbindd/winbindd_misc.c 	request_ok(state);
state              40 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.logon_time =
state              42 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.logoff_time =
state              44 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.kickoff_time =
state              46 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.pass_last_set_time =
state              48 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.pass_can_change_time =
state              50 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.pass_must_change_time =
state              53 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.logon_count = info3->base.logon_count;
state              54 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.bad_pw_count = info3->base.bad_password_count;
state              56 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.user_rid = info3->base.rid;
state              57 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.group_rid = info3->base.primary_gid;
state              58 source3/winbindd/winbindd_pam.c 	sid_to_fstring(state->response.data.auth.info3.dom_sid, info3->base.domain_sid);
state              60 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.num_groups = info3->base.groups.count;
state              61 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.user_flgs = info3->base.user_flags;
state              63 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.acct_flags = info3->base.acct_flags;
state              64 source3/winbindd/winbindd_pam.c 	state->response.data.auth.info3.num_other_sids = info3->sidcount;
state              66 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.user_name,
state              68 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.full_name,
state              70 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.logon_script,
state              72 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.profile_path,
state              74 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.home_dir,
state              76 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.dir_drive,
state              79 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.logon_srv,
state              81 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.info3.logon_dom,
state             110 source3/winbindd/winbindd_pam.c 	SAFE_FREE(state->response.extra_data.data);
state             111 source3/winbindd/winbindd_pam.c 	state->response.extra_data.data = SMB_MALLOC(size);
state             112 source3/winbindd/winbindd_pam.c 	if (!state->response.extra_data.data) {
state             115 source3/winbindd/winbindd_pam.c 	memcpy(state->response.extra_data.data, ex, size);
state             118 source3/winbindd/winbindd_pam.c 	state->response.length += size;
state             137 source3/winbindd/winbindd_pam.c 	SAFE_FREE(state->response.extra_data.data);
state             138 source3/winbindd/winbindd_pam.c 	state->response.extra_data.data = SMB_MALLOC(blob.length);
state             139 source3/winbindd/winbindd_pam.c 	if (!state->response.extra_data.data) {
state             144 source3/winbindd/winbindd_pam.c 	memset(state->response.extra_data.data, '\0', blob.length);
state             145 source3/winbindd/winbindd_pam.c 	memcpy(state->response.extra_data.data, blob.data, blob.length);
state             146 source3/winbindd/winbindd_pam.c 	state->response.length += blob.length;
state             178 source3/winbindd/winbindd_pam.c 	fill_domain_username(state->response.data.auth.unix_username,
state             182 source3/winbindd/winbindd_pam.c 		state->response.data.auth.unix_username));
state             238 source3/winbindd/winbindd_pam.c 	SAFE_FREE(state->response.extra_data.data);
state             239 source3/winbindd/winbindd_pam.c 	state->response.extra_data.data =
state             242 source3/winbindd/winbindd_pam.c 	if (state->response.extra_data.data != NULL) {
state             243 source3/winbindd/winbindd_pam.c 		state->response.length +=
state             244 source3/winbindd/winbindd_pam.c 			strlen((const char *)state->response.extra_data.data)+1;
state             370 source3/winbindd/winbindd_pam.c 	if (state->request.flags & WBFLAG_PAM_CONTACT_TRUSTDOM) {
state             414 source3/winbindd/winbindd_pam.c 	status = methods->password_policy(domain, state->mem_ctx, &password_policy);
state             419 source3/winbindd/winbindd_pam.c 	fill_in_password_policy(&state->response, &password_policy);
state             519 source3/winbindd/winbindd_pam.c 	const char *type = state->request.data.auth.krb5_cc_type;
state             521 source3/winbindd/winbindd_pam.c 	state->response.data.auth.krb5ccname[0] = '\0';
state             534 source3/winbindd/winbindd_pam.c 	fstrcpy(state->response.data.auth.krb5ccname, cc);
state             543 source3/winbindd/winbindd_pam.c 	uid = state->request.data.auth.uid;
state             583 source3/winbindd/winbindd_pam.c 	uid = get_uid_from_state(state);
state             588 source3/winbindd/winbindd_pam.c 	cc = generate_krb5_ccache(state->mem_ctx,
state             589 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.krb5_cc_type,
state             590 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.uid,
state             609 source3/winbindd/winbindd_pam.c 	parse_domain_user(state->request.data.auth.user, name_domain, name_user);
state             614 source3/winbindd/winbindd_pam.c 	principal_s = talloc_asprintf(state->mem_ctx, "%s@%s", name_user, realm);
state             619 source3/winbindd/winbindd_pam.c 	service = talloc_asprintf(state->mem_ctx, "%s/%s@%s", KRB5_TGS_NAME, realm, realm);
state             634 source3/winbindd/winbindd_pam.c 	result = kerberos_return_info3_from_pac(state->mem_ctx,
state             636 source3/winbindd/winbindd_pam.c 						state->request.data.auth.pass,
state             663 source3/winbindd/winbindd_pam.c 		setup_return_cc_name(state, cc);
state             668 source3/winbindd/winbindd_pam.c 					    state->request.data.auth.user,
state             709 source3/winbindd/winbindd_pam.c 	if (!NT_STATUS_IS_OK(remove_ccache(state->request.data.auth.user))) {
state             712 source3/winbindd/winbindd_pam.c 			state->request.data.auth.user));
state             751 source3/winbindd/winbindd_pam.c 	uint32_t flags = state->request.flags;
state             754 source3/winbindd/winbindd_pam.c 		memcpy(state->response.data.auth.user_session_key,
state             756 source3/winbindd/winbindd_pam.c 		       sizeof(state->response.data.auth.user_session_key)
state             761 source3/winbindd/winbindd_pam.c 		memcpy(state->response.data.auth.first_8_lm_hash,
state             763 source3/winbindd/winbindd_pam.c 		       sizeof(state->response.data.auth.first_8_lm_hash)
state             768 source3/winbindd/winbindd_pam.c 		result = append_info3_as_txt(state->mem_ctx, state, info3);
state             779 source3/winbindd/winbindd_pam.c 		result = append_info3_as_ndr(state->mem_ctx, state, info3);
state             788 source3/winbindd/winbindd_pam.c 		result = append_unix_username(state->mem_ctx, state, info3,
state             798 source3/winbindd/winbindd_pam.c 		result = append_afs_token(state->mem_ctx, state, info3,
state             819 source3/winbindd/winbindd_pam.c 	state->request.data.auth.user
state             820 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.auth.user)-1]='\0';
state             823 source3/winbindd/winbindd_pam.c 	state->request.data.auth.pass
state             824 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.auth.pass)-1]='\0';
state             826 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: pam auth %s\n", (unsigned long)state->pid,
state             827 source3/winbindd/winbindd_pam.c 		  state->request.data.auth.user));
state             829 source3/winbindd/winbindd_pam.c 	if (!check_request_flags(state->request.flags)) {
state             836 source3/winbindd/winbindd_pam.c 	name_map_status = normalize_name_unmap(state->mem_ctx,
state             837 source3/winbindd/winbindd_pam.c 					       state->request.data.auth.user,
state             847 source3/winbindd/winbindd_pam.c 		fstrcpy(mapped_user, state->request.data.auth.user);
state             855 source3/winbindd/winbindd_pam.c 	domain = find_auth_domain(state, name_domain);
state             862 source3/winbindd/winbindd_pam.c 	sendto_domain(state, domain);
state             865 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state             868 source3/winbindd/winbindd_pam.c 		  state->request.data.auth.user,
state             869 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.nt_status_string,
state             870 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.pam_error));
state             871 source3/winbindd/winbindd_pam.c 	request_error(state);
state             901 source3/winbindd/winbindd_pam.c 	parse_domain_user(state->request.data.auth.user, name_domain, name_user);
state             904 source3/winbindd/winbindd_pam.c 	if (!lookup_cached_name(state->mem_ctx,
state             919 source3/winbindd/winbindd_pam.c 				    state->mem_ctx,
state             931 source3/winbindd/winbindd_pam.c 	E_md4hash(state->request.data.auth.pass, new_nt_pass);
state            1000 source3/winbindd/winbindd_pam.c 		if ((state->request.flags & WBFLAG_PAM_KRB5) &&
state            1001 source3/winbindd/winbindd_pam.c 		    ((tdc_domain = wcache_tdc_fetch_domain(state->mem_ctx, name_domain)) != NULL) &&
state            1013 source3/winbindd/winbindd_pam.c 			uid = get_uid_from_state(state);
state            1019 source3/winbindd/winbindd_pam.c 			cc = generate_krb5_ccache(state->mem_ctx,
state            1020 source3/winbindd/winbindd_pam.c 						state->request.data.auth.krb5_cc_type,
state            1021 source3/winbindd/winbindd_pam.c 						state->request.data.auth.uid,
state            1030 source3/winbindd/winbindd_pam.c 			principal_s = talloc_asprintf(state->mem_ctx, "%s@%s", name_user, realm);
state            1035 source3/winbindd/winbindd_pam.c 			service = talloc_asprintf(state->mem_ctx, "%s/%s@%s", KRB5_TGS_NAME, realm, realm);
state            1042 source3/winbindd/winbindd_pam.c 				setup_return_cc_name(state, cc);
state            1047 source3/winbindd/winbindd_pam.c 							    state->request.data.auth.user,
state            1071 source3/winbindd/winbindd_pam.c 							state->mem_ctx,
state            1072 source3/winbindd/winbindd_pam.c 							state->request.data.auth.user,
state            1073 source3/winbindd/winbindd_pam.c 							state->request.data.auth.pass,
state            1088 source3/winbindd/winbindd_pam.c 	result = get_max_bad_attempts_from_lockout_policy(domain, state->mem_ctx, &max_allowed_bad_attempts);
state            1106 source3/winbindd/winbindd_pam.c 		result = get_pwd_properties(domain, state->mem_ctx, &password_properties);
state            1119 source3/winbindd/winbindd_pam.c 						state->mem_ctx,
state            1120 source3/winbindd/winbindd_pam.c 						state->request.data.auth.user,
state            1144 source3/winbindd/winbindd_pam.c 	parse_domain_user(state->request.data.auth.user, name_domain, name_user);
state            1151 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.user, name_domain, name_user, name_domain));
state            1166 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.user, name_domain, name_user, name_domain));
state            1186 source3/winbindd/winbindd_pam.c 	result = winbindd_raw_kerberos_login(contact_domain, state, info3);
state            1227 source3/winbindd/winbindd_pam.c 	parse_domain_user(state->request.data.auth.user, name_domain, name_user);
state            1238 source3/winbindd/winbindd_pam.c 		server_chal = data_blob_talloc(state->mem_ctx, chal, 8);
state            1247 source3/winbindd/winbindd_pam.c 				      state->request.data.auth.pass,
state            1259 source3/winbindd/winbindd_pam.c 		lm_resp = data_blob_talloc(state->mem_ctx, lm_response.data,
state            1261 source3/winbindd/winbindd_pam.c 		nt_resp = data_blob_talloc(state->mem_ctx, nt_response.data,
state            1268 source3/winbindd/winbindd_pam.c 		    && SMBencrypt(state->request.data.auth.pass,
state            1271 source3/winbindd/winbindd_pam.c 			lm_resp = data_blob_talloc(state->mem_ctx,
state            1277 source3/winbindd/winbindd_pam.c 		SMBNTencrypt(state->request.data.auth.pass,
state            1281 source3/winbindd/winbindd_pam.c 		nt_resp = data_blob_talloc(state->mem_ctx,
state            1291 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.user, name_domain, name_user, name_domain));
state            1347 source3/winbindd/winbindd_pam.c 				  state->mem_ctx,
state            1398 source3/winbindd/winbindd_pam.c 	if ((state->request.flags & WBFLAG_PAM_INFO3_TEXT) &&
state            1407 source3/winbindd/winbindd_pam.c 		status_tmp = cm_connect_sam(contact_domain, state->mem_ctx,
state            1416 source3/winbindd/winbindd_pam.c 		status_tmp = rpccli_samr_OpenUser(samr_pipe, state->mem_ctx,
state            1428 source3/winbindd/winbindd_pam.c 		status_tmp = rpccli_samr_QueryUserInfo(samr_pipe, state->mem_ctx,
state            1436 source3/winbindd/winbindd_pam.c 			rpccli_samr_Close(samr_pipe, state->mem_ctx, &user_pol);
state            1443 source3/winbindd/winbindd_pam.c 			rpccli_samr_Close(samr_pipe, state->mem_ctx, &user_pol);
state            1451 source3/winbindd/winbindd_pam.c 		rpccli_samr_Close(samr_pipe, state->mem_ctx, &user_pol);
state            1471 source3/winbindd/winbindd_pam.c 	state->request.data.auth.user[sizeof(state->request.data.auth.user)-1]='\0';
state            1474 source3/winbindd/winbindd_pam.c 	state->request.data.auth.pass[sizeof(state->request.data.auth.pass)-1]='\0';
state            1476 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: dual pam auth %s\n", (unsigned long)state->pid,
state            1477 source3/winbindd/winbindd_pam.c 		  state->request.data.auth.user));
state            1479 source3/winbindd/winbindd_pam.c 	if (!check_request_flags(state->request.flags)) {
state            1486 source3/winbindd/winbindd_pam.c 	name_map_status = normalize_name_unmap(state->mem_ctx,
state            1487 source3/winbindd/winbindd_pam.c 					       state->request.data.auth.user,
state            1496 source3/winbindd/winbindd_pam.c 		mapped_user = state->request.data.auth.user;
state            1501 source3/winbindd/winbindd_pam.c 	if ( mapped_user != state->request.data.auth.user ) {
state            1503 source3/winbindd/winbindd_pam.c 		safe_strcpy( state->request.data.auth.user, domain_user,
state            1504 source3/winbindd/winbindd_pam.c 			     sizeof(state->request.data.auth.user)-1 );
state            1525 source3/winbindd/winbindd_pam.c 	if (domain->online && (state->request.flags & WBFLAG_PAM_KRB5)) {
state            1527 source3/winbindd/winbindd_pam.c 		result = winbindd_dual_pam_auth_kerberos(domain, state, &info3);
state            1564 source3/winbindd/winbindd_pam.c 		if (state->request.flags & WBFLAG_PAM_FALLBACK_AFTER_KRB5) {
state            1575 source3/winbindd/winbindd_pam.c 		result = winbindd_dual_pam_auth_samlogon(domain, state, &info3);
state            1606 source3/winbindd/winbindd_pam.c 	if (!domain->online && (state->request.flags & WBFLAG_PAM_CACHED_LOGIN) &&
state            1609 source3/winbindd/winbindd_pam.c 		result = winbindd_dual_pam_auth_cached(domain, state, &info3);
state            1649 source3/winbindd/winbindd_pam.c 		if (!NT_STATUS_IS_OK(result = check_info3_in_group(state->mem_ctx, info3,
state            1650 source3/winbindd/winbindd_pam.c 					state->request.data.auth.require_membership_of_sid))) {
state            1652 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.user,
state            1653 source3/winbindd/winbindd_pam.c 				  state->request.data.auth.require_membership_of_sid));
state            1657 source3/winbindd/winbindd_pam.c 		result = append_data(state, info3, name_domain, name_user);
state            1662 source3/winbindd/winbindd_pam.c 		if ((state->request.flags & WBFLAG_PAM_CACHED_LOGIN)) {
state            1665 source3/winbindd/winbindd_pam.c 			result = winbindd_add_memory_creds(state->request.data.auth.user,
state            1666 source3/winbindd/winbindd_pam.c 							get_uid_from_state(state),
state            1667 source3/winbindd/winbindd_pam.c 							state->request.data.auth.pass);
state            1676 source3/winbindd/winbindd_pam.c 						      state->mem_ctx,
state            1677 source3/winbindd/winbindd_pam.c 						      state->request.data.auth.user,
state            1678 source3/winbindd/winbindd_pam.c 						      state->request.data.auth.pass,
state            1683 source3/winbindd/winbindd_pam.c 					winbindd_delete_memory_creds(state->request.data.auth.user);
state            1692 source3/winbindd/winbindd_pam.c 		if (state->request.flags & WBFLAG_PAM_GET_PWD_POLICY) {
state            1703 source3/winbindd/winbindd_pam.c 				result = fillup_password_policy(our_domain, state);
state            1725 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            1728 source3/winbindd/winbindd_pam.c 	      state->request.data.auth.user,
state            1729 source3/winbindd/winbindd_pam.c 	      state->response.data.auth.nt_status_string,
state            1730 source3/winbindd/winbindd_pam.c 	      state->response.data.auth.pam_error));
state            1746 source3/winbindd/winbindd_pam.c 	if (!check_request_flags(state->request.flags)) {
state            1751 source3/winbindd/winbindd_pam.c 	if (!state->privileged) {
state            1759 source3/winbindd/winbindd_pam.c 		error_string = talloc_asprintf(state->mem_ctx,
state            1765 source3/winbindd/winbindd_pam.c 		fstrcpy(state->response.data.auth.error_string, error_string);
state            1771 source3/winbindd/winbindd_pam.c 	state->request.data.auth_crap.user
state            1772 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.auth_crap.user)-1]=0;
state            1773 source3/winbindd/winbindd_pam.c 	state->request.data.auth_crap.domain
state            1774 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.auth_crap.domain)-1]=0;
state            1777 source3/winbindd/winbindd_pam.c 		  (unsigned long)state->pid,
state            1778 source3/winbindd/winbindd_pam.c 		  state->request.data.auth_crap.domain,
state            1779 source3/winbindd/winbindd_pam.c 		  state->request.data.auth_crap.user));
state            1781 source3/winbindd/winbindd_pam.c 	if (*state->request.data.auth_crap.domain != '\0') {
state            1782 source3/winbindd/winbindd_pam.c 		domain_name = state->request.data.auth_crap.domain;
state            1788 source3/winbindd/winbindd_pam.c 		domain = find_auth_domain(state, domain_name);
state            1791 source3/winbindd/winbindd_pam.c 		sendto_domain(state, domain);
state            1798 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            1800 source3/winbindd/winbindd_pam.c 		  state->request.data.auth_crap.domain,
state            1801 source3/winbindd/winbindd_pam.c 		  state->request.data.auth_crap.user,
state            1802 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.nt_status_string,
state            1803 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.pam_error));
state            1804 source3/winbindd/winbindd_pam.c 	request_error(state);
state            1828 source3/winbindd/winbindd_pam.c 	state->request.data.auth_crap.user[sizeof(state->request.data.auth_crap.user)-1]=0;
state            1829 source3/winbindd/winbindd_pam.c 	state->request.data.auth_crap.domain[sizeof(state->request.data.auth_crap.domain)-1]=0;
state            1831 source3/winbindd/winbindd_pam.c 	if (!check_request_flags(state->request.flags)) {
state            1836 source3/winbindd/winbindd_pam.c 	name_user = state->request.data.auth_crap.user;
state            1838 source3/winbindd/winbindd_pam.c 	if (*state->request.data.auth_crap.domain) {
state            1839 source3/winbindd/winbindd_pam.c 		name_domain = state->request.data.auth_crap.domain;
state            1849 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: pam auth crap domain: %s user: %s\n", (unsigned long)state->pid,
state            1852 source3/winbindd/winbindd_pam.c 	if (*state->request.data.auth_crap.workstation) {
state            1853 source3/winbindd/winbindd_pam.c 		workstation = state->request.data.auth_crap.workstation;
state            1858 source3/winbindd/winbindd_pam.c 	if (state->request.data.auth_crap.lm_resp_len > sizeof(state->request.data.auth_crap.lm_resp)
state            1859 source3/winbindd/winbindd_pam.c 		|| state->request.data.auth_crap.nt_resp_len > sizeof(state->request.data.auth_crap.nt_resp)) {
state            1860 source3/winbindd/winbindd_pam.c 		if (!(state->request.flags & WBFLAG_BIG_NTLMV2_BLOB) ||
state            1861 source3/winbindd/winbindd_pam.c 		     state->request.extra_len != state->request.data.auth_crap.nt_resp_len) {
state            1863 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.lm_resp_len,
state            1864 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.nt_resp_len));
state            1870 source3/winbindd/winbindd_pam.c 	lm_resp = data_blob_talloc(state->mem_ctx, state->request.data.auth_crap.lm_resp,
state            1871 source3/winbindd/winbindd_pam.c 					state->request.data.auth_crap.lm_resp_len);
state            1873 source3/winbindd/winbindd_pam.c 	if (state->request.flags & WBFLAG_BIG_NTLMV2_BLOB) {
state            1874 source3/winbindd/winbindd_pam.c 		nt_resp = data_blob_talloc(state->mem_ctx,
state            1875 source3/winbindd/winbindd_pam.c 					   state->request.extra_data.data,
state            1876 source3/winbindd/winbindd_pam.c 					   state->request.data.auth_crap.nt_resp_len);
state            1878 source3/winbindd/winbindd_pam.c 		nt_resp = data_blob_talloc(state->mem_ctx,
state            1879 source3/winbindd/winbindd_pam.c 					   state->request.data.auth_crap.nt_resp,
state            1880 source3/winbindd/winbindd_pam.c 					   state->request.data.auth_crap.nt_resp_len);
state            1888 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.user, name_domain, name_user, name_domain));
state            1920 source3/winbindd/winbindd_pam.c 				  state->mem_ctx,
state            1921 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.logon_parameters,
state            1927 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.chal,
state            1975 source3/winbindd/winbindd_pam.c 		if (!NT_STATUS_IS_OK(result = check_info3_in_group(state->mem_ctx, info3,
state            1976 source3/winbindd/winbindd_pam.c 							state->request.data.auth_crap.require_membership_of_sid))) {
state            1979 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.user,
state            1980 source3/winbindd/winbindd_pam.c 				  state->request.data.auth_crap.require_membership_of_sid));
state            1984 source3/winbindd/winbindd_pam.c 		result = append_data(state, info3, name_domain, name_user);
state            1998 source3/winbindd/winbindd_pam.c 	if (state->request.flags & WBFLAG_PAM_NT_STATUS_SQUASH) {
state            2002 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            2008 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.nt_status_string,
state            2009 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.pam_error));
state            2023 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: pam chauthtok %s\n", (unsigned long)state->pid,
state            2024 source3/winbindd/winbindd_pam.c 		state->request.data.chauthtok.user));
state            2028 source3/winbindd/winbindd_pam.c 	nt_status = normalize_name_unmap(state->mem_ctx,
state            2029 source3/winbindd/winbindd_pam.c 					 state->request.data.chauthtok.user,
state            2037 source3/winbindd/winbindd_pam.c 		fstrcpy(state->request.data.chauthtok.user, mapped_user);
state            2044 source3/winbindd/winbindd_pam.c 	if (!canonicalize_username(state->request.data.chauthtok.user, domain, user)) {
state            2045 source3/winbindd/winbindd_pam.c 		set_auth_errors(&state->response, NT_STATUS_NO_SUCH_USER);
state            2048 source3/winbindd/winbindd_pam.c 			  state->request.data.auth.user,
state            2049 source3/winbindd/winbindd_pam.c 			  state->response.data.auth.nt_status_string,
state            2050 source3/winbindd/winbindd_pam.c 			  state->response.data.auth.pam_error));
state            2051 source3/winbindd/winbindd_pam.c 		request_error(state);
state            2057 source3/winbindd/winbindd_pam.c 		set_auth_errors(&state->response, NT_STATUS_NO_SUCH_USER);
state            2059 source3/winbindd/winbindd_pam.c 			  state->request.data.chauthtok.user, domain, user, domain));
state            2060 source3/winbindd/winbindd_pam.c 		request_error(state);
state            2064 source3/winbindd/winbindd_pam.c 	sendto_domain(state, contact_domain);
state            2080 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: dual pam chauthtok %s\n", (unsigned long)state->pid,
state            2081 source3/winbindd/winbindd_pam.c 		  state->request.data.auth.user));
state            2083 source3/winbindd/winbindd_pam.c 	if (!parse_domain_user(state->request.data.chauthtok.user, domain, user)) {
state            2089 source3/winbindd/winbindd_pam.c 	oldpass = state->request.data.chauthtok.oldpass;
state            2090 source3/winbindd/winbindd_pam.c 	newpass = state->request.data.chauthtok.newpass;
state            2093 source3/winbindd/winbindd_pam.c 	state->response.data.auth.reject_reason = Undefined;
state            2097 source3/winbindd/winbindd_pam.c 	result = cm_connect_sam(contact_domain, state->mem_ctx, &cli,
state            2104 source3/winbindd/winbindd_pam.c 	result = rpccli_samr_chgpasswd_user3(cli, state->mem_ctx,
state            2115 source3/winbindd/winbindd_pam.c 		fill_in_password_policy(&state->response, info);
state            2117 source3/winbindd/winbindd_pam.c 		state->response.data.auth.reject_reason =
state            2137 source3/winbindd/winbindd_pam.c 		result = rpccli_samr_chgpasswd_user2(cli, state->mem_ctx, user, newpass, oldpass);
state            2149 source3/winbindd/winbindd_pam.c 	if (NT_STATUS_IS_OK(result) && (state->request.flags & WBFLAG_PAM_CACHED_LOGIN)) {
state            2152 source3/winbindd/winbindd_pam.c 		result = winbindd_replace_memory_creds(state->request.data.chauthtok.user,
state            2172 source3/winbindd/winbindd_pam.c 							 state->mem_ctx, user,
state            2196 source3/winbindd/winbindd_pam.c 		policy_ret = fillup_password_policy(contact_domain, state);
state            2210 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            2216 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.nt_status_string,
state            2217 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.pam_error));
state            2227 source3/winbindd/winbindd_pam.c 	uid_t request_uid = state->request.data.logoff.uid;
state            2229 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: pam logoff %s\n", (unsigned long)state->pid,
state            2230 source3/winbindd/winbindd_pam.c 		state->request.data.logoff.user));
state            2233 source3/winbindd/winbindd_pam.c 	state->request.data.logoff.user
state            2234 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.logoff.user)-1]='\0';
state            2236 source3/winbindd/winbindd_pam.c 	state->request.data.logoff.krb5ccname
state            2237 source3/winbindd/winbindd_pam.c 		[sizeof(state->request.data.logoff.krb5ccname)-1]='\0';
state            2243 source3/winbindd/winbindd_pam.c 	if (!canonicalize_username(state->request.data.logoff.user, name_domain, user)) {
state            2247 source3/winbindd/winbindd_pam.c 	if ((domain = find_auth_domain(state, name_domain)) == NULL) {
state            2251 source3/winbindd/winbindd_pam.c 	if ((sys_getpeereid(state->sock, &caller_uid)) != 0) {
state            2262 source3/winbindd/winbindd_pam.c 			state->request.data.logoff.uid = request_uid;
state            2269 source3/winbindd/winbindd_pam.c 			state->request.data.logoff.uid = caller_uid;
state            2273 source3/winbindd/winbindd_pam.c 	sendto_domain(state, domain);
state            2277 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, NT_STATUS_NO_SUCH_USER);
state            2280 source3/winbindd/winbindd_pam.c 		  state->request.data.logoff.user,
state            2281 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.nt_status_string,
state            2282 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.pam_error));
state            2283 source3/winbindd/winbindd_pam.c 	request_error(state);
state            2292 source3/winbindd/winbindd_pam.c 	DEBUG(3, ("[%5lu]: pam dual logoff %s\n", (unsigned long)state->pid,
state            2293 source3/winbindd/winbindd_pam.c 		state->request.data.logoff.user));
state            2295 source3/winbindd/winbindd_pam.c 	if (!(state->request.flags & WBFLAG_PAM_KRB5)) {
state            2300 source3/winbindd/winbindd_pam.c 	if (state->request.data.logoff.krb5ccname[0] == '\0') {
state            2307 source3/winbindd/winbindd_pam.c 	if (state->request.data.logoff.uid < 0) {
state            2315 source3/winbindd/winbindd_pam.c 	if (!ccache_entry_exists(state->request.data.logoff.user)) {
state            2321 source3/winbindd/winbindd_pam.c 	if (!ccache_entry_identical(state->request.data.logoff.user,
state            2322 source3/winbindd/winbindd_pam.c 					state->request.data.logoff.uid,
state            2323 source3/winbindd/winbindd_pam.c 					state->request.data.logoff.krb5ccname)) {
state            2328 source3/winbindd/winbindd_pam.c 	result = remove_ccache(state->request.data.logoff.user);
state            2341 source3/winbindd/winbindd_pam.c 	winbindd_delete_memory_creds(state->request.data.logoff.user);
state            2343 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            2356 source3/winbindd/winbindd_pam.c 	state->request.data.chng_pswd_auth_crap.user[
state            2357 source3/winbindd/winbindd_pam.c 		sizeof(state->request.data.chng_pswd_auth_crap.user)-1]=0;
state            2358 source3/winbindd/winbindd_pam.c 	state->request.data.chng_pswd_auth_crap.domain[
state            2359 source3/winbindd/winbindd_pam.c 		sizeof(state->request.data.chng_pswd_auth_crap.domain)-1]=0;
state            2362 source3/winbindd/winbindd_pam.c 		  (unsigned long)state->pid,
state            2363 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.domain,
state            2364 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.user));
state            2366 source3/winbindd/winbindd_pam.c 	if (*state->request.data.chng_pswd_auth_crap.domain != '\0') {
state            2367 source3/winbindd/winbindd_pam.c 		domain_name = state->request.data.chng_pswd_auth_crap.domain;
state            2377 source3/winbindd/winbindd_pam.c 			  "%s\n", (unsigned long)state->pid,domain->name));
state            2378 source3/winbindd/winbindd_pam.c 		sendto_domain(state, domain);
state            2382 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, NT_STATUS_NO_SUCH_USER);
state            2384 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.domain,
state            2385 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.user,
state            2386 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.nt_status_string,
state            2387 source3/winbindd/winbindd_pam.c 		  state->response.data.auth.pam_error));
state            2388 source3/winbindd/winbindd_pam.c 	request_error(state);
state            2405 source3/winbindd/winbindd_pam.c 	state->request.data.chng_pswd_auth_crap.user[
state            2406 source3/winbindd/winbindd_pam.c 		sizeof(state->request.data.chng_pswd_auth_crap.user)-1]=0;
state            2407 source3/winbindd/winbindd_pam.c 	state->request.data.chng_pswd_auth_crap.domain[
state            2408 source3/winbindd/winbindd_pam.c 		sizeof(state->request.data.chng_pswd_auth_crap.domain)-1]=0;
state            2413 source3/winbindd/winbindd_pam.c 		  (unsigned long)state->pid,
state            2414 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.domain,
state            2415 source3/winbindd/winbindd_pam.c 		  state->request.data.chng_pswd_auth_crap.user));
state            2424 source3/winbindd/winbindd_pam.c 	if (*state->request.data.chng_pswd_auth_crap.domain) {
state            2425 source3/winbindd/winbindd_pam.c 		fstrcpy(domain,state->request.data.chng_pswd_auth_crap.domain);
state            2427 source3/winbindd/winbindd_pam.c 		parse_domain_user(state->request.data.chng_pswd_auth_crap.user,
state            2433 source3/winbindd/winbindd_pam.c 				 state->request.data.chng_pswd_auth_crap.user));
state            2444 source3/winbindd/winbindd_pam.c 		fstrcpy(user, state->request.data.chng_pswd_auth_crap.user);
state            2448 source3/winbindd/winbindd_pam.c 		  (unsigned long)state->pid, domain, user));
state            2452 source3/winbindd/winbindd_pam.c 		state->mem_ctx,
state            2453 source3/winbindd/winbindd_pam.c 		state->request.data.chng_pswd_auth_crap.new_nt_pswd,
state            2454 source3/winbindd/winbindd_pam.c 		state->request.data.chng_pswd_auth_crap.new_nt_pswd_len);
state            2457 source3/winbindd/winbindd_pam.c 		state->mem_ctx,
state            2458 source3/winbindd/winbindd_pam.c 		state->request.data.chng_pswd_auth_crap.old_nt_hash_enc,
state            2459 source3/winbindd/winbindd_pam.c 		state->request.data.chng_pswd_auth_crap.old_nt_hash_enc_len);
state            2461 source3/winbindd/winbindd_pam.c 	if(state->request.data.chng_pswd_auth_crap.new_lm_pswd_len > 0)	{
state            2463 source3/winbindd/winbindd_pam.c 			state->mem_ctx,
state            2464 source3/winbindd/winbindd_pam.c 			state->request.data.chng_pswd_auth_crap.new_lm_pswd,
state            2465 source3/winbindd/winbindd_pam.c 			state->request.data.chng_pswd_auth_crap.new_lm_pswd_len);
state            2468 source3/winbindd/winbindd_pam.c 			state->mem_ctx,
state            2469 source3/winbindd/winbindd_pam.c 			state->request.data.chng_pswd_auth_crap.old_lm_hash_enc,
state            2470 source3/winbindd/winbindd_pam.c 			state->request.data.chng_pswd_auth_crap.old_lm_hash_enc_len);
state            2478 source3/winbindd/winbindd_pam.c 	result = cm_connect_sam(contact_domain, state->mem_ctx, &cli, &dom_pol);
state            2485 source3/winbindd/winbindd_pam.c 		cli, state->mem_ctx, user, new_nt_password, old_nt_hash_enc,
state            2490 source3/winbindd/winbindd_pam.c 	set_auth_errors(&state->response, result);
state            2495 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.nt_status_string,
state            2496 source3/winbindd/winbindd_pam.c 	       state->response.data.auth.pam_error));
state              39 source3/winbindd/winbindd_sid.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state              41 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: lookupsid %s\n", (unsigned long)state->pid, 
state              42 source3/winbindd/winbindd_sid.c 		  state->request.data.sid));
state              44 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state              45 source3/winbindd/winbindd_sid.c 		DEBUG(5, ("%s not a SID\n", state->request.data.sid));
state              46 source3/winbindd/winbindd_sid.c 		request_error(state);
state              50 source3/winbindd/winbindd_sid.c 	winbindd_lookupsid_async(state->mem_ctx, &sid, lookupsid_recv, state);
state              57 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state              62 source3/winbindd/winbindd_sid.c 		request_error(state);
state              66 source3/winbindd/winbindd_sid.c 	fstrcpy(state->response.data.name.dom_name, dom_name);
state              67 source3/winbindd/winbindd_sid.c 	fstrcpy(state->response.data.name.name, name);
state              68 source3/winbindd/winbindd_sid.c 	state->response.data.name.type = type;
state              69 source3/winbindd/winbindd_sid.c 	request_ok(state);
state              85 source3/winbindd/winbindd_sid.c 	state->request.data.name.dom_name[sizeof(state->request.data.name.dom_name)-1]='\0';
state              88 source3/winbindd/winbindd_sid.c 	state->request.data.name.name[sizeof(state->request.data.name.name)-1]='\0';
state              91 source3/winbindd/winbindd_sid.c 	p = strstr(state->request.data.name.name, lp_winbind_separator());
state              94 source3/winbindd/winbindd_sid.c 		name_domain = state->request.data.name.name;
state              96 source3/winbindd/winbindd_sid.c 	} else if ((p = strchr(state->request.data.name.name, '@')) != NULL) {
state             100 source3/winbindd/winbindd_sid.c 		name_user = state->request.data.name.name;
state             102 source3/winbindd/winbindd_sid.c 		name_domain = state->request.data.name.dom_name;
state             103 source3/winbindd/winbindd_sid.c 		name_user = state->request.data.name.name;
state             106 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: lookupname %s%s%s\n", (unsigned long)state->pid,
state             109 source3/winbindd/winbindd_sid.c 	winbindd_lookupname_async(state->mem_ctx, name_domain, name_user,
state             111 source3/winbindd/winbindd_sid.c 				  state);
state             117 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             122 source3/winbindd/winbindd_sid.c 		request_error(state);
state             126 source3/winbindd/winbindd_sid.c 	sid_to_fstring(state->response.data.sid.sid, sid);
state             127 source3/winbindd/winbindd_sid.c 	state->response.data.sid.type = type;
state             128 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             138 source3/winbindd/winbindd_sid.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             140 source3/winbindd/winbindd_sid.c 	DEBUG(10, ("lookup_rids: %s\n", state->request.data.sid));
state             142 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&domain_sid, state->request.data.sid)) {
state             144 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             145 source3/winbindd/winbindd_sid.c 		request_error(state);
state             152 source3/winbindd/winbindd_sid.c 			   state->request.domain_name));
state             153 source3/winbindd/winbindd_sid.c 		request_error(state);
state             157 source3/winbindd/winbindd_sid.c 	sendto_domain(state, domain);
state             165 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             169 source3/winbindd/winbindd_sid.c 	string_to_sid(&sid, state->request.data.sid);
state             173 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             174 source3/winbindd/winbindd_sid.c 		request_error(state);
state             178 source3/winbindd/winbindd_sid.c 	state->response.data.uid = uid;
state             179 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             187 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             191 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             193 source3/winbindd/winbindd_sid.c 			  "%s from string\n", state->request.data.sid));
state             194 source3/winbindd/winbindd_sid.c 		request_error(state);
state             200 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             206 source3/winbindd/winbindd_sid.c 			 state->request.data.sid));
state             211 source3/winbindd/winbindd_sid.c 	winbindd_sid2uid_async(state->mem_ctx, &sid, sid2uid_recv, state);
state             220 source3/winbindd/winbindd_sid.c 	request_error(state);
state             231 source3/winbindd/winbindd_sid.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             233 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: sid to uid %s\n", (unsigned long)state->pid,
state             234 source3/winbindd/winbindd_sid.c 		  state->request.data.sid));
state             236 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             238 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             239 source3/winbindd/winbindd_sid.c 		request_error(state);
state             252 source3/winbindd/winbindd_sid.c 			request_error(state);
state             256 source3/winbindd/winbindd_sid.c 		state->response.data.uid = uid;
state             257 source3/winbindd/winbindd_sid.c 		request_ok(state);
state             266 source3/winbindd/winbindd_sid.c 	winbindd_lookupsid_async( state->mem_ctx, &sid, sid2uid_lookupsid_recv, state );
state             274 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             278 source3/winbindd/winbindd_sid.c 	string_to_sid(&sid, state->request.data.sid);
state             282 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             283 source3/winbindd/winbindd_sid.c 		request_error(state);
state             287 source3/winbindd/winbindd_sid.c 	state->response.data.gid = gid;
state             288 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             296 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             300 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             302 source3/winbindd/winbindd_sid.c 			  "%s from string\n", state->request.data.sid));
state             303 source3/winbindd/winbindd_sid.c 		request_error(state);
state             309 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             318 source3/winbindd/winbindd_sid.c 			 state->request.data.sid));
state             323 source3/winbindd/winbindd_sid.c 	winbindd_sid2gid_async(state->mem_ctx, &sid, sid2gid_recv, state);
state             332 source3/winbindd/winbindd_sid.c 	request_error(state);
state             343 source3/winbindd/winbindd_sid.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             345 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: sid to gid %s\n", (unsigned long)state->pid,
state             346 source3/winbindd/winbindd_sid.c 		  state->request.data.sid));
state             348 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             350 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             351 source3/winbindd/winbindd_sid.c 		request_error(state);
state             364 source3/winbindd/winbindd_sid.c 			request_error(state);
state             368 source3/winbindd/winbindd_sid.c 		state->response.data.gid = gid;
state             369 source3/winbindd/winbindd_sid.c 		request_ok(state);
state             378 source3/winbindd/winbindd_sid.c 	winbindd_lookupsid_async( state->mem_ctx, &sid, sid2gid_lookupsid_recv,
state             379 source3/winbindd/winbindd_sid.c 				  state );
state             384 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             389 source3/winbindd/winbindd_sid.c 		request_error(state);
state             393 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             401 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: set id map\n", (unsigned long)state->pid));
state             403 source3/winbindd/winbindd_sid.c 	if ( ! state->privileged) {
state             405 source3/winbindd/winbindd_sid.c 		request_error(state);
state             409 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.dual_idmapset.sid)) {
state             411 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             412 source3/winbindd/winbindd_sid.c 		request_error(state);
state             417 source3/winbindd/winbindd_sid.c 	map.xid.id = state->request.data.dual_idmapset.id;
state             418 source3/winbindd/winbindd_sid.c 	map.xid.type = state->request.data.dual_idmapset.type;
state             420 source3/winbindd/winbindd_sid.c 	winbindd_set_mapping_async(state->mem_ctx, &map,
state             421 source3/winbindd/winbindd_sid.c 			set_mapping_recv, state);
state             426 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             431 source3/winbindd/winbindd_sid.c 		request_error(state);
state             435 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             443 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: remove id map\n", (unsigned long)state->pid));
state             445 source3/winbindd/winbindd_sid.c 	if ( ! state->privileged) {
state             447 source3/winbindd/winbindd_sid.c 		request_error(state);
state             451 source3/winbindd/winbindd_sid.c 	if (!string_to_sid(&sid, state->request.data.dual_idmapset.sid)) {
state             453 source3/winbindd/winbindd_sid.c 			  state->request.data.sid));
state             454 source3/winbindd/winbindd_sid.c 		request_error(state);
state             459 source3/winbindd/winbindd_sid.c 	map.xid.id = state->request.data.dual_idmapset.id;
state             460 source3/winbindd/winbindd_sid.c 	map.xid.type = state->request.data.dual_idmapset.type;
state             462 source3/winbindd/winbindd_sid.c 	winbindd_remove_mapping_async(state->mem_ctx, &map,
state             463 source3/winbindd/winbindd_sid.c 			remove_mapping_recv, state);
state             468 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             473 source3/winbindd/winbindd_sid.c 		request_error(state);
state             477 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             484 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: set hwm\n", (unsigned long)state->pid));
state             486 source3/winbindd/winbindd_sid.c 	if ( ! state->privileged) {
state             488 source3/winbindd/winbindd_sid.c 		request_error(state);
state             492 source3/winbindd/winbindd_sid.c 	xid.id = state->request.data.dual_idmapset.id;
state             493 source3/winbindd/winbindd_sid.c 	xid.type = state->request.data.dual_idmapset.type;
state             495 source3/winbindd/winbindd_sid.c 	winbindd_set_hwm_async(state->mem_ctx, &xid, set_hwm_recv, state);
state             502 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             508 source3/winbindd/winbindd_sid.c 		idmap_cache_set_sid2uid(&sid, state->request.data.uid);
state             509 source3/winbindd/winbindd_sid.c 		request_error(state);
state             514 source3/winbindd/winbindd_sid.c 		  (unsigned long)(state->request.data.uid), sidstr));
state             516 source3/winbindd/winbindd_sid.c 	idmap_cache_set_sid2uid(&sid, state->request.data.uid);
state             517 source3/winbindd/winbindd_sid.c 	fstrcpy(state->response.data.sid.sid, sidstr);
state             518 source3/winbindd/winbindd_sid.c 	state->response.data.sid.type = SID_NAME_USER;
state             519 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             528 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: uid to sid %lu\n", (unsigned long)state->pid, 
state             529 source3/winbindd/winbindd_sid.c 		  (unsigned long)state->request.data.uid));
state             531 source3/winbindd/winbindd_sid.c 	if (idmap_cache_find_uid2sid(state->request.data.uid, &sid,
state             534 source3/winbindd/winbindd_sid.c 			   (int)state->request.data.uid,
state             542 source3/winbindd/winbindd_sid.c 			request_error(state);
state             546 source3/winbindd/winbindd_sid.c 		sid_to_fstring(state->response.data.sid.sid, &sid);
state             547 source3/winbindd/winbindd_sid.c 		request_ok(state);
state             553 source3/winbindd/winbindd_sid.c 	winbindd_uid2sid_async(state->mem_ctx, state->request.data.uid, uid2sid_recv, state);
state             560 source3/winbindd/winbindd_sid.c 	struct winbindd_cli_state *state =
state             566 source3/winbindd/winbindd_sid.c 		idmap_cache_set_sid2gid(&sid, state->request.data.gid);
state             567 source3/winbindd/winbindd_sid.c 		request_error(state);
state             571 source3/winbindd/winbindd_sid.c 		  (unsigned long)(state->request.data.gid), sidstr));
state             573 source3/winbindd/winbindd_sid.c 	idmap_cache_set_sid2gid(&sid, state->request.data.gid);
state             574 source3/winbindd/winbindd_sid.c 	fstrcpy(state->response.data.sid.sid, sidstr);
state             575 source3/winbindd/winbindd_sid.c 	state->response.data.sid.type = SID_NAME_DOM_GRP;
state             576 source3/winbindd/winbindd_sid.c 	request_ok(state);
state             586 source3/winbindd/winbindd_sid.c 	DEBUG(3, ("[%5lu]: gid to sid %lu\n", (unsigned long)state->pid, 
state             587 source3/winbindd/winbindd_sid.c 		  (unsigned long)state->request.data.gid));
state             589 source3/winbindd/winbindd_sid.c 	if (idmap_cache_find_gid2sid(state->request.data.gid, &sid,
state             592 source3/winbindd/winbindd_sid.c 			   (int)state->request.data.gid,
state             600 source3/winbindd/winbindd_sid.c 			request_error(state);
state             604 source3/winbindd/winbindd_sid.c 		sid_to_fstring(state->response.data.sid.sid, &sid);
state             605 source3/winbindd/winbindd_sid.c 		request_ok(state);
state             611 source3/winbindd/winbindd_sid.c 	winbindd_gid2sid_async(state->mem_ctx, state->request.data.gid, gid2sid_recv, state);
state             616 source3/winbindd/winbindd_sid.c 	if ( !state->privileged ) {
state             619 source3/winbindd/winbindd_sid.c 		request_error(state);
state             623 source3/winbindd/winbindd_sid.c 	sendto_child(state, idmap_child());
state             634 source3/winbindd/winbindd_sid.c 	state->response.data.uid = xid.id;
state             640 source3/winbindd/winbindd_sid.c 	if ( !state->privileged ) {
state             643 source3/winbindd/winbindd_sid.c 		request_error(state);
state             647 source3/winbindd/winbindd_sid.c 	sendto_child(state, idmap_child());
state             658 source3/winbindd/winbindd_sid.c 	state->response.data.gid = xid.id;
state             163 source3/winbindd/winbindd_user.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             165 source3/winbindd/winbindd_user.c 	DEBUG(3, ("[%5lu]: lookupsid %s\n", (unsigned long)state->pid,
state             166 source3/winbindd/winbindd_user.c 		  state->request.data.sid));
state             168 source3/winbindd/winbindd_user.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             169 source3/winbindd/winbindd_user.c 		DEBUG(5, ("%s not a SID\n", state->request.data.sid));
state             173 source3/winbindd/winbindd_user.c 	status = domain->methods->query_user(domain, state->mem_ctx,
state             181 source3/winbindd/winbindd_user.c 	fstrcpy(state->response.data.user_info.acct_name, user_info.acct_name);
state             182 source3/winbindd/winbindd_user.c 	fstrcpy(state->response.data.user_info.full_name, user_info.full_name);
state             183 source3/winbindd/winbindd_user.c 	fstrcpy(state->response.data.user_info.homedir, user_info.homedir);
state             184 source3/winbindd/winbindd_user.c 	fstrcpy(state->response.data.user_info.shell, user_info.shell);
state             185 source3/winbindd/winbindd_user.c 	state->response.data.user_info.primary_gid = user_info.primary_gid;
state             187 source3/winbindd/winbindd_user.c 				&state->response.data.user_info.group_rid)) {
state             197 source3/winbindd/winbindd_user.c 	struct winbindd_cli_state *state;
state             225 source3/winbindd/winbindd_user.c 	s = TALLOC_ZERO_P(state->mem_ctx, struct getpwsid_state);
state             231 source3/winbindd/winbindd_user.c 	s->state = state;
state             241 source3/winbindd/winbindd_user.c 	query_user_async(s->state->mem_ctx, s->domain, sid,
state             246 source3/winbindd/winbindd_user.c 	request_error(state);
state             266 source3/winbindd/winbindd_user.c 		request_error(s->state);
state             282 source3/winbindd/winbindd_user.c 			request_error(s->state);
state             285 source3/winbindd/winbindd_user.c 		winbindd_lookup_name_by_sid(s->state->mem_ctx, domain,
state             293 source3/winbindd/winbindd_user.c 			request_error(s->state);
state             301 source3/winbindd/winbindd_user.c 	s->username = talloc_strdup(s->state->mem_ctx, username);
state             303 source3/winbindd/winbindd_user.c 	nt_status = normalize_name_map(s->state->mem_ctx, s->domain,
state             321 source3/winbindd/winbindd_user.c 	s->fullname = talloc_strdup(s->state->mem_ctx, full_name);
state             322 source3/winbindd/winbindd_user.c 	s->homedir = talloc_strdup(s->state->mem_ctx, homedir);
state             323 source3/winbindd/winbindd_user.c 	s->shell = talloc_strdup(s->state->mem_ctx, shell);
state             328 source3/winbindd/winbindd_user.c 	winbindd_sid2uid_async(s->state->mem_ctx, &s->user_sid,
state             340 source3/winbindd/winbindd_user.c 		request_error(s->state);
state             345 source3/winbindd/winbindd_user.c 	winbindd_sid2gid_async(s->state->mem_ctx, &s->group_sid,
state             374 source3/winbindd/winbindd_user.c 	pw = &s->state->response.data.pw;
state             409 source3/winbindd/winbindd_user.c 	request_ok(s->state);
state             413 source3/winbindd/winbindd_user.c 	request_error(s->state);
state             430 source3/winbindd/winbindd_user.c 	domuser = state->request.data.username;
state             431 source3/winbindd/winbindd_user.c 	dusize = sizeof(state->request.data.username);
state             437 source3/winbindd/winbindd_user.c 		  (unsigned long)state->pid,
state             440 source3/winbindd/winbindd_user.c 	nt_status = normalize_name_unmap(state->mem_ctx, domuser,
state             454 source3/winbindd/winbindd_user.c 		request_error(state);
state             467 source3/winbindd/winbindd_user.c 			request_error(state);
state             477 source3/winbindd/winbindd_user.c 		request_error(state);
state             483 source3/winbindd/winbindd_user.c 	winbindd_lookupname_async(state->mem_ctx, domname, username,
state             485 source3/winbindd/winbindd_user.c 				  state);
state             491 source3/winbindd/winbindd_user.c 	struct winbindd_cli_state *state =
state             494 source3/winbindd/winbindd_user.c 	char *domuser = state->request.data.username;
state             498 source3/winbindd/winbindd_user.c 		request_error(state);
state             504 source3/winbindd/winbindd_user.c 		request_error(state);
state             512 source3/winbindd/winbindd_user.c 	getpwsid_queryuser(state, sid);
state             517 source3/winbindd/winbindd_user.c 	struct winbindd_cli_state *state =
state             523 source3/winbindd/winbindd_user.c 			  (unsigned long)(state->request.data.uid)));
state             524 source3/winbindd/winbindd_user.c 		request_error(state);
state             529 source3/winbindd/winbindd_user.c 		  (unsigned long)(state->request.data.uid), sid));
state             534 source3/winbindd/winbindd_user.c 		request_error(state);
state             538 source3/winbindd/winbindd_user.c 	getpwsid_queryuser(state, &user_sid);
state             544 source3/winbindd/winbindd_user.c 	uid_t uid = state->request.data.uid;
state             547 source3/winbindd/winbindd_user.c 		  (unsigned long)state->pid,
state             553 source3/winbindd/winbindd_user.c 	winbindd_uid2sid_async(state->mem_ctx, uid, getpwuid_recv, state);
state             562 source3/winbindd/winbindd_user.c 	state->request.data.sid[sizeof(state->request.data.sid)-1]='\0';
state             564 source3/winbindd/winbindd_user.c 	DEBUG(3, ("[%5lu]: getpwsid %s\n", (unsigned long)state->pid,
state             565 source3/winbindd/winbindd_user.c 		  state->request.data.sid));
state             567 source3/winbindd/winbindd_user.c 	if (!string_to_sid(&sid, state->request.data.sid)) {
state             568 source3/winbindd/winbindd_user.c 		DEBUG(5, ("%s not a SID\n", state->request.data.sid));
state             569 source3/winbindd/winbindd_user.c 		request_error(state);
state             573 source3/winbindd/winbindd_user.c 	getpwsid_queryuser(state, &sid);
state             586 source3/winbindd/winbindd_user.c 	DEBUG(3, ("[%5lu]: setpwent\n", (unsigned long)state->pid));
state             596 source3/winbindd/winbindd_user.c 	if (state->getpwent_state != NULL) {
state             597 source3/winbindd/winbindd_user.c 		free_getent_state(state->getpwent_state);
state             598 source3/winbindd/winbindd_user.c 		state->getpwent_state = NULL;
state             629 source3/winbindd/winbindd_user.c 		DLIST_ADD(state->getpwent_state, domain_state);
state             632 source3/winbindd/winbindd_user.c 	state->getpwent_initialized = True;
state             638 source3/winbindd/winbindd_user.c 	if (winbindd_setpwent_internal(state)) {
state             639 source3/winbindd/winbindd_user.c 		request_ok(state);
state             641 source3/winbindd/winbindd_user.c 		request_error(state);
state             649 source3/winbindd/winbindd_user.c 	DEBUG(3, ("[%5lu]: endpwent\n", (unsigned long)state->pid));
state             651 source3/winbindd/winbindd_user.c 	free_getent_state(state->getpwent_state);
state             652 source3/winbindd/winbindd_user.c 	state->getpwent_initialized = False;
state             653 source3/winbindd/winbindd_user.c 	state->getpwent_state = NULL;
state             654 source3/winbindd/winbindd_user.c 	request_ok(state);
state             764 source3/winbindd/winbindd_user.c 	DEBUG(3, ("[%5lu]: getpwent\n", (unsigned long)state->pid));
state             769 source3/winbindd/winbindd_user.c 		request_error(state);
state             775 source3/winbindd/winbindd_user.c 	num_users = MIN(MAX_GETPWENT_USERS, state->request.data.num_entries);
state             778 source3/winbindd/winbindd_user.c 		request_error(state);
state             784 source3/winbindd/winbindd_user.c 		request_error(state);
state             788 source3/winbindd/winbindd_user.c 	state->response.extra_data.data = user_list;
state             792 source3/winbindd/winbindd_user.c 	if (!state->getpwent_initialized)
state             793 source3/winbindd/winbindd_user.c 		winbindd_setpwent_internal(state);
state             795 source3/winbindd/winbindd_user.c 	if (!(ent = state->getpwent_state)) {
state             796 source3/winbindd/winbindd_user.c 		request_error(state);
state             811 source3/winbindd/winbindd_user.c 			      !get_sam_user_entries(ent, state->mem_ctx)) {
state             819 source3/winbindd/winbindd_user.c 				DLIST_REMOVE(state->getpwent_state, ent);
state             836 source3/winbindd/winbindd_user.c 			state->mem_ctx,
state             851 source3/winbindd/winbindd_user.c 			state->response.data.num_entries++;
state             852 source3/winbindd/winbindd_user.c 			state->response.length += sizeof(struct winbindd_pw);
state             865 source3/winbindd/winbindd_user.c 		request_ok(state);
state             867 source3/winbindd/winbindd_user.c 		request_error(state);
state             873 source3/winbindd/winbindd_user.c 	winbindd_list_ent(state, LIST_USERS);
state             262 source3/winbindd/winbindd_util.c 	struct trustdom_state *state;
state             272 source3/winbindd/winbindd_util.c 	state = TALLOC_P(mem_ctx, struct trustdom_state);
state             274 source3/winbindd/winbindd_util.c 	if ((request == NULL) || (response == NULL) || (state == NULL)) {
state             280 source3/winbindd/winbindd_util.c 	state->mem_ctx = mem_ctx;
state             281 source3/winbindd/winbindd_util.c 	state->response = response;
state             285 source3/winbindd/winbindd_util.c 	state->primary = domain->primary;
state             286 source3/winbindd/winbindd_util.c 	state->forest_root = ((domain->domain_flags & fr_flags) == fr_flags );
state             292 source3/winbindd/winbindd_util.c 			     trustdom_recv, state);
state             297 source3/winbindd/winbindd_util.c 	struct trustdom_state *state =
state             299 source3/winbindd/winbindd_util.c 	struct winbindd_response *response = state->response;
state             304 source3/winbindd/winbindd_util.c 		talloc_destroy(state->mem_ctx);
state             386 source3/winbindd/winbindd_util.c 	if ( state->primary ) {
state             390 source3/winbindd/winbindd_util.c 		if ( !state->forest_root )
state             395 source3/winbindd/winbindd_util.c 	} else if ( state->forest_root ) {
state             402 source3/winbindd/winbindd_util.c 	talloc_destroy(state->mem_ctx);
state             592 source3/winbindd/winbindd_util.c 	struct init_child_state *state;
state             603 source3/winbindd/winbindd_util.c 	state = TALLOC_P(mem_ctx, struct init_child_state);
state             605 source3/winbindd/winbindd_util.c 	if ((request == NULL) || (response == NULL) || (state == NULL)) {
state             614 source3/winbindd/winbindd_util.c 	state->mem_ctx = mem_ctx;
state             615 source3/winbindd/winbindd_util.c 	state->domain = domain;
state             616 source3/winbindd/winbindd_util.c 	state->request = request;
state             617 source3/winbindd/winbindd_util.c 	state->response = response;
state             618 source3/winbindd/winbindd_util.c 	state->continuation = continuation;
state             619 source3/winbindd/winbindd_util.c 	state->private_data = private_data;
state             628 source3/winbindd/winbindd_util.c 			      init_child_recv, state);
state             640 source3/winbindd/winbindd_util.c 			     init_child_getdc_recv, state);
state             646 source3/winbindd/winbindd_util.c 	struct init_child_state *state =
state             652 source3/winbindd/winbindd_util.c 	if (success && (state->response->result == WINBINDD_OK)) {
state             653 source3/winbindd/winbindd_util.c 		dcname = state->response->data.dc_name;
state             656 source3/winbindd/winbindd_util.c 	state->request->cmd = WINBINDD_INIT_CONNECTION;
state             657 source3/winbindd/winbindd_util.c 	fstrcpy(state->request->domain_name, state->domain->name);
state             658 source3/winbindd/winbindd_util.c 	state->request->data.init_conn.is_primary = False;
state             659 source3/winbindd/winbindd_util.c 	fstrcpy(state->request->data.init_conn.dcname, dcname);
state             661 source3/winbindd/winbindd_util.c 	async_request(state->mem_ctx, &state->domain->child,
state             662 source3/winbindd/winbindd_util.c 		      state->request, state->response,
state             663 source3/winbindd/winbindd_util.c 		      init_child_recv, state);
state             668 source3/winbindd/winbindd_util.c 	struct init_child_state *state =
state             672 source3/winbindd/winbindd_util.c 		  state->domain->name));
state             674 source3/winbindd/winbindd_util.c 	if ((!success) || (state->response->result != WINBINDD_OK)) {
state             676 source3/winbindd/winbindd_util.c 		state->continuation(state->private_data, False);
state             677 source3/winbindd/winbindd_util.c 		talloc_destroy(state->mem_ctx);
state             681 source3/winbindd/winbindd_util.c 	fstrcpy(state->domain->name,
state             682 source3/winbindd/winbindd_util.c 		state->response->data.domain_info.name);
state             683 source3/winbindd/winbindd_util.c 	fstrcpy(state->domain->alt_name,
state             684 source3/winbindd/winbindd_util.c 		state->response->data.domain_info.alt_name);
state             685 source3/winbindd/winbindd_util.c 	if (!string_to_sid(&state->domain->sid,
state             686 source3/winbindd/winbindd_util.c 		      state->response->data.domain_info.sid)) {
state             689 source3/winbindd/winbindd_util.c 			state->response->data.domain_info.sid));
state             690 source3/winbindd/winbindd_util.c 		state->continuation(state->private_data, False);
state             691 source3/winbindd/winbindd_util.c 		talloc_destroy(state->mem_ctx);
state             695 source3/winbindd/winbindd_util.c 	state->domain->native_mode =
state             696 source3/winbindd/winbindd_util.c 		state->response->data.domain_info.native_mode;
state             697 source3/winbindd/winbindd_util.c 	state->domain->active_directory =
state             698 source3/winbindd/winbindd_util.c 		state->response->data.domain_info.active_directory;
state             700 source3/winbindd/winbindd_util.c 	init_dc_connection(state->domain);
state             702 source3/winbindd/winbindd_util.c 	if (state->continuation != NULL)
state             703 source3/winbindd/winbindd_util.c 		state->continuation(state->private_data, True);
state             704 source3/winbindd/winbindd_util.c 	talloc_destroy(state->mem_ctx);
state             711 source3/winbindd/winbindd_util.c 	state->request.domain_name
state             712 source3/winbindd/winbindd_util.c 		[sizeof(state->request.domain_name)-1]='\0';
state             713 source3/winbindd/winbindd_util.c 	state->request.data.init_conn.dcname
state             714 source3/winbindd/winbindd_util.c 		[sizeof(state->request.data.init_conn.dcname)-1]='\0';
state             716 source3/winbindd/winbindd_util.c 	if (strlen(state->request.data.init_conn.dcname) > 0) {
state             717 source3/winbindd/winbindd_util.c 		fstrcpy(domain->dcname, state->request.data.init_conn.dcname);
state             732 source3/winbindd/winbindd_util.c 	fstrcpy(state->response.data.domain_info.name, domain->name);
state             733 source3/winbindd/winbindd_util.c 	fstrcpy(state->response.data.domain_info.alt_name, domain->alt_name);
state             734 source3/winbindd/winbindd_util.c 	sid_to_fstring(state->response.data.domain_info.sid, &domain->sid);
state             736 source3/winbindd/winbindd_util.c 	state->response.data.domain_info.native_mode
state             738 source3/winbindd/winbindd_util.c 	state->response.data.domain_info.active_directory
state             740 source3/winbindd/winbindd_util.c 	state->response.data.domain_info.primary
state            1092 source3/winbindd/winbindd_util.c 	temp = state;
state            1099 source3/winbindd/winbindd_util.c 		SAFE_FREE(state->sam_entries);
state            1100 source3/winbindd/winbindd_util.c 		DLIST_REMOVE(state, state);
state             153 source3/winbindd/winbindd_wins.c 	state->request.data.winsreq[sizeof(state->request.data.winsreq)-1]='\0';
state             155 source3/winbindd/winbindd_wins.c 	DEBUG(3, ("[%5lu]: wins_byip %s\n", (unsigned long)state->pid,
state             156 source3/winbindd/winbindd_wins.c 		state->request.data.winsreq));
state             161 source3/winbindd/winbindd_wins.c 	if ((status = lookup_byaddr_backend(state->request.data.winsreq, &count))){
state             162 source3/winbindd/winbindd_wins.c 	    size = strlen(state->request.data.winsreq);
state             165 source3/winbindd/winbindd_wins.c 		request_error(state);
state             168 source3/winbindd/winbindd_wins.c 	    fstrcat(response,state->request.data.winsreq);
state             177 source3/winbindd/winbindd_wins.c 			    request_error(state);
state             188 source3/winbindd/winbindd_wins.c 	fstrcpy(state->response.data.winsresp,response);
state             189 source3/winbindd/winbindd_wins.c 	request_ok(state);
state             202 source3/winbindd/winbindd_wins.c 	state->request.data.winsreq[sizeof(state->request.data.winsreq)-1]='\0';
state             204 source3/winbindd/winbindd_wins.c 	DEBUG(3, ("[%5lu]: wins_byname %s\n", (unsigned long)state->pid,
state             205 source3/winbindd/winbindd_wins.c 		state->request.data.winsreq));
state             210 source3/winbindd/winbindd_wins.c 	if ((ip_list = lookup_byname_backend(state->request.data.winsreq,&count))){
state             216 source3/winbindd/winbindd_wins.c 				request_error(state);
state             230 source3/winbindd/winbindd_wins.c 		size = strlen(state->request.data.winsreq) + strlen(response);
state             233 source3/winbindd/winbindd_wins.c 		    request_error(state);
state             236 source3/winbindd/winbindd_wins.c 		fstrcat(response,state->request.data.winsreq);
state             240 source3/winbindd/winbindd_wins.c 		request_error(state);
state             244 source3/winbindd/winbindd_wins.c 	fstrcpy(state->response.data.winsresp,response);
state             246 source3/winbindd/winbindd_wins.c 	request_ok(state);
state             189 source4/auth/credentials/pycredentials.c 	int state;
state             190 source4/auth/credentials/pycredentials.c 	if (!PyArg_ParseTuple(args, "i", &state))
state             193 source4/auth/credentials/pycredentials.c 	cli_credentials_set_kerberos_state(PyCredentials_AsCliCredentials(self), state);
state              50 source4/auth/gensec/schannel.c 	struct schannel_state *state = (struct schannel_state *)gensec_security->private_data;
state              63 source4/auth/gensec/schannel.c 		if (state->state != SCHANNEL_STATE_START) {
state              68 source4/auth/gensec/schannel.c 		state->creds = talloc_reference(state, cli_credentials_get_netlogon_creds(gensec_security->credentials));
state              97 source4/auth/gensec/schannel.c 		state->state = SCHANNEL_STATE_UPDATE_1;
state             102 source4/auth/gensec/schannel.c 		if (state->state != SCHANNEL_STATE_START) {
state             140 source4/auth/gensec/schannel.c 		state->creds = talloc_reference(state, creds);
state             156 source4/auth/gensec/schannel.c 		state->state = SCHANNEL_STATE_UPDATE_1;
state             174 source4/auth/gensec/schannel.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             176 source4/auth/gensec/schannel.c 	*creds = talloc_reference(mem_ctx, state->creds);
state             192 source4/auth/gensec/schannel.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             193 source4/auth/gensec/schannel.c 	return auth_anonymous_session_info(state, gensec_security->event_ctx, gensec_security->settings->lp_ctx, _session_info);
state             198 source4/auth/gensec/schannel.c 	struct schannel_state *state;
state             200 source4/auth/gensec/schannel.c 	state = talloc(gensec_security, struct schannel_state);
state             201 source4/auth/gensec/schannel.c 	if (!state) {
state             205 source4/auth/gensec/schannel.c 	state->state = SCHANNEL_STATE_START;
state             206 source4/auth/gensec/schannel.c 	state->seq_num = 0;
state             207 source4/auth/gensec/schannel.c 	gensec_security->private_data = state;
state             215 source4/auth/gensec/schannel.c 	struct schannel_state *state;
state             222 source4/auth/gensec/schannel.c 	state = (struct schannel_state *)gensec_security->private_data;
state             223 source4/auth/gensec/schannel.c 	state->initiator = false;
state             231 source4/auth/gensec/schannel.c 	struct schannel_state *state;
state             238 source4/auth/gensec/schannel.c 	state = (struct schannel_state *)gensec_security->private_data;
state             239 source4/auth/gensec/schannel.c 	state->initiator = true;
state              31 source4/auth/gensec/schannel.h 	enum schannel_position state;
state              45 source4/auth/gensec/schannel_sign.c 	hmac_md5(state->creds->session_key, zeros, sizeof(zeros), digest1);
state              49 source4/auth/gensec/schannel_sign.c 	state->seq_num++;
state             110 source4/auth/gensec/schannel_sign.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             124 source4/auth/gensec/schannel_sign.c 	RSIVAL(seq_num, 0, state->seq_num);
state             125 source4/auth/gensec/schannel_sign.c 	SIVAL(seq_num, 4, state->initiator?0:0x80);
state             127 source4/auth/gensec/schannel_sign.c 	netsec_get_sealing_key(state->creds->session_key, seq_num, sealing_key);
state             131 source4/auth/gensec/schannel_sign.c 	schannel_digest(state->creds->session_key, 
state             141 source4/auth/gensec/schannel_sign.c 	netsec_deal_with_seq_num(state, digest_final, seq_num);
state             161 source4/auth/gensec/schannel_sign.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             172 source4/auth/gensec/schannel_sign.c 	RSIVAL(seq_num, 0, state->seq_num);
state             173 source4/auth/gensec/schannel_sign.c 	SIVAL(seq_num, 4, state->initiator?0:0x80);
state             176 source4/auth/gensec/schannel_sign.c 	dump_data_pw("sess_key:\n", state->creds->session_key, 16);
state             178 source4/auth/gensec/schannel_sign.c 	schannel_digest(state->creds->session_key, 
state             182 source4/auth/gensec/schannel_sign.c 	netsec_deal_with_seq_num(state, digest_final, seq_num);
state             209 source4/auth/gensec/schannel_sign.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             219 source4/auth/gensec/schannel_sign.c 	RSIVAL(seq_num, 0, state->seq_num);
state             220 source4/auth/gensec/schannel_sign.c 	SIVAL(seq_num, 4, state->initiator?0x80:0);
state             222 source4/auth/gensec/schannel_sign.c 	schannel_digest(state->creds->session_key, 
state             226 source4/auth/gensec/schannel_sign.c 	netsec_get_sealing_key(state->creds->session_key, seq_num, sealing_key);
state             230 source4/auth/gensec/schannel_sign.c 	netsec_deal_with_seq_num(state, digest_final, seq_num);
state             257 source4/auth/gensec/schannel_sign.c 	struct schannel_state *state = talloc_get_type(gensec_security->private_data, struct schannel_state);
state             263 source4/auth/gensec/schannel_sign.c 	RSIVAL(seq_num, 0, state->seq_num);
state             264 source4/auth/gensec/schannel_sign.c 	SIVAL(seq_num, 4, state->initiator?0x80:0);
state             266 source4/auth/gensec/schannel_sign.c 	schannel_digest(state->creds->session_key, 
state             270 source4/auth/gensec/schannel_sign.c 	netsec_deal_with_seq_num(state, digest_final, seq_num);
state             432 source4/auth/gensec/socket.c 	new_sock->state = current_socket->state;
state             514 source4/client/client.c 	struct smbclient_context *ctx = (struct smbclient_context *)state;
state            2795 source4/client/client.c 	completion_remote_t *info = (completion_remote_t *)state;
state             135 source4/heimdal/lib/asn1/lex.c #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
state             135 source4/heimdal/lib/com_err/lex.c #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
state             247 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c     ctx->state = ACCEPTOR_READY;
state             614 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c 	ctx->state = ACCEPTOR_WAIT_FOR_DCESTYLE;
state             838 source4/heimdal/lib/gssapi/krb5/accept_sec_context.c     switch (ctx->state) {
state              79 source4/heimdal/lib/gssapi/krb5/gsskrb5_locl.h   } state;
state             126 source4/heimdal/lib/gssapi/krb5/init_sec_context.c     ctx->state			= state;
state             268 source4/heimdal/lib/gssapi/krb5/init_sec_context.c     ctx->state	= INITIATOR_READY;
state             655 source4/heimdal/lib/gssapi/krb5/init_sec_context.c 	ctx->state = INITIATOR_WAIT_FOR_MUTAL;
state             739 source4/heimdal/lib/gssapi/krb5/init_sec_context.c 			    ctx->state = INITIATOR_RESTART;
state             897 source4/heimdal/lib/gssapi/krb5/init_sec_context.c     switch (ctx->state) {
state             941 source4/heimdal/lib/gssapi/krb5/init_sec_context.c 	if (ctx->state == INITIATOR_RESTART)
state             957 source4/heimdal/lib/gssapi/krb5/init_sec_context.c 			    (int)ctx->state);
state              82 source4/heimdal/lib/hcrypto/md2.c 	x[i]      = m->state[i];
state              94 source4/heimdal/lib/hcrypto/md2.c     memcpy(m->state, x, 16);
state             136 source4/heimdal/lib/hcrypto/md2.c     memcpy(res, m->state, MD2_DIGEST_LENGTH);
state              54 source4/heimdal/lib/hcrypto/md2.h     unsigned char state[16]; /* lower 16 bytes of X */
state              46 source4/heimdal/lib/hcrypto/rc4.c   _t = k->state[x]; 				\
state              47 source4/heimdal/lib/hcrypto/rc4.c   k->state[x] = k->state[y]; 			\
state              48 source4/heimdal/lib/hcrypto/rc4.c   k->state[y] = _t;				\
state              57 source4/heimdal/lib/hcrypto/rc4.c 	key->state[i] = i;
state              59 source4/heimdal/lib/hcrypto/rc4.c 	j = (j + key->state[i] + data[i % len]) % 256;
state              75 source4/heimdal/lib/hcrypto/rc4.c 	y = (y + key->state[x]) % 256;
state              77 source4/heimdal/lib/hcrypto/rc4.c 	t = (key->state[x] + key->state[y]) % 256;
state              78 source4/heimdal/lib/hcrypto/rc4.c 	*out++ = key->state[t] ^ *in++;
state              42 source4/heimdal/lib/hcrypto/rc4.h     unsigned int state[256];
state             135 source4/heimdal/lib/hx509/sel-lex.c #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
state             512 source4/heimdal/lib/roken/resolve.c     struct __res_state state;
state             513 source4/heimdal/lib/roken/resolve.c     memset(&state, 0, sizeof(state));
state             514 source4/heimdal/lib/roken/resolve.c     if(res_ninit(&state))
state             531 source4/heimdal/lib/roken/resolve.c 	    state.options |= RES_DEBUG;
state             542 source4/heimdal/lib/roken/resolve.c 	    rk_res_free(&state);
state             547 source4/heimdal/lib/roken/resolve.c 	len = res_nsearch(&state, domain, rr_class, rr_type, reply, size);
state             560 source4/heimdal/lib/roken/resolve.c 	    rk_res_free(&state);
state             567 source4/heimdal/lib/roken/resolve.c     rk_res_free(&state);
state             614 source4/heimdal/lib/roken/resolve.c     int state[256 / sizeof(int)];
state             644 source4/heimdal/lib/roken/resolve.c     oldstate = initstate(time(NULL), (char*)state, sizeof(state));
state             612 source4/lib/com/dcom/main.c         c->state = COMPOSITE_STATE_DONE; /* this is workaround */
state             454 source4/lib/ldb/common/ldb.c 	if (handle->state == LDB_ASYNC_DONE) {
state             469 source4/lib/ldb/common/ldb.c 		if (handle->state == LDB_ASYNC_DONE ||
state             476 source4/lib/ldb/common/ldb.c 		while (handle->state != LDB_ASYNC_DONE) {
state             552 source4/lib/ldb/common/ldb.c 	req->handle->state = state;
state             614 source4/lib/ldb/common/ldb.c 	req->handle->state = LDB_ASYNC_DONE;
state             693 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_read_file_state *state =
state             695 source4/lib/ldb/common/ldb_ldif.c 	return fgetc(state->f);
state             700 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_read_file_state state;
state             701 source4/lib/ldb/common/ldb_ldif.c 	state.f = f;
state             702 source4/lib/ldb/common/ldb_ldif.c 	return ldb_ldif_read(ldb, fgetc_file, &state);
state             715 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_read_string_state *state =
state             717 source4/lib/ldb/common/ldb_ldif.c 	if (state->s[0] != 0) {
state             718 source4/lib/ldb/common/ldb_ldif.c 		return *state->s++;
state             725 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_read_string_state state;
state             727 source4/lib/ldb/common/ldb_ldif.c 	state.s = *s;
state             728 source4/lib/ldb/common/ldb_ldif.c 	ldif = ldb_ldif_read(ldb, fgetc_string, &state);
state             729 source4/lib/ldb/common/ldb_ldif.c 	*s = state.s;
state             745 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_write_file_state *state =
state             751 source4/lib/ldb/common/ldb_ldif.c 	ret = vfprintf(state->f, fmt, ap);
state             758 source4/lib/ldb/common/ldb_ldif.c 	struct ldif_write_file_state state;
state             759 source4/lib/ldb/common/ldb_ldif.c 	state.f = f;
state             760 source4/lib/ldb/common/ldb_ldif.c 	return ldb_ldif_write(ldb, fprintf_file, &state, ldif);
state             615 source4/lib/ldb/common/ldb_modules.c 	h->state = LDB_ASYNC_INIT;
state              52 source4/lib/ldb/include/ldb_private.h 	enum ldb_state state;
state             198 source4/lib/ldb/ldb_ildap/ldb_ildap.c 	if (ac->ireq->state == LDAP_REQUEST_PENDING) {
state            1520 source4/lib/ldb/ldb_tdb/ldb_index.c 	struct ldb_module *module = (struct ldb_module *)state;
state             381 source4/lib/ldb/ldb_tdb/ldb_search.c 	ac = talloc_get_type(state, struct ltdb_context);
state              47 source4/lib/socket/connect.c 	struct connect_state *state = talloc_get_type(result->private_data, 
state              50 source4/lib/socket/connect.c 	result->status = socket_connect(state->sock,
state              51 source4/lib/socket/connect.c 					state->my_address,
state              52 source4/lib/socket/connect.c 					state->server_address,
state              53 source4/lib/socket/connect.c 					state->flags);
state              62 source4/lib/socket/connect.c 			   socket_get_fd(state->sock),
state              79 source4/lib/socket/connect.c 	struct connect_state *state;
state              84 source4/lib/socket/connect.c 	state = talloc_zero(result, struct connect_state);
state              85 source4/lib/socket/connect.c 	if (composite_nomem(state, result)) return result;
state              86 source4/lib/socket/connect.c 	result->private_data = state;
state              88 source4/lib/socket/connect.c 	state->sock = talloc_reference(state, sock);
state              89 source4/lib/socket/connect.c 	if (composite_nomem(state->sock, result)) return result;
state              92 source4/lib/socket/connect.c 		void *ref = talloc_reference(state, my_address);
state              96 source4/lib/socket/connect.c 		state->my_address = my_address;
state             100 source4/lib/socket/connect.c 		void *ref = talloc_reference(state, server_address);
state             104 source4/lib/socket/connect.c 		state->server_address = server_address;
state             107 source4/lib/socket/connect.c 	state->flags = flags;
state             125 source4/lib/socket/connect.c 	struct connect_state *state = talloc_get_type(result->private_data,
state             128 source4/lib/socket/connect.c 	result->status = socket_connect_complete(state->sock, state->flags);
state              79 source4/lib/socket/connect_multi.c 	result->state = COMPOSITE_STATE_IN_PROGRESS;
state             133 source4/lib/socket/connect_multi.c 	struct connect_one_state *state;
state             144 source4/lib/socket/connect_multi.c 	state = talloc(multi, struct connect_one_state);
state             145 source4/lib/socket/connect_multi.c 	if (composite_nomem(state, result)) return;
state             147 source4/lib/socket/connect_multi.c 	state->result = result;
state             148 source4/lib/socket/connect_multi.c 	result->status = socket_create("ipv4", SOCKET_TYPE_STREAM, &state->sock, 0);
state             152 source4/lib/socket/connect_multi.c 	state->addr = socket_address_from_strings(state, state->sock->backend_name, 
state             154 source4/lib/socket/connect_multi.c 	if (composite_nomem(state->addr, result)) return;
state             156 source4/lib/socket/connect_multi.c 	talloc_steal(state, state->sock);
state             158 source4/lib/socket/connect_multi.c 	creq = socket_connect_send(state->sock, NULL, 
state             159 source4/lib/socket/connect_multi.c 				   state->addr, 0,
state             162 source4/lib/socket/connect_multi.c 	talloc_steal(state, creq);
state             164 source4/lib/socket/connect_multi.c 	composite_continue(result, creq, continue_one, state);
state             173 source4/lib/socket/connect_multi.c 		event_add_timed(result->event_ctx, state,
state             216 source4/lib/socket/connect_multi.c 	struct connect_one_state *state = talloc_get_type(creq->async.private_data, 
state             218 source4/lib/socket/connect_multi.c 	struct composite_context *result = state->result;
state             227 source4/lib/socket/connect_multi.c 		multi->sock = talloc_steal(multi, state->sock);
state             228 source4/lib/socket/connect_multi.c 		multi->result_port = state->addr->port;
state             231 source4/lib/socket/connect_multi.c 	talloc_free(state);
state              61 source4/lib/socket/socket.c 	(*new_sock)->state = SOCKET_STATE_UNDEFINED;
state             118 source4/lib/socket/socket.c 	if (sock->state != SOCKET_STATE_UNDEFINED) {
state             144 source4/lib/socket/socket.c 	if (sock->state != SOCKET_STATE_UNDEFINED) {
state             166 source4/lib/socket/socket.c 	if (sock->state != SOCKET_STATE_SERVER_LISTEN) {
state             190 source4/lib/socket/socket.c 	if (sock->state != SOCKET_STATE_CLIENT_CONNECTED &&
state             191 source4/lib/socket/socket.c 	    sock->state != SOCKET_STATE_SERVER_CONNECTED &&
state             237 source4/lib/socket/socket.c 	if (sock->state != SOCKET_STATE_CLIENT_CONNECTED &&
state             238 source4/lib/socket/socket.c 	    sock->state != SOCKET_STATE_SERVER_CONNECTED) {
state             280 source4/lib/socket/socket.c 	if (sock->state == SOCKET_STATE_CLIENT_CONNECTED ||
state             281 source4/lib/socket/socket.c 	    sock->state == SOCKET_STATE_SERVER_CONNECTED) {
state             116 source4/lib/socket/socket.h 	enum socket_state state;
state              82 source4/lib/socket/socket_ip.c 	sock->state = SOCKET_STATE_CLIENT_CONNECTED;
state             202 source4/lib/socket/socket_ip.c 	sock->state= SOCKET_STATE_SERVER_LISTEN;
state             244 source4/lib/socket/socket_ip.c 	(*new_sock)->state		= SOCKET_STATE_SERVER_CONNECTED;
state             707 source4/lib/socket/socket_ip.c 	sock->state= SOCKET_STATE_SERVER_LISTEN;
state             749 source4/lib/socket/socket_ip.c 	(*new_sock)->state		= SOCKET_STATE_SERVER_CONNECTED;
state              91 source4/lib/socket/socket_unix.c 	sock->state = SOCKET_STATE_CLIENT_CONNECTED;
state             170 source4/lib/socket/socket_unix.c 	sock->state = SOCKET_STATE_SERVER_LISTEN;
state             208 source4/lib/socket/socket_unix.c 	(*new_sock)->state		= SOCKET_STATE_SERVER_CONNECTED;
state             529 source4/lib/tls/tls.c 	new_sock->state = SOCKET_STATE_SERVER_CONNECTED;
state             597 source4/lib/tls/tls.c 	new_sock->state = SOCKET_STATE_CLIENT_CONNECTED;
state             890 source4/lib/wmi/wmi_wrap.c          PyGILState_STATE state;
state             892 source4/lib/wmi/wmi_wrap.c          void end() { if (status) { PyGILState_Release(state); status = false;} }
state             893 source4/lib/wmi/wmi_wrap.c          SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
state              49 source4/libcli/cldap/cldap.c 	if (req->state == CLDAP_REQUEST_SEND) {
state             134 source4/libcli/cldap/cldap.c 	req->state = CLDAP_REQUEST_DONE;
state             168 source4/libcli/cldap/cldap.c 	req->state = CLDAP_REQUEST_ERROR;
state             193 source4/libcli/cldap/cldap.c 			req->state = CLDAP_REQUEST_ERROR;
state             208 source4/libcli/cldap/cldap.c 			req->state = CLDAP_REQUEST_WAIT;
state             307 source4/libcli/cldap/cldap.c 	req->state       = CLDAP_REQUEST_SEND;
state             378 source4/libcli/cldap/cldap.c 	req->state       = CLDAP_REQUEST_SEND;
state             450 source4/libcli/cldap/cldap.c 	while (req->state < CLDAP_REQUEST_DONE) {
state             457 source4/libcli/cldap/cldap.c 	if (req->state == CLDAP_REQUEST_ERROR) {
state              40 source4/libcli/cldap/cldap.h 	enum cldap_request_state state;
state              36 source4/libcli/clideltree.c 	struct delete_state *dstate = (struct delete_state *)state;
state              59 source4/libcli/clideltree.c 			 delete_fn, state);
state              78 source4/libcli/clilist.c 	struct search_private *state = (struct search_private*) private_data;
state              82 source4/libcli/clilist.c 	tdl = talloc_realloc(state, 
state              83 source4/libcli/clilist.c 			     state->dirlist,
state              85 source4/libcli/clilist.c 			     state->dirlist_len + 1);
state              89 source4/libcli/clilist.c 	state->dirlist = tdl;
state              90 source4/libcli/clilist.c 	state->dirlist_len++;
state              92 source4/libcli/clilist.c 	interpret_long_filename(state->data_level, file, &state->dirlist[state->total_received]);
state              94 source4/libcli/clilist.c 	state->last_name = state->dirlist[state->total_received].name;
state              95 source4/libcli/clilist.c 	state->total_received++;
state              96 source4/libcli/clilist.c 	state->ff_searchcount++;
state             108 source4/libcli/clilist.c 	struct search_private state;  /* for callbacks */
state             118 source4/libcli/clilist.c 	state.mem_ctx = talloc_init("smbcli_list_new");
state             119 source4/libcli/clilist.c 	state.dirlist_len = 0;
state             120 source4/libcli/clilist.c 	state.total_received = 0;
state             122 source4/libcli/clilist.c 	state.dirlist = talloc_array(state.mem_ctx, 
state             124 source4/libcli/clilist.c 	mask = talloc_strdup(state.mem_ctx, Mask);
state             133 source4/libcli/clilist.c 	state.data_level = level;
state             136 source4/libcli/clilist.c 		state.ff_searchcount = 0;
state             141 source4/libcli/clilist.c 			first_parms.t2ffirst.data_level = state.data_level;
state             149 source4/libcli/clilist.c 						      state.mem_ctx, &first_parms,
state             150 source4/libcli/clilist.c 						      (void*)&state, smbcli_list_new_callback);
state             152 source4/libcli/clilist.c 				talloc_free(state.mem_ctx);
state             168 source4/libcli/clilist.c 			next_parms.t2fnext.data_level = state.data_level;
state             170 source4/libcli/clilist.c 			next_parms.t2fnext.in.last_name = state.last_name;
state             176 source4/libcli/clilist.c 						     state.mem_ctx,
state             178 source4/libcli/clilist.c 						     (void*)&state, 
state             194 source4/libcli/clilist.c 	for (i=0;i<state.total_received;i++) {
state             195 source4/libcli/clilist.c 		fn(&state.dirlist[i], Mask, caller_state);
state             198 source4/libcli/clilist.c 	talloc_free(state.mem_ctx);
state             200 source4/libcli/clilist.c 	return state.total_received;
state             236 source4/libcli/clilist.c 	struct search_private *state = (struct search_private*) private_data;
state             240 source4/libcli/clilist.c 	tdl = talloc_realloc(state,
state             241 source4/libcli/clilist.c 			     state->dirlist,
state             243 source4/libcli/clilist.c 			     state->dirlist_len + 1);
state             248 source4/libcli/clilist.c 	state->dirlist = tdl;
state             249 source4/libcli/clilist.c 	state->dirlist_len++;
state             251 source4/libcli/clilist.c 	interpret_short_filename(state->data_level, file, &state->dirlist[state->total_received]);
state             253 source4/libcli/clilist.c 	state->total_received++;
state             254 source4/libcli/clilist.c 	state->ff_searchcount++;
state             255 source4/libcli/clilist.c 	state->id = file->search.id; /* return resume info */
state             266 source4/libcli/clilist.c 	struct search_private state;  /* for callbacks */
state             275 source4/libcli/clilist.c 	state.mem_ctx = talloc_init("smbcli_list_old");
state             276 source4/libcli/clilist.c 	state.dirlist_len = 0;
state             277 source4/libcli/clilist.c 	state.total_received = 0;
state             278 source4/libcli/clilist.c 	state.data_level = RAW_SEARCH_DATA_SEARCH;
state             280 source4/libcli/clilist.c 	state.dirlist = talloc_array(state.mem_ctx, struct clilist_file_info,
state             282 source4/libcli/clilist.c 	mask = talloc_strdup(state.mem_ctx, Mask);
state             285 source4/libcli/clilist.c 		state.ff_searchcount = 0;
state             295 source4/libcli/clilist.c 			status = smb_raw_search_first(tree, state.mem_ctx, 
state             297 source4/libcli/clilist.c 						      (void*)&state, 
state             301 source4/libcli/clilist.c 				talloc_free(state.mem_ctx);
state             315 source4/libcli/clilist.c 			next_parms.search_next.in.id = state.id;
state             317 source4/libcli/clilist.c 			status = smb_raw_search_next(tree, state.mem_ctx,
state             319 source4/libcli/clilist.c 						     (void*)&state, 
state             326 source4/libcli/clilist.c 				talloc_free(state.mem_ctx);
state             336 source4/libcli/clilist.c 	for (i=0;i<state.total_received;i++) {
state             337 source4/libcli/clilist.c 		fn(&state.dirlist[i], Mask, caller_state);
state             340 source4/libcli/clilist.c 	talloc_free(state.mem_ctx);
state             342 source4/libcli/clilist.c 	return state.total_received;
state             354 source4/libcli/clilist.c 		return smbcli_list_old(tree, Mask, attribute, fn, state);
state             355 source4/libcli/clilist.c 	return smbcli_list_new(tree, Mask, attribute, RAW_SEARCH_DATA_GENERIC, fn, state);
state              44 source4/libcli/composite/composite.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state              63 source4/libcli/composite/composite.c 	while (c->state < COMPOSITE_STATE_DONE) {
state             118 source4/libcli/composite/composite.c 	ctx->state = COMPOSITE_STATE_ERROR;
state             147 source4/libcli/composite/composite.c 	ctx->state = COMPOSITE_STATE_DONE;
state             165 source4/libcli/composite/composite.c 	if (new_ctx->state >= COMPOSITE_STATE_DONE && continuation) {
state              49 source4/libcli/composite/composite.h 	enum composite_state state;
state              77 source4/libcli/finddcs.c 	struct finddcs_state *state;
state              83 source4/libcli/finddcs.c 	state = talloc(c, struct finddcs_state);
state              84 source4/libcli/finddcs.c 	if (composite_nomem(state, c)) return c;
state              85 source4/libcli/finddcs.c 	c->private_data = state;
state              87 source4/libcli/finddcs.c 	state->ctx = c;
state              89 source4/libcli/finddcs.c 	state->nbt_port = nbt_port;
state              90 source4/libcli/finddcs.c 	state->my_netbios_name = talloc_strdup(state, my_netbios_name);
state              91 source4/libcli/finddcs.c 	state->domain_name = talloc_strdup(state, domain_name);
state              92 source4/libcli/finddcs.c 	state->iconv_convenience = iconv_convenience;
state              93 source4/libcli/finddcs.c 	if (composite_nomem(state->domain_name, c)) return c;
state              96 source4/libcli/finddcs.c 		state->domain_sid = talloc_reference(state, domain_sid);
state              97 source4/libcli/finddcs.c 		if (composite_nomem(state->domain_sid, c)) return c;
state              99 source4/libcli/finddcs.c 		state->domain_sid = NULL;
state             102 source4/libcli/finddcs.c 	state->msg_ctx = msg_ctx;
state             104 source4/libcli/finddcs.c 	make_nbt_name(&name, state->domain_name, name_type);
state             106 source4/libcli/finddcs.c 	composite_continue(c, creq, finddcs_name_resolved, state);
state             121 source4/libcli/finddcs.c 	struct finddcs_state *state =
state             127 source4/libcli/finddcs.c 	state->ctx->status = resolve_name_recv(ctx, state, &address);
state             128 source4/libcli/finddcs.c 	if (!composite_is_ok(state->ctx)) return;
state             133 source4/libcli/finddcs.c 	state->num_dcs = 1;
state             134 source4/libcli/finddcs.c 	state->dcs = talloc_array(state, struct nbt_dc_name, state->num_dcs);
state             135 source4/libcli/finddcs.c 	if (composite_nomem(state->dcs, state->ctx)) return;
state             137 source4/libcli/finddcs.c 	state->dcs[0].address = talloc_steal(state->dcs, address);
state             143 source4/libcli/finddcs.c 	if (!state->msg_ctx) {
state             144 source4/libcli/finddcs.c 		fallback_node_status(state);
state             148 source4/libcli/finddcs.c 	nbt_servers = irpc_servers_byname(state->msg_ctx, state, "nbt_server");
state             150 source4/libcli/finddcs.c 		fallback_node_status(state);
state             154 source4/libcli/finddcs.c 	state->r.in.domainname = state->domain_name;
state             155 source4/libcli/finddcs.c 	state->r.in.ip_address = state->dcs[0].address;
state             156 source4/libcli/finddcs.c 	state->r.in.my_computername = state->my_netbios_name;
state             157 source4/libcli/finddcs.c 	state->r.in.my_accountname = talloc_asprintf(state, "%s$", state->my_netbios_name);
state             158 source4/libcli/finddcs.c 	if (composite_nomem(state->r.in.my_accountname, state->ctx)) return;
state             159 source4/libcli/finddcs.c 	state->r.in.account_control = ACB_WSTRUST;
state             160 source4/libcli/finddcs.c 	state->r.in.domain_sid = state->domain_sid;
state             162 source4/libcli/finddcs.c 	ireq = irpc_call_send(state->msg_ctx, nbt_servers[0],
state             164 source4/libcli/finddcs.c 			      &state->r, state);
state             166 source4/libcli/finddcs.c 		fallback_node_status(state);
state             170 source4/libcli/finddcs.c 	composite_continue_irpc(state->ctx, ireq, finddcs_getdc_replied, state);
state             176 source4/libcli/finddcs.c 	struct finddcs_state *state =
state             179 source4/libcli/finddcs.c 	state->ctx->status = irpc_call_recv(ireq);
state             180 source4/libcli/finddcs.c 	if (!composite_is_ok(state->ctx)) return;
state             182 source4/libcli/finddcs.c 	state->dcs[0].name = talloc_steal(state->dcs, state->r.out.dcname);
state             183 source4/libcli/finddcs.c 	composite_done(state->ctx);
state             194 source4/libcli/finddcs.c 	state->node_status.in.name.name = "*";
state             195 source4/libcli/finddcs.c 	state->node_status.in.name.type = NBT_NAME_CLIENT;
state             196 source4/libcli/finddcs.c 	state->node_status.in.name.scope = NULL;
state             197 source4/libcli/finddcs.c 	state->node_status.in.dest_addr = state->dcs[0].address;
state             198 source4/libcli/finddcs.c 	state->node_status.in.dest_port = state->nbt_port;
state             199 source4/libcli/finddcs.c 	state->node_status.in.timeout = 1;
state             200 source4/libcli/finddcs.c 	state->node_status.in.retries = 2;
state             202 source4/libcli/finddcs.c 	nbtsock = nbt_name_socket_init(state, state->ctx->event_ctx, 
state             203 source4/libcli/finddcs.c 				       state->iconv_convenience);
state             204 source4/libcli/finddcs.c 	if (composite_nomem(nbtsock, state->ctx)) return;
state             206 source4/libcli/finddcs.c 	name_req = nbt_name_status_send(nbtsock, &state->node_status);
state             207 source4/libcli/finddcs.c 	if (composite_nomem(name_req, state->ctx)) return;
state             209 source4/libcli/finddcs.c 	composite_continue_nbt(state->ctx, 
state             212 source4/libcli/finddcs.c 			       state);
state             219 source4/libcli/finddcs.c 	struct finddcs_state *state = talloc_get_type(name_req->async.private_data, struct finddcs_state);
state             220 source4/libcli/finddcs.c 	state->ctx->status = nbt_name_status_recv(name_req, state, &state->node_status);
state             221 source4/libcli/finddcs.c 	if (!composite_is_ok(state->ctx)) return;
state             223 source4/libcli/finddcs.c 	for (i=0; i < state->node_status.out.status.num_names; i++) {
state             225 source4/libcli/finddcs.c 		if (state->node_status.out.status.names[i].type == NBT_NAME_SERVER) {
state             226 source4/libcli/finddcs.c 			char *name = talloc_strndup(state->dcs, state->node_status.out.status.names[0].name, 15);
state             234 source4/libcli/finddcs.c 			state->dcs[0].name = name;
state             235 source4/libcli/finddcs.c 			composite_done(state->ctx);
state             239 source4/libcli/finddcs.c 	composite_error(state->ctx, NT_STATUS_NO_LOGON_SERVERS);
state             247 source4/libcli/finddcs.c 		struct finddcs_state *state =
state             249 source4/libcli/finddcs.c 		*num_dcs = state->num_dcs;
state             250 source4/libcli/finddcs.c 		*dcs = talloc_steal(mem_ctx, state->dcs);
state              90 source4/libcli/ldap/ldap_client.c 		req->state = LDAP_REQUEST_DONE;
state             142 source4/libcli/ldap/ldap_client.c 			req->state = LDAP_REQUEST_DONE;
state             157 source4/libcli/ldap/ldap_client.c 		req->state = LDAP_REQUEST_DONE;
state             172 source4/libcli/ldap/ldap_client.c 		req->state = LDAP_REQUEST_DONE;
state             296 source4/libcli/ldap/ldap_client.c 	struct ldap_connect_state *state;
state             302 source4/libcli/ldap/ldap_client.c 	result->state = COMPOSITE_STATE_IN_PROGRESS;
state             306 source4/libcli/ldap/ldap_client.c 	state = talloc(result, struct ldap_connect_state);
state             307 source4/libcli/ldap/ldap_client.c 	if (state == NULL) goto failed;
state             308 source4/libcli/ldap/ldap_client.c 	state->ctx = result;
state             309 source4/libcli/ldap/ldap_client.c 	result->private_data = state;
state             311 source4/libcli/ldap/ldap_client.c 	state->conn = conn;
state             340 source4/libcli/ldap/ldap_client.c 		if (composite_nomem(conn->host, state->ctx)) {
state             348 source4/libcli/ldap/ldap_client.c 			composite_error(state->ctx, NT_STATUS_INVALID_PARAMETER);
state             363 source4/libcli/ldap/ldap_client.c 		ctx->async.private_data = state;
state             368 source4/libcli/ldap/ldap_client.c 		if (!NT_STATUS_IS_OK(state->ctx->status)) {
state             369 source4/libcli/ldap/ldap_client.c 			composite_error(state->ctx, status);
state             373 source4/libcli/ldap/ldap_client.c 		ctx = socket_connect_multi_send(state, conn->host, 1, &conn->port,
state             378 source4/libcli/ldap/ldap_client.c 		ctx->async.private_data = state;
state             450 source4/libcli/ldap/ldap_client.c 	struct ldap_connect_state *state =
state             453 source4/libcli/ldap/ldap_client.c 	struct ldap_connection *conn = state->conn;
state             455 source4/libcli/ldap/ldap_client.c 	NTSTATUS status = socket_connect_multi_recv(ctx, state, &conn->sock,
state             458 source4/libcli/ldap/ldap_client.c 		composite_error(state->ctx, status);
state             462 source4/libcli/ldap/ldap_client.c 	ldap_connect_got_sock(state->ctx, conn);
state             467 source4/libcli/ldap/ldap_client.c 	struct ldap_connect_state *state =
state             470 source4/libcli/ldap/ldap_client.c 	struct ldap_connection *conn = state->conn;
state             474 source4/libcli/ldap/ldap_client.c 	if (!NT_STATUS_IS_OK(state->ctx->status)) {
state             475 source4/libcli/ldap/ldap_client.c 		composite_error(state->ctx, status);
state             479 source4/libcli/ldap/ldap_client.c 	ldap_connect_got_sock(state->ctx, conn);
state             543 source4/libcli/ldap/ldap_client.c 	if (req->state == LDAP_REQUEST_PENDING) {
state             557 source4/libcli/ldap/ldap_client.c 	if (req->state == LDAP_REQUEST_PENDING) {
state             560 source4/libcli/ldap/ldap_client.c 	req->state = LDAP_REQUEST_DONE;
state             596 source4/libcli/ldap/ldap_client.c 	req->state       = LDAP_REQUEST_SEND;
state             626 source4/libcli/ldap/ldap_client.c 		req->state = LDAP_REQUEST_DONE;
state             634 source4/libcli/ldap/ldap_client.c 	req->state = LDAP_REQUEST_PENDING;
state             646 source4/libcli/ldap/ldap_client.c 	req->state = LDAP_REQUEST_ERROR;
state             660 source4/libcli/ldap/ldap_client.c 	while (req->state < LDAP_REQUEST_DONE) {
state             775 source4/libcli/ldap/ldap_client.c 	while (req->state < LDAP_REQUEST_DONE && n >= req->num_replies) {
state              35 source4/libcli/ldap/ldap_client.h 	enum ldap_request_state state;
state              57 source4/libcli/raw/clisocket.c 	struct sock_connect_state *state;
state              62 source4/libcli/raw/clisocket.c 	result->state = COMPOSITE_STATE_IN_PROGRESS;
state              67 source4/libcli/raw/clisocket.c 	state = talloc(result, struct sock_connect_state);
state              68 source4/libcli/raw/clisocket.c 	if (state == NULL) goto failed;
state              69 source4/libcli/raw/clisocket.c 	state->ctx = result;
state              70 source4/libcli/raw/clisocket.c 	result->private_data = state;
state              72 source4/libcli/raw/clisocket.c 	state->host_name = talloc_strdup(state, host_name);
state              73 source4/libcli/raw/clisocket.c 	if (state->host_name == NULL) goto failed;
state              75 source4/libcli/raw/clisocket.c 	state->num_ports = str_list_length(ports);
state              76 source4/libcli/raw/clisocket.c 	state->ports = talloc_array(state, uint16_t, state->num_ports);
state              77 source4/libcli/raw/clisocket.c 	if (state->ports == NULL) goto failed;
state              79 source4/libcli/raw/clisocket.c 		state->ports[i] = atoi(ports[i]);
state              81 source4/libcli/raw/clisocket.c 	state->socket_options = talloc_reference(state, socket_options);
state              83 source4/libcli/raw/clisocket.c 	ctx = socket_connect_multi_send(state, host_addr,
state              84 source4/libcli/raw/clisocket.c 					state->num_ports, state->ports,
state              86 source4/libcli/raw/clisocket.c 					state->ctx->event_ctx);
state              89 source4/libcli/raw/clisocket.c 	ctx->async.private_data = state;
state              99 source4/libcli/raw/clisocket.c 	struct sock_connect_state *state =
state             105 source4/libcli/raw/clisocket.c 	state->ctx->status = socket_connect_multi_recv(ctx, state, &sock,
state             107 source4/libcli/raw/clisocket.c 	if (!composite_is_ok(state->ctx)) return;
state             109 source4/libcli/raw/clisocket.c 	state->ctx->status =
state             110 source4/libcli/raw/clisocket.c 		socket_set_option(sock, state->socket_options, NULL);
state             111 source4/libcli/raw/clisocket.c 	if (!composite_is_ok(state->ctx)) return;
state             114 source4/libcli/raw/clisocket.c 	state->result = talloc_zero(state, struct smbcli_socket);
state             115 source4/libcli/raw/clisocket.c 	if (composite_nomem(state->result, state->ctx)) return;
state             117 source4/libcli/raw/clisocket.c 	state->result->sock = talloc_steal(state->result, sock);
state             118 source4/libcli/raw/clisocket.c 	state->result->port = port;
state             119 source4/libcli/raw/clisocket.c 	state->result->hostname = talloc_steal(sock, state->host_name);
state             121 source4/libcli/raw/clisocket.c 	state->result->event.ctx =
state             122 source4/libcli/raw/clisocket.c 		talloc_reference(state->result, state->ctx->event_ctx);
state             123 source4/libcli/raw/clisocket.c 	if (composite_nomem(state->result->event.ctx, state->ctx)) return;
state             125 source4/libcli/raw/clisocket.c 	composite_done(state->ctx);
state             137 source4/libcli/raw/clisocket.c 		struct sock_connect_state *state =
state             140 source4/libcli/raw/clisocket.c 		*result = talloc_steal(mem_ctx, state->result);
state             148 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             423 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             430 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             474 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             484 source4/libcli/raw/clitransport.c 	req->state = SMBCLI_REQUEST_DONE;
state             491 source4/libcli/raw/clitransport.c 		req->state = req->recv_helper.fn(req);
state             494 source4/libcli/raw/clitransport.c 		if (req->state <= SMBCLI_REQUEST_RECV) {
state             507 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             549 source4/libcli/raw/clitransport.c 	if (req->state == SMBCLI_REQUEST_RECV) {
state             553 source4/libcli/raw/clitransport.c 	req->state = SMBCLI_REQUEST_ERROR;
state             565 source4/libcli/raw/clitransport.c 	if (req->state == SMBCLI_REQUEST_RECV) {
state             582 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             590 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_ERROR;
state             596 source4/libcli/raw/clitransport.c 		req->state = SMBCLI_REQUEST_DONE;
state             601 source4/libcli/raw/clitransport.c 	req->state = SMBCLI_REQUEST_RECV;
state             230 source4/libcli/raw/libcliraw.h 	enum smbcli_request_state state;
state              68 source4/libcli/raw/rawrequest.c 	if (req->state == SMBCLI_REQUEST_ERROR &&
state              98 source4/libcli/raw/rawrequest.c 	req->state = SMBCLI_REQUEST_INIT;
state             360 source4/libcli/raw/rawrequest.c 	while (req->state <= SMBCLI_REQUEST_RECV) {
state             366 source4/libcli/raw/rawrequest.c 	return req->state == SMBCLI_REQUEST_DONE;
state              77 source4/libcli/raw/rawtrans.c 	struct smb_raw_trans2_recv_state *state;
state              84 source4/libcli/raw/rawtrans.c 	state = talloc_get_type(req->recv_helper.private_data,
state              87 source4/libcli/raw/rawtrans.c 	parms->out = state->io.out;
state              91 source4/libcli/raw/rawtrans.c 	talloc_free(state);
state             107 source4/libcli/raw/rawtrans.c 	struct smb_raw_trans2_recv_state *state = talloc_get_type(req->recv_helper.private_data,
state             123 source4/libcli/raw/rawtrans.c 	if (state->params_left > 0 || state->data_left > 0) {
state             124 source4/libcli/raw/rawtrans.c 		return smb_raw_trans2_ship_rest(req, state);
state             141 source4/libcli/raw/rawtrans.c 	if (!state->got_first) {
state             143 source4/libcli/raw/rawtrans.c 			state->io.out.params = data_blob_talloc(state, NULL, total_param);
state             144 source4/libcli/raw/rawtrans.c 			if (!state->io.out.params.data) {
state             150 source4/libcli/raw/rawtrans.c 			state->io.out.data = data_blob_talloc(state, NULL, total_data);
state             151 source4/libcli/raw/rawtrans.c 			if (!state->io.out.data.data) {
state             161 source4/libcli/raw/rawtrans.c 			state->io.out.setup_count = setup_count;
state             162 source4/libcli/raw/rawtrans.c 			state->io.out.setup = talloc_array(state, uint16_t, setup_count);
state             163 source4/libcli/raw/rawtrans.c 			if (!state->io.out.setup) {
state             167 source4/libcli/raw/rawtrans.c 				state->io.out.setup[i] = SVAL(req->in.vwv, VWV(10+i));
state             171 source4/libcli/raw/rawtrans.c 		state->got_first = true;
state             174 source4/libcli/raw/rawtrans.c 	if (total_data > state->io.out.data.length ||
state             175 source4/libcli/raw/rawtrans.c 	    total_param > state->io.out.params.length) {
state             182 source4/libcli/raw/rawtrans.c 	state->io.out.data.length = total_data;
state             183 source4/libcli/raw/rawtrans.c 	state->io.out.params.length = total_param;
state             201 source4/libcli/raw/rawtrans.c 		memcpy(state->io.out.data.data + data_disp,
state             207 source4/libcli/raw/rawtrans.c 		memcpy(state->io.out.params.data + param_disp,
state             212 source4/libcli/raw/rawtrans.c 	state->recvd_param += param_count;
state             213 source4/libcli/raw/rawtrans.c 	state->recvd_data += data_count;
state             215 source4/libcli/raw/rawtrans.c 	if (state->recvd_data < total_data ||
state             216 source4/libcli/raw/rawtrans.c 	    state->recvd_param < total_param) {
state             251 source4/libcli/raw/rawtrans.c 	struct smb_raw_trans2_recv_state *state;
state             283 source4/libcli/raw/rawtrans.c 	state = talloc_zero(req, struct smb_raw_trans2_recv_state);
state             284 source4/libcli/raw/rawtrans.c 	if (!state) {
state             289 source4/libcli/raw/rawtrans.c 	state->command = command;
state             309 source4/libcli/raw/rawtrans.c 	state->params_left = parms->in.params.length - params_chunk.length;
state             311 source4/libcli/raw/rawtrans.c 	if (state->params_left > 0) {
state             313 source4/libcli/raw/rawtrans.c 		state->io.in.params = data_blob_talloc(state, NULL, parms->in.params.length);
state             314 source4/libcli/raw/rawtrans.c 		if (!state->io.in.params.data) {
state             318 source4/libcli/raw/rawtrans.c 		memcpy(state->io.in.params.data,
state             336 source4/libcli/raw/rawtrans.c 	state->data_left = parms->in.data.length - data_chunk.length;
state             338 source4/libcli/raw/rawtrans.c 	if (state->data_left > 0) {
state             340 source4/libcli/raw/rawtrans.c 		state->io.in.data = data_blob_talloc(state, NULL, parms->in.data.length);
state             341 source4/libcli/raw/rawtrans.c 		if (!state->io.in.data.data) {
state             345 source4/libcli/raw/rawtrans.c 		memcpy(state->io.in.data.data,
state             350 source4/libcli/raw/rawtrans.c 	state->params_total = parms->in.params.length;
state             351 source4/libcli/raw/rawtrans.c 	state->data_total = parms->in.data.length;
state             378 source4/libcli/raw/rawtrans.c 	req->recv_helper.private_data = state;
state             402 source4/libcli/raw/rawtrans.c 	if (state->command == SMBtrans2) {
state             408 source4/libcli/raw/rawtrans.c 	req2 = smbcli_request_setup(req->tree, state->command+1, wct, 0);
state             420 source4/libcli/raw/rawtrans.c 	params_disp = state->io.in.params.length - state->params_left;
state             421 source4/libcli/raw/rawtrans.c 	params_chunk.length = MIN(state->params_left, space_left);
state             422 source4/libcli/raw/rawtrans.c 	params_chunk.data = state->io.in.params.data + params_disp;
state             425 source4/libcli/raw/rawtrans.c 	state->params_left -= params_chunk.length;
state             436 source4/libcli/raw/rawtrans.c 	data_disp = state->io.in.data.length - state->data_left;
state             437 source4/libcli/raw/rawtrans.c 	data_chunk.length = MIN(state->data_left, space_left);
state             438 source4/libcli/raw/rawtrans.c 	data_chunk.data = state->io.in.data.data + data_disp;
state             441 source4/libcli/raw/rawtrans.c 	state->data_left -= data_chunk.length;
state             443 source4/libcli/raw/rawtrans.c 	SSVAL(req2->out.vwv,VWV(0), state->params_total);
state             444 source4/libcli/raw/rawtrans.c 	SSVAL(req2->out.vwv,VWV(1), state->data_total);
state             485 source4/libcli/raw/rawtrans.c 	while (state->params_left > 0 || state->data_left > 0) {
state             486 source4/libcli/raw/rawtrans.c 		ret = smb_raw_trans2_ship_next(req, state);
state             554 source4/libcli/raw/rawtrans.c 	struct smb_raw_nttrans_recv_state *state;
state             561 source4/libcli/raw/rawtrans.c 	state = talloc_get_type(req->recv_helper.private_data,
state             564 source4/libcli/raw/rawtrans.c 	parms->out = state->io.out;
state             568 source4/libcli/raw/rawtrans.c 	talloc_free(state);
state             584 source4/libcli/raw/rawtrans.c 	struct smb_raw_nttrans_recv_state *state = talloc_get_type(req->recv_helper.private_data,
state             609 source4/libcli/raw/rawtrans.c 	if (state->params_left > 0 || state->data_left > 0) {
state             610 source4/libcli/raw/rawtrans.c 		return smb_raw_nttrans_ship_rest(req, state);
state             628 source4/libcli/raw/rawtrans.c 	if (!state->got_first) {
state             630 source4/libcli/raw/rawtrans.c 			state->io.out.params = data_blob_talloc(state, NULL, total_param);
state             631 source4/libcli/raw/rawtrans.c 			if (!state->io.out.params.data) {
state             637 source4/libcli/raw/rawtrans.c 			state->io.out.data = data_blob_talloc(state, NULL, total_data);
state             638 source4/libcli/raw/rawtrans.c 			if (!state->io.out.data.data) {
state             646 source4/libcli/raw/rawtrans.c 			state->io.out.setup_count = setup_count;
state             647 source4/libcli/raw/rawtrans.c 			state->io.out.setup = talloc_array(state, uint8_t,
state             649 source4/libcli/raw/rawtrans.c 			if (!state->io.out.setup) {
state             652 source4/libcli/raw/rawtrans.c 			memcpy(state->io.out.setup, (uint8_t *)req->out.vwv + VWV(18),
state             656 source4/libcli/raw/rawtrans.c 		state->got_first = true;
state             659 source4/libcli/raw/rawtrans.c 	if (total_data > state->io.out.data.length ||
state             660 source4/libcli/raw/rawtrans.c 	    total_param > state->io.out.params.length) {
state             667 source4/libcli/raw/rawtrans.c 	state->io.out.data.length = total_data;
state             668 source4/libcli/raw/rawtrans.c 	state->io.out.params.length = total_param;
state             686 source4/libcli/raw/rawtrans.c 		memcpy(state->io.out.data.data + data_disp,
state             692 source4/libcli/raw/rawtrans.c 		memcpy(state->io.out.params.data + param_disp,
state             697 source4/libcli/raw/rawtrans.c 	state->recvd_param += param_count;
state             698 source4/libcli/raw/rawtrans.c 	state->recvd_data += data_count;
state             700 source4/libcli/raw/rawtrans.c 	if (state->recvd_data < total_data ||
state             701 source4/libcli/raw/rawtrans.c 	    state->recvd_param < total_param) {
state             729 source4/libcli/raw/rawtrans.c 	struct smb_raw_nttrans_recv_state *state;
state             749 source4/libcli/raw/rawtrans.c 	state = talloc_zero(req, struct smb_raw_nttrans_recv_state);
state             750 source4/libcli/raw/rawtrans.c 	if (!state) {
state             770 source4/libcli/raw/rawtrans.c 	state->params_left = parms->in.params.length - params_chunk.length;
state             772 source4/libcli/raw/rawtrans.c 	if (state->params_left > 0) {
state             774 source4/libcli/raw/rawtrans.c 		state->io.in.params = data_blob_talloc(state, NULL, parms->in.params.length);
state             775 source4/libcli/raw/rawtrans.c 		if (!state->io.in.params.data) {
state             779 source4/libcli/raw/rawtrans.c 		memcpy(state->io.in.params.data,
state             797 source4/libcli/raw/rawtrans.c 	state->data_left = parms->in.data.length - data_chunk.length;
state             799 source4/libcli/raw/rawtrans.c 	if (state->data_left > 0) {
state             801 source4/libcli/raw/rawtrans.c 		state->io.in.data = data_blob_talloc(state, NULL, parms->in.data.length);
state             802 source4/libcli/raw/rawtrans.c 		if (!state->io.in.data.data) {
state             806 source4/libcli/raw/rawtrans.c 		memcpy(state->io.in.data.data,
state             811 source4/libcli/raw/rawtrans.c 	state->params_total = parms->in.params.length;
state             812 source4/libcli/raw/rawtrans.c 	state->data_total = parms->in.data.length;
state             835 source4/libcli/raw/rawtrans.c 	req->recv_helper.private_data = state;
state             870 source4/libcli/raw/rawtrans.c 	params_disp = state->io.in.params.length - state->params_left;
state             871 source4/libcli/raw/rawtrans.c 	params_chunk.length = MIN(state->params_left, space_left);
state             872 source4/libcli/raw/rawtrans.c 	params_chunk.data = state->io.in.params.data + params_disp;
state             875 source4/libcli/raw/rawtrans.c 	state->params_left -= params_chunk.length;
state             886 source4/libcli/raw/rawtrans.c 	data_disp = state->io.in.data.length - state->data_left;
state             887 source4/libcli/raw/rawtrans.c 	data_chunk.length = MIN(state->data_left, space_left);
state             888 source4/libcli/raw/rawtrans.c 	data_chunk.data = state->io.in.data.data + data_disp;
state             891 source4/libcli/raw/rawtrans.c 	state->data_left -= data_chunk.length;
state             895 source4/libcli/raw/rawtrans.c 	SIVAL(req2->out.vwv,3, state->params_total);
state             896 source4/libcli/raw/rawtrans.c 	SIVAL(req2->out.vwv,7, state->data_total);
state             935 source4/libcli/raw/rawtrans.c 	while (state->params_left > 0 || state->data_left > 0) {
state             936 source4/libcli/raw/rawtrans.c 		ret = smb_raw_nttrans_ship_next(req, state);
state              69 source4/libcli/resolve/dns_ex.c 	kill(state->child, SIGTERM);
state              70 source4/libcli/resolve/dns_ex.c 	close(state->child_fd);
state              71 source4/libcli/resolve/dns_ex.c 	if (waitpid(state->child, &status, WNOHANG) == 0) {
state              72 source4/libcli/resolve/dns_ex.c 		kill(state->child, SIGKILL);
state              73 source4/libcli/resolve/dns_ex.c 		waitpid(state->child, &status, 0);
state              94 source4/libcli/resolve/dns_ex.c 	bool do_srv = (state->flags & RESOLVE_NAME_FLAG_DNS_SRV);
state              98 source4/libcli/resolve/dns_ex.c 	reply = dns_lookup(state->name.name, do_srv?"SRV":"A");
state             148 source4/libcli/resolve/dns_ex.c 	srv_rr = talloc_zero_array(state,
state             155 source4/libcli/resolve/dns_ex.c 	addrs_rr = talloc_zero_array(state,
state             231 source4/libcli/resolve/dns_ex.c 	addrs = talloc_strdup(state, "");
state             243 source4/libcli/resolve/dns_ex.c 		    (state->flags & RESOLVE_NAME_FLAG_OVERWRITE_PORT)) {
state             246 source4/libcli/resolve/dns_ex.c 			port = state->port;
state             285 source4/libcli/resolve/dns_ex.c 	ret = getaddrinfo(state->name.name, "0", &hints, &res_list);
state             287 source4/libcli/resolve/dns_ex.c 	if (ret == EAI_NODATA && state->do_fallback) {
state             289 source4/libcli/resolve/dns_ex.c 	if (ret == EAI_NONAME && state->do_fallback) {
state             292 source4/libcli/resolve/dns_ex.c 		run_child_dns_lookup(state, fd);
state             299 source4/libcli/resolve/dns_ex.c 	addrs = talloc_strdup(state, "");
state             315 source4/libcli/resolve/dns_ex.c 						      state->port,
state             316 source4/libcli/resolve/dns_ex.c 						      state->name.name);
state             340 source4/libcli/resolve/dns_ex.c 	struct dns_ex_state *state = talloc_get_type(c->private_data,
state             351 source4/libcli/resolve/dns_ex.c 	talloc_set_destructor(state, NULL);
state             353 source4/libcli/resolve/dns_ex.c 	if (ioctl(state->child_fd, FIONREAD, &value) != 0) {
state             357 source4/libcli/resolve/dns_ex.c 	address = talloc_array(state, char, value+1);
state             363 source4/libcli/resolve/dns_ex.c 		ret = read(state->child_fd, address, value);
state             367 source4/libcli/resolve/dns_ex.c 	close(state->child_fd);
state             368 source4/libcli/resolve/dns_ex.c 	if (waitpid(state->child, &status, WNOHANG) == 0) {
state             369 source4/libcli/resolve/dns_ex.c 		kill(state->child, SIGKILL);
state             370 source4/libcli/resolve/dns_ex.c 		waitpid(state->child, &status, 0);
state             381 source4/libcli/resolve/dns_ex.c 	addrs = str_list_make(state, address, ",");
state             386 source4/libcli/resolve/dns_ex.c 	state->addrs = talloc_array(state, struct socket_address *,
state             388 source4/libcli/resolve/dns_ex.c 	if (composite_nomem(state->addrs, c)) return;
state             390 source4/libcli/resolve/dns_ex.c 	state->names = talloc_array(state, char *, num_addrs+1);
state             391 source4/libcli/resolve/dns_ex.c 	if (composite_nomem(state->names, c)) return;
state             425 source4/libcli/resolve/dns_ex.c 		state->addrs[i] = socket_address_from_strings(state->addrs,
state             429 source4/libcli/resolve/dns_ex.c 		if (composite_nomem(state->addrs[i], c)) return;
state             431 source4/libcli/resolve/dns_ex.c 		state->names[i] = talloc_strdup(state->names, n);
state             432 source4/libcli/resolve/dns_ex.c 		if (composite_nomem(state->names[i], c)) return;
state             434 source4/libcli/resolve/dns_ex.c 	state->addrs[i] = NULL;
state             435 source4/libcli/resolve/dns_ex.c 	state->names[i] = NULL;
state             452 source4/libcli/resolve/dns_ex.c 	struct dns_ex_state *state;
state             464 source4/libcli/resolve/dns_ex.c 	state = talloc_zero(c, struct dns_ex_state);
state             465 source4/libcli/resolve/dns_ex.c 	if (composite_nomem(state, c)) return c;
state             466 source4/libcli/resolve/dns_ex.c 	c->private_data = state;
state             468 source4/libcli/resolve/dns_ex.c 	c->status = nbt_name_dup(state, name, &state->name);
state             478 source4/libcli/resolve/dns_ex.c 	state->do_fallback = do_fallback;
state             479 source4/libcli/resolve/dns_ex.c 	state->flags = flags;
state             480 source4/libcli/resolve/dns_ex.c 	state->port = port;
state             482 source4/libcli/resolve/dns_ex.c 	state->child_fd = fd[0];
state             483 source4/libcli/resolve/dns_ex.c 	state->event_ctx = c->event_ctx;
state             487 source4/libcli/resolve/dns_ex.c 	state->fde = event_add_fd(c->event_ctx, c, state->child_fd, EVENT_FD_READ, 
state             489 source4/libcli/resolve/dns_ex.c 	if (composite_nomem(state->fde, c)) {
state             495 source4/libcli/resolve/dns_ex.c 	state->child = fork();
state             496 source4/libcli/resolve/dns_ex.c 	if (state->child == (pid_t)-1) {
state             501 source4/libcli/resolve/dns_ex.c 	if (state->child == 0) {
state             503 source4/libcli/resolve/dns_ex.c 		if (state->flags & RESOLVE_NAME_FLAG_FORCE_DNS) {
state             504 source4/libcli/resolve/dns_ex.c 			run_child_dns_lookup(state, fd[1]);
state             506 source4/libcli/resolve/dns_ex.c 			run_child_getaddrinfo(state, fd[1]);
state             513 source4/libcli/resolve/dns_ex.c 	talloc_set_destructor(state, dns_ex_destructor);
state             531 source4/libcli/resolve/dns_ex.c 		struct dns_ex_state *state = talloc_get_type(c->private_data,
state             533 source4/libcli/resolve/dns_ex.c 		*addrs = talloc_steal(mem_ctx, state->addrs);
state             535 source4/libcli/resolve/dns_ex.c 			*names = talloc_steal(mem_ctx, state->names);
state              56 source4/libcli/resolve/nbtlist.c 	struct nbtlist_state *state = talloc_get_type(c->private_data, struct nbtlist_state);
state              60 source4/libcli/resolve/nbtlist.c 	for (i=0;i<state->num_queries;i++) {
state              61 source4/libcli/resolve/nbtlist.c 		if (req == state->queries[i]) break;
state              64 source4/libcli/resolve/nbtlist.c 	if (i == state->num_queries) {
state              70 source4/libcli/resolve/nbtlist.c 	q = &state->io_queries[i];
state              72 source4/libcli/resolve/nbtlist.c 	c->status = nbt_name_query_recv(req, state, q);
state              75 source4/libcli/resolve/nbtlist.c 	talloc_free(state->nbtsock);
state              83 source4/libcli/resolve/nbtlist.c 	state->addrs = talloc_array(state, struct socket_address *,
state              85 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->addrs, c)) return;
state              87 source4/libcli/resolve/nbtlist.c 	state->names = talloc_array(state, char *, q->out.num_addrs + 1);
state              88 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->names, c)) return;
state              91 source4/libcli/resolve/nbtlist.c 		state->addrs[i] = socket_address_from_strings(state->addrs,
state              94 source4/libcli/resolve/nbtlist.c 							      state->port);
state              95 source4/libcli/resolve/nbtlist.c 		if (composite_nomem(state->addrs[i], c)) return;
state              97 source4/libcli/resolve/nbtlist.c 		state->names[i] = talloc_strdup(state->names, state->name.name);
state              98 source4/libcli/resolve/nbtlist.c 		if (composite_nomem(state->names[i], c)) return;
state             100 source4/libcli/resolve/nbtlist.c 	state->addrs[i] = NULL;
state             101 source4/libcli/resolve/nbtlist.c 	state->names[i] = NULL;
state             122 source4/libcli/resolve/nbtlist.c 	struct nbtlist_state *state;
state             138 source4/libcli/resolve/nbtlist.c 	state = talloc(c, struct nbtlist_state);
state             139 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state, c)) return c;
state             140 source4/libcli/resolve/nbtlist.c 	c->private_data = state;
state             142 source4/libcli/resolve/nbtlist.c 	state->flags = flags;
state             143 source4/libcli/resolve/nbtlist.c 	state->port = port;
state             145 source4/libcli/resolve/nbtlist.c 	c->status = nbt_name_dup(state, name, &state->name);
state             148 source4/libcli/resolve/nbtlist.c 	state->name.name = strupper_talloc(state, state->name.name);
state             149 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->name.name, c)) return c;
state             150 source4/libcli/resolve/nbtlist.c 	if (state->name.scope) {
state             151 source4/libcli/resolve/nbtlist.c 		state->name.scope = strupper_talloc(state, state->name.scope);
state             152 source4/libcli/resolve/nbtlist.c 		if (composite_nomem(state->name.scope, c)) return c;
state             155 source4/libcli/resolve/nbtlist.c 	state->ifaces = talloc_reference(state, ifaces);
state             161 source4/libcli/resolve/nbtlist.c 	if (strlen(state->name.name) > 15) {
state             166 source4/libcli/resolve/nbtlist.c 	state->nbtsock = nbt_name_socket_init(state, event_ctx, 
state             168 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->nbtsock, c)) return c;
state             173 source4/libcli/resolve/nbtlist.c 	state->num_queries = i;
state             174 source4/libcli/resolve/nbtlist.c 	state->io_queries = talloc_array(state, struct nbt_name_query, state->num_queries);
state             175 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->io_queries, c)) return c;
state             177 source4/libcli/resolve/nbtlist.c 	state->queries = talloc_array(state, struct nbt_name_request *, state->num_queries);
state             178 source4/libcli/resolve/nbtlist.c 	if (composite_nomem(state->queries, c)) return c;
state             180 source4/libcli/resolve/nbtlist.c 	for (i=0;i<state->num_queries;i++) {
state             181 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.name        = state->name;
state             182 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.dest_addr   = talloc_strdup(state->io_queries, address_list[i]);
state             183 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.dest_port   = nbt_port;
state             184 source4/libcli/resolve/nbtlist.c 		if (composite_nomem(state->io_queries[i].in.dest_addr, c)) return c;
state             186 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.broadcast   = broadcast;
state             187 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.wins_lookup = wins_lookup;
state             188 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.timeout     = nbt_timeout;
state             189 source4/libcli/resolve/nbtlist.c 		state->io_queries[i].in.retries     = 2;
state             191 source4/libcli/resolve/nbtlist.c 		state->queries[i] = nbt_name_query_send(state->nbtsock, &state->io_queries[i]);
state             192 source4/libcli/resolve/nbtlist.c 		if (composite_nomem(state->queries[i], c)) return c;
state             194 source4/libcli/resolve/nbtlist.c 		state->queries[i]->async.fn      = nbtlist_handler;
state             195 source4/libcli/resolve/nbtlist.c 		state->queries[i]->async.private_data = c;
state             214 source4/libcli/resolve/nbtlist.c 		struct nbtlist_state *state = talloc_get_type(c->private_data, struct nbtlist_state);
state             215 source4/libcli/resolve/nbtlist.c 		*addrs = talloc_steal(mem_ctx, state->addrs);
state             217 source4/libcli/resolve/nbtlist.c 			*names = talloc_steal(mem_ctx, state->names);
state              86 source4/libcli/resolve/resolve.c 	struct resolve_state *state = talloc_get_type(c->private_data, struct resolve_state);
state              87 source4/libcli/resolve/resolve.c 	const struct resolve_method *method = state->method;
state              89 source4/libcli/resolve/resolve.c 	c->status = method->recv_fn(creq, state, &state->addrs, &state->names);
state              92 source4/libcli/resolve/resolve.c 		state->method = state->method->next;
state              93 source4/libcli/resolve/resolve.c 		state->creq = setup_next_method(c);
state              94 source4/libcli/resolve/resolve.c 		if (state->creq != NULL) {
state             100 source4/libcli/resolve/resolve.c 		c->state = COMPOSITE_STATE_ERROR;
state             102 source4/libcli/resolve/resolve.c 		c->state = COMPOSITE_STATE_DONE;
state             112 source4/libcli/resolve/resolve.c 	struct resolve_state *state = talloc_get_type(c->private_data, struct resolve_state);
state             116 source4/libcli/resolve/resolve.c 		if (state->method) {
state             117 source4/libcli/resolve/resolve.c 			creq = state->method->send_fn(c, c->event_ctx,
state             118 source4/libcli/resolve/resolve.c 						      state->method->privdata,
state             119 source4/libcli/resolve/resolve.c 						      state->flags,
state             120 source4/libcli/resolve/resolve.c 						      state->port,
state             121 source4/libcli/resolve/resolve.c 						      &state->name);
state             123 source4/libcli/resolve/resolve.c 		if (creq == NULL && state->method) state->method = state->method->next;
state             125 source4/libcli/resolve/resolve.c 	} while (!creq && state->method);
state             145 source4/libcli/resolve/resolve.c 	struct resolve_state *state;
state             156 source4/libcli/resolve/resolve.c 	state = talloc(c, struct resolve_state);
state             157 source4/libcli/resolve/resolve.c 	if (composite_nomem(state, c)) return c;
state             158 source4/libcli/resolve/resolve.c 	c->private_data = state;
state             160 source4/libcli/resolve/resolve.c 	state->flags = flags;
state             161 source4/libcli/resolve/resolve.c 	state->port = port;
state             163 source4/libcli/resolve/resolve.c 	c->status = nbt_name_dup(state, name, &state->name);
state             166 source4/libcli/resolve/resolve.c 	state->ctx = talloc_reference(state, ctx);
state             167 source4/libcli/resolve/resolve.c 	if (composite_nomem(state->ctx, c)) return c;
state             169 source4/libcli/resolve/resolve.c 	if (is_ipaddress(state->name.name) || 
state             170 source4/libcli/resolve/resolve.c 	    strcasecmp(state->name.name, "localhost") == 0) {
state             171 source4/libcli/resolve/resolve.c 		struct in_addr ip = interpret_addr2(state->name.name);
state             173 source4/libcli/resolve/resolve.c 		state->addrs = talloc_array(state, struct socket_address *, 2);
state             174 source4/libcli/resolve/resolve.c 		if (composite_nomem(state->addrs, c)) return c;
state             175 source4/libcli/resolve/resolve.c 		state->addrs[0] = socket_address_from_strings(state->addrs, "ipv4",
state             177 source4/libcli/resolve/resolve.c 		if (composite_nomem(state->addrs[0], c)) return c;
state             178 source4/libcli/resolve/resolve.c 		state->addrs[1] = NULL;
state             179 source4/libcli/resolve/resolve.c 		state->names = talloc_array(state, char *, 2);
state             180 source4/libcli/resolve/resolve.c 		if (composite_nomem(state->names, c)) return c;
state             181 source4/libcli/resolve/resolve.c 		state->names[0] = talloc_strdup(state->names, state->name.name);
state             182 source4/libcli/resolve/resolve.c 		if (composite_nomem(state->names[0], c)) return c;
state             183 source4/libcli/resolve/resolve.c 		state->names[1] = NULL;
state             188 source4/libcli/resolve/resolve.c 	state->method = ctx->methods;
state             189 source4/libcli/resolve/resolve.c 	if (state->method == NULL) {
state             193 source4/libcli/resolve/resolve.c 	state->creq = setup_next_method(c);
state             194 source4/libcli/resolve/resolve.c 	if (composite_nomem(state->creq, c)) return c;
state             212 source4/libcli/resolve/resolve.c 		struct resolve_state *state = talloc_get_type(c->private_data, struct resolve_state);
state             213 source4/libcli/resolve/resolve.c 		*addrs = talloc_steal(mem_ctx, state->addrs);
state             215 source4/libcli/resolve/resolve.c 			*names = talloc_steal(mem_ctx, state->names);
state              69 source4/libcli/smb2/cancel.c 	if (c->state == SMB2_REQUEST_ERROR) {
state              53 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state              56 source4/libcli/smb2/connect.c 	c->status = smb2_tree_connect_recv(req, &state->tcon);
state              59 source4/libcli/smb2/connect.c 	state->tree->tid = state->tcon.out.tid;
state              71 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state              78 source4/libcli/smb2/connect.c 	state->tree = smb2_tree_init(state->session, state, true);
state              79 source4/libcli/smb2/connect.c 	if (composite_nomem(state->tree, c)) return;
state              81 source4/libcli/smb2/connect.c 	state->tcon.in.reserved = 0;
state              82 source4/libcli/smb2/connect.c 	state->tcon.in.path     = talloc_asprintf(state, "\\\\%s\\%s", 
state              83 source4/libcli/smb2/connect.c 						  state->host, state->share);
state              84 source4/libcli/smb2/connect.c 	if (composite_nomem(state->tcon.in.path, c)) return;
state              86 source4/libcli/smb2/connect.c 	req = smb2_tree_connect_send(state->tree, &state->tcon);
state             100 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state             105 source4/libcli/smb2/connect.c 	c->status = smb2_negprot_recv(req, c, &state->negprot);
state             108 source4/libcli/smb2/connect.c 	transport->negotiate.system_time = state->negprot.out.system_time;
state             109 source4/libcli/smb2/connect.c 	transport->negotiate.server_start_time = state->negprot.out.server_start_time;
state             110 source4/libcli/smb2/connect.c 	transport->negotiate.security_mode = state->negprot.out.security_mode;
state             144 source4/libcli/smb2/connect.c 	state->session = smb2_session_init(transport, state->gensec_settings, state, true);
state             145 source4/libcli/smb2/connect.c 	if (composite_nomem(state->session, c)) return;
state             147 source4/libcli/smb2/connect.c 	creq = smb2_session_setup_spnego_send(state->session, state->credentials);
state             159 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state             166 source4/libcli/smb2/connect.c 	c->status = smbcli_sock_connect_recv(creq, state, &sock);
state             169 source4/libcli/smb2/connect.c 	transport = smb2_transport_init(sock, state, &state->options);
state             172 source4/libcli/smb2/connect.c 	ZERO_STRUCT(state->negprot);
state             173 source4/libcli/smb2/connect.c 	state->negprot.in.dialect_count = 2;
state             176 source4/libcli/smb2/connect.c 		state->negprot.in.security_mode = 0;
state             180 source4/libcli/smb2/connect.c 		state->negprot.in.security_mode = SMB2_NEGOTIATE_SIGNING_ENABLED;
state             183 source4/libcli/smb2/connect.c 		state->negprot.in.security_mode = 
state             187 source4/libcli/smb2/connect.c 	state->negprot.in.capabilities  = 0;
state             188 source4/libcli/smb2/connect.c 	unix_to_nt_time(&state->negprot.in.start_time, time(NULL));
state             191 source4/libcli/smb2/connect.c 	state->negprot.in.dialects = dialects;
state             193 source4/libcli/smb2/connect.c 	req = smb2_negprot_send(transport, &state->negprot);
state             208 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state             214 source4/libcli/smb2/connect.c 	c->status = resolve_name_recv(creq, state, &addr);
state             217 source4/libcli/smb2/connect.c 	if (state->ports == NULL) {
state             220 source4/libcli/smb2/connect.c 		ports = state->ports;
state             223 source4/libcli/smb2/connect.c 	creq = smbcli_sock_connect_send(state, addr, ports, state->host, state->resolve_ctx, c->event_ctx, state->socket_options);
state             244 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state;
state             251 source4/libcli/smb2/connect.c 	state = talloc(c, struct smb2_connect_state);
state             252 source4/libcli/smb2/connect.c 	if (composite_nomem(state, c)) return c;
state             253 source4/libcli/smb2/connect.c 	c->private_data = state;
state             255 source4/libcli/smb2/connect.c 	state->credentials = credentials;
state             256 source4/libcli/smb2/connect.c 	state->options = *options;
state             257 source4/libcli/smb2/connect.c 	state->host = talloc_strdup(c, host);
state             258 source4/libcli/smb2/connect.c 	if (composite_nomem(state->host, c)) return c;
state             259 source4/libcli/smb2/connect.c 	state->ports = talloc_reference(state, ports);
state             260 source4/libcli/smb2/connect.c 	state->share = talloc_strdup(c, share);
state             261 source4/libcli/smb2/connect.c 	if (composite_nomem(state->share, c)) return c;
state             262 source4/libcli/smb2/connect.c 	state->resolve_ctx = talloc_reference(state, resolve_ctx);
state             263 source4/libcli/smb2/connect.c 	state->socket_options = talloc_reference(state, socket_options);
state             264 source4/libcli/smb2/connect.c 	state->gensec_settings = talloc_reference(state, gensec_settings);
state             281 source4/libcli/smb2/connect.c 	struct smb2_connect_state *state = talloc_get_type(c->private_data, 
state             285 source4/libcli/smb2/connect.c 		*tree = talloc_steal(mem_ctx, state->tree);
state              83 source4/libcli/smb2/request.c 	req->state     = SMB2_REQUEST_INIT;
state             170 source4/libcli/smb2/request.c 	if (req->state == SMB2_REQUEST_ERROR &&
state             191 source4/libcli/smb2/request.c 	while (req->state <= SMB2_REQUEST_RECV) {
state             197 source4/libcli/smb2/request.c 	return req->state == SMB2_REQUEST_DONE;
state             149 source4/libcli/smb2/session.c 	struct smb2_session_state *state = talloc_get_type(c->private_data, 
state             153 source4/libcli/smb2/session.c 	c->status = smb2_session_setup_recv(req, c, &state->io);
state             156 source4/libcli/smb2/session.c 	     NT_STATUS_EQUAL(state->gensec_status, NT_STATUS_MORE_PROCESSING_REQUIRED))) {
state             160 source4/libcli/smb2/session.c 					  state->io.out.secblob,
state             161 source4/libcli/smb2/session.c 					  &state->io.in.secblob);
state             162 source4/libcli/smb2/session.c 		state->gensec_status = c->status;
state             170 source4/libcli/smb2/session.c 	session->uid = state->io.out.uid;
state             173 source4/libcli/smb2/session.c 		state->req = smb2_session_setup_send(session, &state->io);
state             174 source4/libcli/smb2/session.c 		if (state->req == NULL) {
state             179 source4/libcli/smb2/session.c 		state->req->async.fn = session_request_handler;
state             180 source4/libcli/smb2/session.c 		state->req->async.private_data = c;
state             209 source4/libcli/smb2/session.c 	struct smb2_session_state *state;
state             214 source4/libcli/smb2/session.c 	state = talloc(c, struct smb2_session_state);
state             215 source4/libcli/smb2/session.c 	if (composite_nomem(state, c)) return c;
state             216 source4/libcli/smb2/session.c 	c->private_data = state;
state             218 source4/libcli/smb2/session.c 	ZERO_STRUCT(state->io);
state             219 source4/libcli/smb2/session.c 	state->io.in.vc_number          = 0;
state             221 source4/libcli/smb2/session.c 		state->io.in.security_mode = 
state             224 source4/libcli/smb2/session.c 	state->io.in.capabilities       = 0;
state             225 source4/libcli/smb2/session.c 	state->io.in.channel            = 0;
state             226 source4/libcli/smb2/session.c 	state->io.in.previous_sessionid = 0;
state             243 source4/libcli/smb2/session.c 				  &state->io.in.secblob);
state             248 source4/libcli/smb2/session.c 	state->gensec_status = c->status;
state             250 source4/libcli/smb2/session.c 	state->req = smb2_session_setup_send(session, &state->io);
state             251 source4/libcli/smb2/session.c 	composite_continue_smb2(c, state->req, session_request_handler, c);
state             145 source4/libcli/smb2/smb2.h 	enum smb2_request_state state;
state             134 source4/libcli/smb2/transport.c 		req->state = SMB2_REQUEST_ERROR;
state             281 source4/libcli/smb2/transport.c 	req->state = SMB2_REQUEST_DONE;
state             291 source4/libcli/smb2/transport.c 		req->state = SMB2_REQUEST_ERROR;
state             309 source4/libcli/smb2/transport.c 	if (req->state == SMB2_REQUEST_RECV) {
state             313 source4/libcli/smb2/transport.c 	req->state = SMB2_REQUEST_ERROR;
state             325 source4/libcli/smb2/transport.c 	if (req->state == SMB2_REQUEST_RECV) {
state             347 source4/libcli/smb2/transport.c 		req->state = SMB2_REQUEST_ERROR;
state             356 source4/libcli/smb2/transport.c 			req->state = SMB2_REQUEST_ERROR;
state             365 source4/libcli/smb2/transport.c 		req->state = SMB2_REQUEST_ERROR;
state             370 source4/libcli/smb2/transport.c 	req->state = SMB2_REQUEST_RECV;
state              29 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state              30 source4/libcli/smb_composite/appendacl.c 	struct smbcli_tree *tree = state->req->tree;
state              33 source4/libcli/smb_composite/appendacl.c 	status = smb_raw_open_recv(state->req, c, state->io_open);
state              37 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo = talloc(c, union smb_fileinfo);
state              38 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_fileinfo);
state              40 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.level = RAW_FILEINFO_SEC_DESC;
state              41 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.in.file.fnum = state->io_open->ntcreatex.out.file.fnum;
state              42 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.in.secinfo_flags = SECINFO_DACL;
state              44 source4/libcli/smb_composite/appendacl.c 	state->req = smb_raw_fileinfo_send(tree, state->io_fileinfo);
state              45 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              48 source4/libcli/smb_composite/appendacl.c 	state->req->async.fn = appendacl_handler;
state              49 source4/libcli/smb_composite/appendacl.c 	state->req->async.private_data = c;
state              50 source4/libcli/smb_composite/appendacl.c 	state->stage = APPENDACL_GET;
state              52 source4/libcli/smb_composite/appendacl.c 	talloc_free (state->io_open);
state              60 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state              61 source4/libcli/smb_composite/appendacl.c 	struct smbcli_tree *tree = state->req->tree;
state              65 source4/libcli/smb_composite/appendacl.c 	status = smb_raw_fileinfo_recv(state->req, state->io_fileinfo, state->io_fileinfo);
state              69 source4/libcli/smb_composite/appendacl.c 	state->io_setfileinfo = talloc(c, union smb_setfileinfo);
state              70 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_setfileinfo);
state              72 source4/libcli/smb_composite/appendacl.c 	state->io_setfileinfo->set_secdesc.level            = RAW_SFILEINFO_SEC_DESC;
state              73 source4/libcli/smb_composite/appendacl.c 	state->io_setfileinfo->set_secdesc.in.file.fnum     = state->io_fileinfo->query_secdesc.in.file.fnum;
state              75 source4/libcli/smb_composite/appendacl.c 	state->io_setfileinfo->set_secdesc.in.secinfo_flags = SECINFO_DACL;
state              76 source4/libcli/smb_composite/appendacl.c 	state->io_setfileinfo->set_secdesc.in.sd            = state->io_fileinfo->query_secdesc.out.sd;
state              77 source4/libcli/smb_composite/appendacl.c 	talloc_steal(state->io_setfileinfo, state->io_setfileinfo->set_secdesc.in.sd);
state              82 source4/libcli/smb_composite/appendacl.c 			security_descriptor_dacl_add(state->io_setfileinfo->set_secdesc.in.sd,
state              87 source4/libcli/smb_composite/appendacl.c 	status = smb_raw_setfileinfo(tree, state->io_setfileinfo);
state              90 source4/libcli/smb_composite/appendacl.c 	state->req = smb_raw_setfileinfo_send(tree, state->io_setfileinfo);
state              91 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              94 source4/libcli/smb_composite/appendacl.c 	state->req->async.fn = appendacl_handler;
state              95 source4/libcli/smb_composite/appendacl.c 	state->req->async.private_data = c;
state              96 source4/libcli/smb_composite/appendacl.c 	state->stage = APPENDACL_SET;
state              98 source4/libcli/smb_composite/appendacl.c 	talloc_free (state->io_fileinfo);
state             106 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state             107 source4/libcli/smb_composite/appendacl.c 	struct smbcli_tree *tree = state->req->tree;
state             110 source4/libcli/smb_composite/appendacl.c 	status = smbcli_request_simple_recv(state->req);
state             114 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo = talloc(c, union smb_fileinfo);
state             115 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_fileinfo);
state             118 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.level = RAW_FILEINFO_SEC_DESC;
state             119 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.in.file.fnum = state->io_setfileinfo->set_secdesc.in.file.fnum;
state             120 source4/libcli/smb_composite/appendacl.c 	state->io_fileinfo->query_secdesc.in.secinfo_flags = SECINFO_DACL;
state             122 source4/libcli/smb_composite/appendacl.c 	state->req = smb_raw_fileinfo_send(tree, state->io_fileinfo);
state             123 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             126 source4/libcli/smb_composite/appendacl.c 	state->req->async.fn = appendacl_handler;
state             127 source4/libcli/smb_composite/appendacl.c 	state->req->async.private_data = c;
state             128 source4/libcli/smb_composite/appendacl.c 	state->stage = APPENDACL_GETAGAIN;
state             130 source4/libcli/smb_composite/appendacl.c 	talloc_free (state->io_setfileinfo);
state             139 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state             140 source4/libcli/smb_composite/appendacl.c 	struct smbcli_tree *tree = state->req->tree;
state             144 source4/libcli/smb_composite/appendacl.c 	status = smb_raw_fileinfo_recv(state->req, c, state->io_fileinfo);
state             147 source4/libcli/smb_composite/appendacl.c 	io->out.sd = state->io_fileinfo->query_secdesc.out.sd;
state             154 source4/libcli/smb_composite/appendacl.c 	io_close->close.in.file.fnum = state->io_fileinfo->query_secdesc.in.file.fnum;
state             157 source4/libcli/smb_composite/appendacl.c 	state->req = smb_raw_close_send(tree, io_close);
state             158 source4/libcli/smb_composite/appendacl.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             161 source4/libcli/smb_composite/appendacl.c 	state->req->async.fn = appendacl_handler;
state             162 source4/libcli/smb_composite/appendacl.c 	state->req->async.private_data = c;
state             163 source4/libcli/smb_composite/appendacl.c 	state->stage = APPENDACL_CLOSEPATH;
state             165 source4/libcli/smb_composite/appendacl.c 	talloc_free (state->io_fileinfo);
state             175 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state             178 source4/libcli/smb_composite/appendacl.c 	status = smbcli_request_simple_recv(state->req);
state             181 source4/libcli/smb_composite/appendacl.c 	c->state = COMPOSITE_STATE_DONE;
state             192 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state             196 source4/libcli/smb_composite/appendacl.c 	switch (state->stage) {
state             198 source4/libcli/smb_composite/appendacl.c 		c->status = appendacl_open(c, state->io);
state             202 source4/libcli/smb_composite/appendacl.c 		c->status = appendacl_get(c, state->io);
state             206 source4/libcli/smb_composite/appendacl.c 		c->status = appendacl_set(c, state->io);
state             210 source4/libcli/smb_composite/appendacl.c 		c->status = appendacl_getagain(c, state->io);
state             214 source4/libcli/smb_composite/appendacl.c 		c->status = appendacl_close(c, state->io);
state             220 source4/libcli/smb_composite/appendacl.c 		c->state = COMPOSITE_STATE_ERROR;
state             223 source4/libcli/smb_composite/appendacl.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             238 source4/libcli/smb_composite/appendacl.c 	struct appendacl_state *state;
state             243 source4/libcli/smb_composite/appendacl.c 	state = talloc(c, struct appendacl_state);
state             244 source4/libcli/smb_composite/appendacl.c 	if (state == NULL) goto failed;
state             246 source4/libcli/smb_composite/appendacl.c 	state->io = io;
state             248 source4/libcli/smb_composite/appendacl.c 	c->private_data = state;
state             249 source4/libcli/smb_composite/appendacl.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             253 source4/libcli/smb_composite/appendacl.c 	state->io_open = talloc_zero(c, union smb_open);
state             254 source4/libcli/smb_composite/appendacl.c 	if (state->io_open == NULL) goto failed;
state             256 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.level               = RAW_OPEN_NTCREATEX;
state             257 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.root_fid = 0;
state             258 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.flags            = 0;
state             259 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.access_mask      = SEC_FLAG_MAXIMUM_ALLOWED;
state             260 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.file_attr        = FILE_ATTRIBUTE_NORMAL;
state             261 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.share_access     = NTCREATEX_SHARE_ACCESS_READ | NTCREATEX_SHARE_ACCESS_WRITE;
state             262 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN;
state             263 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.impersonation    = NTCREATEX_IMPERSONATION_ANONYMOUS;
state             264 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.security_flags   = 0;
state             265 source4/libcli/smb_composite/appendacl.c 	state->io_open->ntcreatex.in.fname            = io->in.fname;
state             268 source4/libcli/smb_composite/appendacl.c 	state->req = smb_raw_open_send(tree, state->io_open);
state             269 source4/libcli/smb_composite/appendacl.c 	if (state->req == NULL) goto failed;
state             272 source4/libcli/smb_composite/appendacl.c 	state->req->async.fn = appendacl_handler;
state             273 source4/libcli/smb_composite/appendacl.c 	state->req->async.private_data = c;
state             274 source4/libcli/smb_composite/appendacl.c 	state->stage = APPENDACL_OPENPATH;
state             294 source4/libcli/smb_composite/appendacl.c 		struct appendacl_state *state = talloc_get_type(c->private_data, struct appendacl_state);
state             295 source4/libcli/smb_composite/appendacl.c 		state->io->out.sd = security_descriptor_copy (mem_ctx, state->io->out.sd);
state              67 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state              70 source4/libcli/smb_composite/connect.c 	status = smb_raw_tcon_recv(state->req, c, state->io_tcon);
state              73 source4/libcli/smb_composite/connect.c 	io->out.tree->tid = state->io_tcon->tconx.out.tid;
state              74 source4/libcli/smb_composite/connect.c 	if (state->io_tcon->tconx.out.dev_type) {
state              76 source4/libcli/smb_composite/connect.c 						     state->io_tcon->tconx.out.dev_type);
state              78 source4/libcli/smb_composite/connect.c 	if (state->io_tcon->tconx.out.fs_type) {
state              80 source4/libcli/smb_composite/connect.c 						      state->io_tcon->tconx.out.fs_type);
state              83 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_DONE;
state              95 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state              98 source4/libcli/smb_composite/connect.c 	status = smb_composite_sesssetup_recv(state->creq);
state             103 source4/libcli/smb_composite/connect.c 	state->session->vuid = state->io_setup->out.vuid;
state             106 source4/libcli/smb_composite/connect.c 	state->io_tcon = talloc(c, union smb_tcon);
state             107 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_tcon);
state             110 source4/libcli/smb_composite/connect.c 	state->io_tcon->generic.level = RAW_TCON_TCONX;
state             111 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.flags = 0;
state             112 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.password = data_blob(NULL, 0);	
state             114 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.path = talloc_asprintf(state->io_tcon, 
state             118 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_tcon->tconx.in.path);
state             120 source4/libcli/smb_composite/connect.c 		state->io_tcon->tconx.in.device = "?????";
state             122 source4/libcli/smb_composite/connect.c 		state->io_tcon->tconx.in.device = io->in.service_type;
state             125 source4/libcli/smb_composite/connect.c 	state->req = smb_raw_tcon_send(io->out.tree, state->io_tcon);
state             126 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             127 source4/libcli/smb_composite/connect.c 	if (state->req->state == SMBCLI_REQUEST_ERROR) {
state             128 source4/libcli/smb_composite/connect.c 		return state->req->status;
state             131 source4/libcli/smb_composite/connect.c 	state->req->async.fn = request_handler;
state             132 source4/libcli/smb_composite/connect.c 	state->req->async.private_data = c;
state             133 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_TCON;
state             144 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             147 source4/libcli/smb_composite/connect.c 	status = smb_composite_sesssetup_recv(state->creq);
state             150 source4/libcli/smb_composite/connect.c 	    !cli_credentials_is_anonymous(state->io->in.credentials) &&
state             153 source4/libcli/smb_composite/connect.c 		state->io_setup->in.credentials = cli_credentials_init(state);
state             154 source4/libcli/smb_composite/connect.c 		NT_STATUS_HAVE_NO_MEMORY(state->io_setup->in.credentials);
state             155 source4/libcli/smb_composite/connect.c 		cli_credentials_set_workstation(state->io_setup->in.credentials,
state             156 source4/libcli/smb_composite/connect.c 		   cli_credentials_get_workstation(state->io->in.credentials), 
state             158 source4/libcli/smb_composite/connect.c 		cli_credentials_set_anonymous(state->io_setup->in.credentials);
state             163 source4/libcli/smb_composite/connect.c 		state->session->vuid = 0;
state             164 source4/libcli/smb_composite/connect.c 		data_blob_free(&state->session->user_session_key);
state             165 source4/libcli/smb_composite/connect.c 		talloc_free(state->session->gensec);
state             166 source4/libcli/smb_composite/connect.c 		state->session->gensec = NULL;
state             168 source4/libcli/smb_composite/connect.c 		state->creq = smb_composite_sesssetup_send(state->session,
state             169 source4/libcli/smb_composite/connect.c 							   state->io_setup);
state             170 source4/libcli/smb_composite/connect.c 		NT_STATUS_HAVE_NO_MEMORY(state->creq);
state             171 source4/libcli/smb_composite/connect.c 		if (state->creq->state == COMPOSITE_STATE_ERROR) {
state             172 source4/libcli/smb_composite/connect.c 			return state->creq->status;
state             174 source4/libcli/smb_composite/connect.c 		state->creq->async.fn = composite_handler;
state             175 source4/libcli/smb_composite/connect.c 		state->creq->async.private_data = c;
state             176 source4/libcli/smb_composite/connect.c 		state->stage = CONNECT_SESSION_SETUP_ANON;
state             183 source4/libcli/smb_composite/connect.c 	state->session->vuid = state->io_setup->out.vuid;
state             188 source4/libcli/smb_composite/connect.c 		state->stage = CONNECT_DONE;
state             192 source4/libcli/smb_composite/connect.c 	state->io_tcon = talloc(c, union smb_tcon);
state             193 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_tcon);
state             196 source4/libcli/smb_composite/connect.c 	state->io_tcon->generic.level = RAW_TCON_TCONX;
state             197 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.flags = 0;
state             198 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.password = data_blob(NULL, 0);	
state             200 source4/libcli/smb_composite/connect.c 	state->io_tcon->tconx.in.path = talloc_asprintf(state->io_tcon, 
state             204 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_tcon->tconx.in.path);
state             206 source4/libcli/smb_composite/connect.c 		state->io_tcon->tconx.in.device = "?????";
state             208 source4/libcli/smb_composite/connect.c 		state->io_tcon->tconx.in.device = io->in.service_type;
state             211 source4/libcli/smb_composite/connect.c 	state->req = smb_raw_tcon_send(io->out.tree, state->io_tcon);
state             212 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             213 source4/libcli/smb_composite/connect.c 	if (state->req->state == SMBCLI_REQUEST_ERROR) {
state             214 source4/libcli/smb_composite/connect.c 		return state->req->status;
state             217 source4/libcli/smb_composite/connect.c 	state->req->async.fn = request_handler;
state             218 source4/libcli/smb_composite/connect.c 	state->req->async.private_data = c;
state             219 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_TCON;
state             230 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             233 source4/libcli/smb_composite/connect.c 	status = smb_raw_negotiate_recv(state->req);
state             237 source4/libcli/smb_composite/connect.c 	state->session = smbcli_session_init(state->transport, state, true, io->in.session_options);
state             238 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->session);
state             242 source4/libcli/smb_composite/connect.c 	io->out.tree = smbcli_tree_init(state->session, state, true);
state             248 source4/libcli/smb_composite/connect.c 		state->stage = CONNECT_DONE;
state             252 source4/libcli/smb_composite/connect.c 	state->io_setup = talloc(c, struct smb_composite_sesssetup);
state             253 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_setup);
state             256 source4/libcli/smb_composite/connect.c 	state->io_setup->in.sesskey      = state->transport->negotiate.sesskey;
state             257 source4/libcli/smb_composite/connect.c 	state->io_setup->in.capabilities = state->transport->negotiate.capabilities;
state             258 source4/libcli/smb_composite/connect.c 	state->io_setup->in.credentials  = io->in.credentials;
state             259 source4/libcli/smb_composite/connect.c 	state->io_setup->in.workgroup    = io->in.workgroup;
state             260 source4/libcli/smb_composite/connect.c 	state->io_setup->in.gensec_settings = io->in.gensec_settings;
state             262 source4/libcli/smb_composite/connect.c 	state->creq = smb_composite_sesssetup_send(state->session, state->io_setup);
state             263 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->creq);
state             264 source4/libcli/smb_composite/connect.c 	if (state->creq->state == COMPOSITE_STATE_ERROR) {
state             265 source4/libcli/smb_composite/connect.c 		return state->creq->status;
state             268 source4/libcli/smb_composite/connect.c 	state->creq->async.fn = composite_handler;
state             269 source4/libcli/smb_composite/connect.c 	state->creq->async.private_data = c;
state             271 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_SESSION_SETUP;
state             282 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             284 source4/libcli/smb_composite/connect.c 	state->req = smb_raw_negotiate_send(state->transport, io->in.options.unicode, io->in.options.max_protocol);
state             285 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             287 source4/libcli/smb_composite/connect.c 	state->req->async.fn = request_handler;
state             288 source4/libcli/smb_composite/connect.c 	state->req->async.private_data = c;
state             289 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_NEGPROT;
state             301 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             304 source4/libcli/smb_composite/connect.c 	status = smbcli_transport_connect_recv(state->req);
state             317 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             321 source4/libcli/smb_composite/connect.c 	status = smbcli_sock_connect_recv(state->creq, state, &state->sock);
state             325 source4/libcli/smb_composite/connect.c 	state->transport = smbcli_transport_init(state->sock, state, true, 
state             327 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->transport);
state             329 source4/libcli/smb_composite/connect.c 	if (is_ipaddress(state->sock->hostname) &&
state             330 source4/libcli/smb_composite/connect.c 	    (state->io->in.called_name != NULL)) {
state             334 source4/libcli/smb_composite/connect.c 		state->sock->hostname =
state             335 source4/libcli/smb_composite/connect.c 			talloc_strdup(state->sock, io->in.called_name);
state             336 source4/libcli/smb_composite/connect.c 		NT_STATUS_HAVE_NO_MEMORY(state->sock->hostname);
state             341 source4/libcli/smb_composite/connect.c 	nbt_choose_called_name(state, &called, io->in.called_name, NBT_NAME_SERVER);
state             346 source4/libcli/smb_composite/connect.c 	if (state->sock->port == 445) {
state             347 source4/libcli/smb_composite/connect.c 		status = nbt_name_dup(state->transport, &called, 
state             348 source4/libcli/smb_composite/connect.c 				      &state->transport->called);
state             353 source4/libcli/smb_composite/connect.c 	state->req = smbcli_transport_connect_send(state->transport, &calling, &called);
state             354 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             356 source4/libcli/smb_composite/connect.c 	state->req->async.fn = request_handler;
state             357 source4/libcli/smb_composite/connect.c 	state->req->async.private_data = c;
state             358 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_SESSION_REQUEST;
state             370 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             374 source4/libcli/smb_composite/connect.c 	status = resolve_name_recv(state->creq, state, &address);
state             377 source4/libcli/smb_composite/connect.c 	state->creq = smbcli_sock_connect_send(state, address, 
state             382 source4/libcli/smb_composite/connect.c 	NT_STATUS_HAVE_NO_MEMORY(state->creq);
state             384 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_SOCKET;
state             385 source4/libcli/smb_composite/connect.c 	state->creq->async.private_data = c;
state             386 source4/libcli/smb_composite/connect.c 	state->creq->async.fn = composite_handler;
state             397 source4/libcli/smb_composite/connect.c 	struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             399 source4/libcli/smb_composite/connect.c 	switch (state->stage) {
state             401 source4/libcli/smb_composite/connect.c 		c->status = connect_resolve(c, state->io);
state             404 source4/libcli/smb_composite/connect.c 		c->status = connect_socket(c, state->io);
state             407 source4/libcli/smb_composite/connect.c 		c->status = connect_session_request(c, state->io);
state             410 source4/libcli/smb_composite/connect.c 		c->status = connect_negprot(c, state->io);
state             413 source4/libcli/smb_composite/connect.c 		c->status = connect_session_setup(c, state->io);
state             416 source4/libcli/smb_composite/connect.c 		c->status = connect_session_setup_anon(c, state->io);
state             419 source4/libcli/smb_composite/connect.c 		c->status = connect_tcon(c, state->io);
state             423 source4/libcli/smb_composite/connect.c 	if (state->stage == CONNECT_DONE) {
state             461 source4/libcli/smb_composite/connect.c 	struct connect_state *state;
state             470 source4/libcli/smb_composite/connect.c 	state = talloc_zero(c, struct connect_state);
state             471 source4/libcli/smb_composite/connect.c 	if (state == NULL) goto failed;
state             474 source4/libcli/smb_composite/connect.c 	state->io = io;
state             476 source4/libcli/smb_composite/connect.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             477 source4/libcli/smb_composite/connect.c 	c->private_data = state;
state             479 source4/libcli/smb_composite/connect.c 	state->stage = CONNECT_RESOLVE;
state             481 source4/libcli/smb_composite/connect.c 	state->creq = resolve_name_send(resolve_ctx, &name, c->event_ctx);
state             483 source4/libcli/smb_composite/connect.c 	if (state->creq == NULL) goto failed;
state             484 source4/libcli/smb_composite/connect.c 	state->creq->async.private_data = c;
state             485 source4/libcli/smb_composite/connect.c 	state->creq->async.fn = composite_handler;
state             503 source4/libcli/smb_composite/connect.c 		struct connect_state *state = talloc_get_type(c->private_data, struct connect_state);
state             504 source4/libcli/smb_composite/connect.c 		talloc_steal(mem_ctx, state->io->out.tree);
state              45 source4/libcli/smb_composite/fetchfile.c 	struct fetchfile_state *state;
state              46 source4/libcli/smb_composite/fetchfile.c 	state = talloc_get_type(c->private_data, struct fetchfile_state);
state              48 source4/libcli/smb_composite/fetchfile.c 	status = smb_composite_connect_recv(state->creq, c);
state              51 source4/libcli/smb_composite/fetchfile.c 	state->loadfile = talloc(state, struct smb_composite_loadfile);
state              52 source4/libcli/smb_composite/fetchfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->loadfile);
state              54 source4/libcli/smb_composite/fetchfile.c 	state->loadfile->in.fname = io->in.filename;
state              56 source4/libcli/smb_composite/fetchfile.c 	state->creq = smb_composite_loadfile_send(state->connect->out.tree,
state              57 source4/libcli/smb_composite/fetchfile.c 						 state->loadfile);
state              58 source4/libcli/smb_composite/fetchfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->creq);
state              60 source4/libcli/smb_composite/fetchfile.c 	state->creq->async.private_data = c;
state              61 source4/libcli/smb_composite/fetchfile.c 	state->creq->async.fn = fetchfile_composite_handler;
state              63 source4/libcli/smb_composite/fetchfile.c 	state->stage = FETCHFILE_READ;
state              72 source4/libcli/smb_composite/fetchfile.c 	struct fetchfile_state *state;
state              73 source4/libcli/smb_composite/fetchfile.c 	state = talloc_get_type(c->private_data, struct fetchfile_state);
state              75 source4/libcli/smb_composite/fetchfile.c 	status = smb_composite_loadfile_recv(state->creq, NULL);
state              78 source4/libcli/smb_composite/fetchfile.c 	io->out.data = state->loadfile->out.data;
state              79 source4/libcli/smb_composite/fetchfile.c 	io->out.size = state->loadfile->out.size;
state              81 source4/libcli/smb_composite/fetchfile.c 	c->state = COMPOSITE_STATE_DONE;
state              90 source4/libcli/smb_composite/fetchfile.c 	struct fetchfile_state *state;
state              93 source4/libcli/smb_composite/fetchfile.c 	state = talloc_get_type(c->private_data, struct fetchfile_state);
state              97 source4/libcli/smb_composite/fetchfile.c 	switch (state->stage) {
state              99 source4/libcli/smb_composite/fetchfile.c 		status = fetchfile_connect(c, state->io);
state             102 source4/libcli/smb_composite/fetchfile.c 		status = fetchfile_read(c, state->io);
state             108 source4/libcli/smb_composite/fetchfile.c 		c->state = COMPOSITE_STATE_ERROR;
state             126 source4/libcli/smb_composite/fetchfile.c 	struct fetchfile_state *state;
state             131 source4/libcli/smb_composite/fetchfile.c 	state = talloc(c, struct fetchfile_state);
state             132 source4/libcli/smb_composite/fetchfile.c 	if (state == NULL) goto failed;
state             134 source4/libcli/smb_composite/fetchfile.c 	state->connect = talloc(state, struct smb_composite_connect);
state             135 source4/libcli/smb_composite/fetchfile.c 	if (state->connect == NULL) goto failed;
state             137 source4/libcli/smb_composite/fetchfile.c 	state->io = io;
state             139 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.dest_host    = io->in.dest_host;
state             140 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.dest_ports   = io->in.ports;
state             141 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.socket_options = io->in.socket_options;
state             142 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.called_name  = io->in.called_name;
state             143 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.service      = io->in.service;
state             144 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.service_type = io->in.service_type;
state             145 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.credentials  = io->in.credentials;
state             146 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.fallback_to_anonymous = false;
state             147 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.workgroup    = io->in.workgroup;
state             148 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.gensec_settings = io->in.gensec_settings;
state             149 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.iconv_convenience = io->in.iconv_convenience;
state             151 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.options	= io->in.options;
state             152 source4/libcli/smb_composite/fetchfile.c 	state->connect->in.session_options = io->in.session_options;
state             154 source4/libcli/smb_composite/fetchfile.c 	state->creq = smb_composite_connect_send(state->connect, state, 
state             156 source4/libcli/smb_composite/fetchfile.c 	if (state->creq == NULL) goto failed;
state             158 source4/libcli/smb_composite/fetchfile.c 	state->creq->async.private_data = c;
state             159 source4/libcli/smb_composite/fetchfile.c 	state->creq->async.fn = fetchfile_composite_handler;
state             161 source4/libcli/smb_composite/fetchfile.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             162 source4/libcli/smb_composite/fetchfile.c 	state->stage = FETCHFILE_CONNECT;
state             163 source4/libcli/smb_composite/fetchfile.c 	c->private_data = state;
state             179 source4/libcli/smb_composite/fetchfile.c 		struct fetchfile_state *state = talloc_get_type(c->private_data, struct fetchfile_state);
state             180 source4/libcli/smb_composite/fetchfile.c 		talloc_steal(mem_ctx, state->io->out.data);
state              34 source4/libcli/smb_composite/fsinfo.c 	struct fsinfo_state *state;
state              35 source4/libcli/smb_composite/fsinfo.c 	state = talloc_get_type(c->private_data, struct fsinfo_state);
state              37 source4/libcli/smb_composite/fsinfo.c 	status = smb_composite_connect_recv(state->creq, c);
state              40 source4/libcli/smb_composite/fsinfo.c 	state->fsinfo = talloc(state, union smb_fsinfo);
state              41 source4/libcli/smb_composite/fsinfo.c 	NT_STATUS_HAVE_NO_MEMORY(state->fsinfo);
state              43 source4/libcli/smb_composite/fsinfo.c 	state->fsinfo->generic.level = io->in.level;
state              45 source4/libcli/smb_composite/fsinfo.c 	state->req = smb_raw_fsinfo_send(state->connect->out.tree,
state              46 source4/libcli/smb_composite/fsinfo.c 					 state,
state              47 source4/libcli/smb_composite/fsinfo.c 					 state->fsinfo);
state              48 source4/libcli/smb_composite/fsinfo.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              50 source4/libcli/smb_composite/fsinfo.c 	state->req->async.private_data = c;
state              51 source4/libcli/smb_composite/fsinfo.c 	state->req->async.fn = fsinfo_raw_handler;
state              53 source4/libcli/smb_composite/fsinfo.c 	state->stage = FSINFO_QUERY;
state              62 source4/libcli/smb_composite/fsinfo.c 	struct fsinfo_state *state;
state              63 source4/libcli/smb_composite/fsinfo.c 	state = talloc_get_type(c->private_data, struct fsinfo_state);
state              65 source4/libcli/smb_composite/fsinfo.c 	status = smb_raw_fsinfo_recv(state->req, state, state->fsinfo);
state              68 source4/libcli/smb_composite/fsinfo.c 	state->io->out.fsinfo = state->fsinfo;
state              70 source4/libcli/smb_composite/fsinfo.c 	c->state = COMPOSITE_STATE_DONE;
state              84 source4/libcli/smb_composite/fsinfo.c 	struct fsinfo_state *state = talloc_get_type(creq->private_data, struct fsinfo_state);
state              88 source4/libcli/smb_composite/fsinfo.c 	switch (state->stage) {
state              90 source4/libcli/smb_composite/fsinfo.c 		creq->status = fsinfo_connect(creq, state->io);
state              94 source4/libcli/smb_composite/fsinfo.c 		creq->status = fsinfo_query(creq, state->io);
state              99 source4/libcli/smb_composite/fsinfo.c 		creq->state = COMPOSITE_STATE_ERROR;
state             102 source4/libcli/smb_composite/fsinfo.c 	if (creq->state >= COMPOSITE_STATE_DONE && creq->async.fn) {
state             133 source4/libcli/smb_composite/fsinfo.c 	struct fsinfo_state *state;
state             138 source4/libcli/smb_composite/fsinfo.c 	state = talloc(c, struct fsinfo_state);
state             139 source4/libcli/smb_composite/fsinfo.c 	if (state == NULL) goto failed;
state             141 source4/libcli/smb_composite/fsinfo.c 	state->io = io;
state             143 source4/libcli/smb_composite/fsinfo.c 	state->connect = talloc(state, struct smb_composite_connect);
state             145 source4/libcli/smb_composite/fsinfo.c 	if (state->connect == NULL) goto failed;
state             147 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.dest_host    = io->in.dest_host;
state             148 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.dest_ports   = io->in.dest_ports;
state             149 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.socket_options = io->in.socket_options;
state             150 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.called_name  = io->in.called_name;
state             151 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.service      = io->in.service;
state             152 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.service_type = io->in.service_type;
state             153 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.credentials  = io->in.credentials;
state             154 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.fallback_to_anonymous = false;
state             155 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.workgroup    = io->in.workgroup;
state             156 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.iconv_convenience = io->in.iconv_convenience;
state             157 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.gensec_settings = io->in.gensec_settings;
state             159 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.options = tree->session->transport->options;
state             160 source4/libcli/smb_composite/fsinfo.c 	state->connect->in.session_options = tree->session->options;
state             162 source4/libcli/smb_composite/fsinfo.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             163 source4/libcli/smb_composite/fsinfo.c 	state->stage = FSINFO_CONNECT;
state             164 source4/libcli/smb_composite/fsinfo.c 	c->private_data = state;
state             166 source4/libcli/smb_composite/fsinfo.c 	state->creq = smb_composite_connect_send(state->connect, state,
state             169 source4/libcli/smb_composite/fsinfo.c 	if (state->creq == NULL) goto failed;
state             171 source4/libcli/smb_composite/fsinfo.c 	state->creq->async.private_data = c;
state             172 source4/libcli/smb_composite/fsinfo.c 	state->creq->async.fn = fsinfo_composite_handler;
state             190 source4/libcli/smb_composite/fsinfo.c 		struct fsinfo_state *state = talloc_get_type(c->private_data, struct fsinfo_state);
state             191 source4/libcli/smb_composite/fsinfo.c 		talloc_steal(mem_ctx, state->io->out.fsinfo);
state              48 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state              59 source4/libcli/smb_composite/loadfile.c 	state->req = smb_raw_close_send(tree, io_close);
state              60 source4/libcli/smb_composite/loadfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              63 source4/libcli/smb_composite/loadfile.c 	state->req->async.fn = loadfile_handler;
state              64 source4/libcli/smb_composite/loadfile.c 	state->req->async.private_data = c;
state              65 source4/libcli/smb_composite/loadfile.c 	state->stage = LOADFILE_CLOSE;
state              77 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state              78 source4/libcli/smb_composite/loadfile.c 	struct smbcli_tree *tree = state->req->tree;
state              81 source4/libcli/smb_composite/loadfile.c 	status = smb_raw_open_recv(state->req, c, state->io_open);
state              85 source4/libcli/smb_composite/loadfile.c 	if (state->io_open->ntcreatex.out.size > 100*1000*1000) {
state              90 source4/libcli/smb_composite/loadfile.c 	io->out.size = state->io_open->ntcreatex.out.size;
state              95 source4/libcli/smb_composite/loadfile.c 		return setup_close(c, tree, state->io_open->ntcreatex.out.file.fnum);
state              99 source4/libcli/smb_composite/loadfile.c 	state->io_read = talloc(c, union smb_read);
state             100 source4/libcli/smb_composite/loadfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->io_read);
state             102 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.level        = RAW_READ_READX;
state             103 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.file.fnum = state->io_open->ntcreatex.out.file.fnum;
state             104 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.offset    = 0;
state             105 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.mincnt    = MIN(32768, io->out.size);
state             106 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.maxcnt    = state->io_read->readx.in.mincnt;
state             107 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.remaining = 0;
state             108 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.read_for_execute = false;
state             109 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.out.data     = io->out.data;
state             111 source4/libcli/smb_composite/loadfile.c 	state->req = smb_raw_read_send(tree, state->io_read);
state             112 source4/libcli/smb_composite/loadfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             115 source4/libcli/smb_composite/loadfile.c 	state->req->async.fn = loadfile_handler;
state             116 source4/libcli/smb_composite/loadfile.c 	state->req->async.private_data = c;
state             117 source4/libcli/smb_composite/loadfile.c 	state->stage = LOADFILE_READ;
state             119 source4/libcli/smb_composite/loadfile.c 	talloc_free(state->io_open);
state             132 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state             133 source4/libcli/smb_composite/loadfile.c 	struct smbcli_tree *tree = state->req->tree;
state             136 source4/libcli/smb_composite/loadfile.c 	status = smb_raw_read_recv(state->req, state->io_read);
state             140 source4/libcli/smb_composite/loadfile.c 	if (state->io_read->readx.in.offset +
state             141 source4/libcli/smb_composite/loadfile.c 	    state->io_read->readx.out.nread == io->out.size) {
state             142 source4/libcli/smb_composite/loadfile.c 		return setup_close(c, tree, state->io_read->readx.in.file.fnum);
state             146 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.offset += state->io_read->readx.out.nread;
state             147 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.in.mincnt = MIN(32768, io->out.size - state->io_read->readx.in.offset);
state             148 source4/libcli/smb_composite/loadfile.c 	state->io_read->readx.out.data = io->out.data + state->io_read->readx.in.offset;
state             150 source4/libcli/smb_composite/loadfile.c 	state->req = smb_raw_read_send(tree, state->io_read);
state             151 source4/libcli/smb_composite/loadfile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             154 source4/libcli/smb_composite/loadfile.c 	state->req->async.fn = loadfile_handler;
state             155 source4/libcli/smb_composite/loadfile.c 	state->req->async.private_data = c;
state             166 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state             169 source4/libcli/smb_composite/loadfile.c 	status = smbcli_request_simple_recv(state->req);
state             172 source4/libcli/smb_composite/loadfile.c 	c->state = COMPOSITE_STATE_DONE;
state             184 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state             188 source4/libcli/smb_composite/loadfile.c 	switch (state->stage) {
state             190 source4/libcli/smb_composite/loadfile.c 		c->status = loadfile_open(c, state->io);
state             194 source4/libcli/smb_composite/loadfile.c 		c->status = loadfile_read(c, state->io);
state             198 source4/libcli/smb_composite/loadfile.c 		c->status = loadfile_close(c, state->io);
state             203 source4/libcli/smb_composite/loadfile.c 		c->state = COMPOSITE_STATE_ERROR;
state             206 source4/libcli/smb_composite/loadfile.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             220 source4/libcli/smb_composite/loadfile.c 	struct loadfile_state *state;
state             225 source4/libcli/smb_composite/loadfile.c 	state = talloc(c, struct loadfile_state);
state             226 source4/libcli/smb_composite/loadfile.c 	if (state == NULL) goto failed;
state             228 source4/libcli/smb_composite/loadfile.c 	state->io = io;
state             230 source4/libcli/smb_composite/loadfile.c 	c->private_data = state;
state             231 source4/libcli/smb_composite/loadfile.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             235 source4/libcli/smb_composite/loadfile.c 	state->io_open = talloc_zero(c, union smb_open);
state             236 source4/libcli/smb_composite/loadfile.c 	if (state->io_open == NULL) goto failed;
state             238 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.level               = RAW_OPEN_NTCREATEX;
state             239 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.flags            = NTCREATEX_FLAGS_EXTENDED;
state             240 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.access_mask      = SEC_FILE_READ_DATA;
state             241 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.file_attr        = FILE_ATTRIBUTE_NORMAL;
state             242 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.share_access     = NTCREATEX_SHARE_ACCESS_READ | NTCREATEX_SHARE_ACCESS_WRITE;
state             243 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN;
state             244 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.impersonation    = NTCREATEX_IMPERSONATION_ANONYMOUS;
state             245 source4/libcli/smb_composite/loadfile.c 	state->io_open->ntcreatex.in.fname            = io->in.fname;
state             248 source4/libcli/smb_composite/loadfile.c 	state->req = smb_raw_open_send(tree, state->io_open);
state             249 source4/libcli/smb_composite/loadfile.c 	if (state->req == NULL) goto failed;
state             252 source4/libcli/smb_composite/loadfile.c 	state->req->async.fn = loadfile_handler;
state             253 source4/libcli/smb_composite/loadfile.c 	state->req->async.private_data = c;
state             254 source4/libcli/smb_composite/loadfile.c 	state->stage = LOADFILE_OPEN;
state             274 source4/libcli/smb_composite/loadfile.c 		struct loadfile_state *state = talloc_get_type(c->private_data, struct loadfile_state);
state             275 source4/libcli/smb_composite/loadfile.c 		talloc_steal(mem_ctx, state->io->out.data);
state              50 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state = talloc_get_type(c->private_data, struct savefile_state);
state              61 source4/libcli/smb_composite/savefile.c 	state->req = smb_raw_close_send(tree, io_close);
state              62 source4/libcli/smb_composite/savefile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              65 source4/libcli/smb_composite/savefile.c 	state->stage = SAVEFILE_CLOSE;
state              66 source4/libcli/smb_composite/savefile.c 	state->req->async.fn = savefile_handler;
state              67 source4/libcli/smb_composite/savefile.c 	state->req->async.private_data = c;
state              79 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state = talloc_get_type(c->private_data, struct savefile_state);
state              81 source4/libcli/smb_composite/savefile.c 	struct smbcli_tree *tree = state->req->tree;
state              85 source4/libcli/smb_composite/savefile.c 	status = smb_raw_open_recv(state->req, c, state->io_open);
state              89 source4/libcli/smb_composite/savefile.c 		return setup_close(c, tree, state->io_open->ntcreatex.out.file.fnum);
state              97 source4/libcli/smb_composite/savefile.c 	io_write->writex.in.file.fnum = state->io_open->ntcreatex.out.file.fnum;
state             103 source4/libcli/smb_composite/savefile.c 	state->io_write = io_write;
state             105 source4/libcli/smb_composite/savefile.c 	state->req = smb_raw_write_send(tree, io_write);
state             106 source4/libcli/smb_composite/savefile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             109 source4/libcli/smb_composite/savefile.c 	state->stage = SAVEFILE_WRITE;
state             110 source4/libcli/smb_composite/savefile.c 	state->req->async.fn = savefile_handler;
state             111 source4/libcli/smb_composite/savefile.c 	state->req->async.private_data = c;
state             112 source4/libcli/smb_composite/savefile.c 	talloc_free(state->io_open);
state             125 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state = talloc_get_type(c->private_data, struct savefile_state);
state             126 source4/libcli/smb_composite/savefile.c 	struct smbcli_tree *tree = state->req->tree;
state             130 source4/libcli/smb_composite/savefile.c 	status = smb_raw_write_recv(state->req, state->io_write);
state             133 source4/libcli/smb_composite/savefile.c 	state->total_written += state->io_write->writex.out.nwritten;
state             136 source4/libcli/smb_composite/savefile.c 	if (state->io_write->writex.out.nwritten != state->io_write->writex.in.count ||
state             137 source4/libcli/smb_composite/savefile.c 	    state->total_written == io->in.size) {
state             138 source4/libcli/smb_composite/savefile.c 		return setup_close(c, tree, state->io_write->writex.in.file.fnum);
state             142 source4/libcli/smb_composite/savefile.c 	state->io_write->writex.in.offset = state->total_written;
state             143 source4/libcli/smb_composite/savefile.c 	state->io_write->writex.in.count = MIN(max_xmit - 100, 
state             144 source4/libcli/smb_composite/savefile.c 					       io->in.size - state->total_written);
state             145 source4/libcli/smb_composite/savefile.c 	state->io_write->writex.in.data = io->in.data + state->total_written;
state             147 source4/libcli/smb_composite/savefile.c 	state->req = smb_raw_write_send(tree, state->io_write);
state             148 source4/libcli/smb_composite/savefile.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             151 source4/libcli/smb_composite/savefile.c 	state->req->async.fn = savefile_handler;
state             152 source4/libcli/smb_composite/savefile.c 	state->req->async.private_data = c;
state             163 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state = talloc_get_type(c->private_data, struct savefile_state);
state             166 source4/libcli/smb_composite/savefile.c 	status = smbcli_request_simple_recv(state->req);
state             169 source4/libcli/smb_composite/savefile.c 	if (state->total_written != io->in.size) {
state             173 source4/libcli/smb_composite/savefile.c 	c->state = COMPOSITE_STATE_DONE;
state             185 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state = talloc_get_type(c->private_data, struct savefile_state);
state             189 source4/libcli/smb_composite/savefile.c 	switch (state->stage) {
state             191 source4/libcli/smb_composite/savefile.c 		c->status = savefile_open(c, state->io);
state             195 source4/libcli/smb_composite/savefile.c 		c->status = savefile_write(c, state->io);
state             199 source4/libcli/smb_composite/savefile.c 		c->status = savefile_close(c, state->io);
state             204 source4/libcli/smb_composite/savefile.c 		c->state = COMPOSITE_STATE_ERROR;
state             207 source4/libcli/smb_composite/savefile.c 	if (c->state >= COMPOSITE_STATE_DONE &&
state             221 source4/libcli/smb_composite/savefile.c 	struct savefile_state *state;
state             227 source4/libcli/smb_composite/savefile.c 	c->state = COMPOSITE_STATE_IN_PROGRESS;
state             230 source4/libcli/smb_composite/savefile.c 	state = talloc(c, struct savefile_state);
state             231 source4/libcli/smb_composite/savefile.c 	if (state == NULL) goto failed;
state             233 source4/libcli/smb_composite/savefile.c 	state->stage = SAVEFILE_OPEN;
state             234 source4/libcli/smb_composite/savefile.c 	state->total_written = 0;
state             235 source4/libcli/smb_composite/savefile.c 	state->io = io;
state             249 source4/libcli/smb_composite/savefile.c 	state->io_open = io_open;
state             252 source4/libcli/smb_composite/savefile.c 	state->req = smb_raw_open_send(tree, io_open);
state             253 source4/libcli/smb_composite/savefile.c 	if (state->req == NULL) goto failed;
state             256 source4/libcli/smb_composite/savefile.c 	state->req->async.fn = savefile_handler;
state             257 source4/libcli/smb_composite/savefile.c 	state->req->async.private_data = c;
state             258 source4/libcli/smb_composite/savefile.c 	c->private_data = state;
state              46 source4/libcli/smb_composite/sesssetup.c 	if (state->req) {
state              47 source4/libcli/smb_composite/sesssetup.c 		talloc_free(state->req);
state              48 source4/libcli/smb_composite/sesssetup.c 		state->req = NULL;
state              84 source4/libcli/smb_composite/sesssetup.c 	struct sesssetup_state *state = talloc_get_type(c->private_data, struct sesssetup_state);
state              96 source4/libcli/smb_composite/sesssetup.c 	state->remote_status = smb_raw_sesssetup_recv(req, state, &state->setup);
state              97 source4/libcli/smb_composite/sesssetup.c 	c->status = state->remote_status;
state              98 source4/libcli/smb_composite/sesssetup.c 	state->req = NULL;
state             104 source4/libcli/smb_composite/sesssetup.c 	if (!NT_STATUS_IS_OK(state->remote_status)) {
state             109 source4/libcli/smb_composite/sesssetup.c 	switch (state->setup.old.level) {
state             111 source4/libcli/smb_composite/sesssetup.c 		state->io->out.vuid = state->setup.old.out.vuid;
state             117 source4/libcli/smb_composite/sesssetup.c 			if (cli_credentials_wrong_password(state->io->in.credentials)) {
state             119 source4/libcli/smb_composite/sesssetup.c 							      state->io, 
state             120 source4/libcli/smb_composite/sesssetup.c 							      &state->req);
state             124 source4/libcli/smb_composite/sesssetup.c 					composite_continue_smb(c, state->req, request_handler, c);
state             132 source4/libcli/smb_composite/sesssetup.c 		state->io->out.vuid = state->setup.nt1.out.vuid;
state             136 source4/libcli/smb_composite/sesssetup.c 			if (cli_credentials_wrong_password(state->io->in.credentials)) {
state             138 source4/libcli/smb_composite/sesssetup.c 							      state->io, 
state             139 source4/libcli/smb_composite/sesssetup.c 							      &state->req);
state             143 source4/libcli/smb_composite/sesssetup.c 					composite_continue_smb(c, state->req, request_handler, c);
state             151 source4/libcli/smb_composite/sesssetup.c 		state->io->out.vuid = state->setup.spnego.out.vuid;
state             155 source4/libcli/smb_composite/sesssetup.c 			if (cli_credentials_wrong_password(state->io->in.credentials)) {
state             157 source4/libcli/smb_composite/sesssetup.c 								      state->io, 
state             158 source4/libcli/smb_composite/sesssetup.c 								      &state->req);
state             162 source4/libcli/smb_composite/sesssetup.c 					composite_continue_smb(c, state->req, request_handler, c);
state             171 source4/libcli/smb_composite/sesssetup.c 		if (NT_STATUS_EQUAL(state->gensec_status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
state             180 source4/libcli/smb_composite/sesssetup.c 			state->gensec_status = gensec_update(session->gensec, state,
state             181 source4/libcli/smb_composite/sesssetup.c 							 state->setup.spnego.out.secblob,
state             182 source4/libcli/smb_composite/sesssetup.c 							 &state->setup.spnego.in.secblob);
state             183 source4/libcli/smb_composite/sesssetup.c 			c->status = state->gensec_status;
state             189 source4/libcli/smb_composite/sesssetup.c 			state->setup.spnego.in.secblob = data_blob(NULL, 0);
state             192 source4/libcli/smb_composite/sesssetup.c 		if (NT_STATUS_IS_OK(state->remote_status)) {
state             193 source4/libcli/smb_composite/sesssetup.c 			if (state->setup.spnego.in.secblob.length) {
state             204 source4/libcli/smb_composite/sesssetup.c 		if (state->setup.spnego.in.secblob.length) {
state             210 source4/libcli/smb_composite/sesssetup.c 			session->vuid = state->io->out.vuid;
state             211 source4/libcli/smb_composite/sesssetup.c 			state->req = smb_raw_sesssetup_send(session, &state->setup);
state             213 source4/libcli/smb_composite/sesssetup.c 			if (state->req) {
state             214 source4/libcli/smb_composite/sesssetup.c 				state->req->sign_caller_checks = true;
state             216 source4/libcli/smb_composite/sesssetup.c 			composite_continue_smb(c, state->req, request_handler, c);
state             236 source4/libcli/smb_composite/sesssetup.c 	if (NT_STATUS_IS_OK(c->status) && !cli_credentials_is_anonymous(state->io->in.credentials)) {
state             262 source4/libcli/smb_composite/sesssetup.c 	struct sesssetup_state *state = talloc_get_type(c->private_data, struct sesssetup_state);
state             263 source4/libcli/smb_composite/sesssetup.c 	DATA_BLOB names_blob = NTLMv2_generate_names_blob(state, session->transport->socket->hostname, cli_credentials_get_domain(io->in.credentials));
state             277 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.level           = RAW_SESSSETUP_NT1;
state             278 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.bufsize      = session->transport->options.max_xmit;
state             279 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.mpx_max      = session->transport->options.max_mux;
state             280 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.vc_num       = 1;
state             281 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.sesskey      = io->in.sesskey;
state             282 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.capabilities = io->in.capabilities;
state             283 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.os           = "Unix";
state             284 source4/libcli/smb_composite/sesssetup.c 	state->setup.nt1.in.lanman       = talloc_asprintf(state, "Samba %s", SAMBA_VERSION_STRING);
state             286 source4/libcli/smb_composite/sesssetup.c 	cli_credentials_get_ntlm_username_domain(io->in.credentials, state, 
state             287 source4/libcli/smb_composite/sesssetup.c 						 &state->setup.nt1.in.user,
state             288 source4/libcli/smb_composite/sesssetup.c 						 &state->setup.nt1.in.domain);
state             292 source4/libcli/smb_composite/sesssetup.c 		nt_status = cli_credentials_get_ntlm_response(io->in.credentials, state, 
state             296 source4/libcli/smb_composite/sesssetup.c 							      &state->setup.nt1.in.password1,
state             297 source4/libcli/smb_composite/sesssetup.c 							      &state->setup.nt1.in.password2,
state             302 source4/libcli/smb_composite/sesssetup.c 		state->setup.nt1.in.password1 = data_blob_talloc(state, password, strlen(password));
state             303 source4/libcli/smb_composite/sesssetup.c 		state->setup.nt1.in.password2 = data_blob(NULL, 0);
state             309 source4/libcli/smb_composite/sesssetup.c 	*req = smb_raw_sesssetup_send(session, &state->setup);
state             316 source4/libcli/smb_composite/sesssetup.c 						    state->setup.nt1.in.password2);
state             335 source4/libcli/smb_composite/sesssetup.c 	struct sesssetup_state *state = talloc_get_type(c->private_data, struct sesssetup_state);
state             337 source4/libcli/smb_composite/sesssetup.c 	DATA_BLOB names_blob = NTLMv2_generate_names_blob(state, session->transport->socket->hostname, cli_credentials_get_domain(io->in.credentials));
state             348 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.level      = RAW_SESSSETUP_OLD;
state             349 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.bufsize = session->transport->options.max_xmit;
state             350 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.mpx_max = session->transport->options.max_mux;
state             351 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.vc_num  = 1;
state             352 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.sesskey = io->in.sesskey;
state             353 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.os      = "Unix";
state             354 source4/libcli/smb_composite/sesssetup.c 	state->setup.old.in.lanman  = talloc_asprintf(state, "Samba %s", SAMBA_VERSION_STRING);
state             355 source4/libcli/smb_composite/sesssetup.c 	cli_credentials_get_ntlm_username_domain(io->in.credentials, state, 
state             356 source4/libcli/smb_composite/sesssetup.c 						 &state->setup.old.in.user,
state             357 source4/libcli/smb_composite/sesssetup.c 						 &state->setup.old.in.domain);
state             360 source4/libcli/smb_composite/sesssetup.c 		nt_status = cli_credentials_get_ntlm_response(io->in.credentials, state, 
state             364 source4/libcli/smb_composite/sesssetup.c 							      &state->setup.old.in.password,
state             372 source4/libcli/smb_composite/sesssetup.c 		state->setup.old.in.password = data_blob_talloc(state, password, strlen(password));
state             378 source4/libcli/smb_composite/sesssetup.c 	*req = smb_raw_sesssetup_send(session, &state->setup);
state             394 source4/libcli/smb_composite/sesssetup.c 	struct sesssetup_state *state = talloc_get_type(c->private_data, struct sesssetup_state);
state             398 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.level           = RAW_SESSSETUP_SPNEGO;
state             399 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.bufsize      = session->transport->options.max_xmit;
state             400 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.mpx_max      = session->transport->options.max_mux;
state             401 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.vc_num       = 1;
state             402 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.sesskey      = io->in.sesskey;
state             403 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.capabilities = io->in.capabilities;
state             404 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.os           = "Unix";
state             405 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.lanman       = talloc_asprintf(state, "Samba %s", SAMBA_VERSION_STRING);
state             406 source4/libcli/smb_composite/sesssetup.c 	state->setup.spnego.in.workgroup    = io->in.workgroup;
state             466 source4/libcli/smb_composite/sesssetup.c 		status = gensec_update(session->gensec, state,
state             468 source4/libcli/smb_composite/sesssetup.c 				       &state->setup.spnego.in.secblob);
state             470 source4/libcli/smb_composite/sesssetup.c 		status = gensec_update(session->gensec, state,
state             472 source4/libcli/smb_composite/sesssetup.c 				       &state->setup.spnego.in.secblob);
state             483 source4/libcli/smb_composite/sesssetup.c 	state->gensec_status = status;
state             485 source4/libcli/smb_composite/sesssetup.c 	*req = smb_raw_sesssetup_send(session, &state->setup);
state             510 source4/libcli/smb_composite/sesssetup.c 	struct sesssetup_state *state;
state             516 source4/libcli/smb_composite/sesssetup.c 	state = talloc_zero(c, struct sesssetup_state);
state             517 source4/libcli/smb_composite/sesssetup.c 	if (composite_nomem(state, c)) return c;
state             518 source4/libcli/smb_composite/sesssetup.c 	c->private_data = state;
state             520 source4/libcli/smb_composite/sesssetup.c 	state->io = io;
state             522 source4/libcli/smb_composite/sesssetup.c 	talloc_set_destructor(state, sesssetup_state_destructor);
state             533 source4/libcli/smb_composite/sesssetup.c 		status = session_setup_old(c, session, io, &state->req);
state             536 source4/libcli/smb_composite/sesssetup.c 		status = session_setup_nt1(c, session, io, &state->req);
state             538 source4/libcli/smb_composite/sesssetup.c 		status = session_setup_spnego(c, session, io, &state->req);
state             543 source4/libcli/smb_composite/sesssetup.c 		composite_continue_smb(c, state->req, request_handler, c);	
state              88 source4/libcli/wbclient/wbclient.c 	struct wbc_idmap_state *state;
state              95 source4/libcli/wbclient/wbclient.c 	state = talloc(ctx, struct wbc_idmap_state);
state              96 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state, ctx)) return ctx;
state              97 source4/libcli/wbclient/wbclient.c 	ctx->private_data = state;
state              99 source4/libcli/wbclient/wbclient.c 	state->req = talloc(state, struct winbind_get_idmap);
state             100 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state->req, ctx)) return ctx;
state             102 source4/libcli/wbclient/wbclient.c 	state->req->in.count = count;
state             103 source4/libcli/wbclient/wbclient.c 	state->req->in.level = WINBIND_IDMAP_LEVEL_SIDS_TO_XIDS;
state             104 source4/libcli/wbclient/wbclient.c 	state->req->in.ids = ids;
state             105 source4/libcli/wbclient/wbclient.c 	state->ctx = ctx;
state             107 source4/libcli/wbclient/wbclient.c 	state->irpc_req = IRPC_CALL_SEND(wbc_ctx->msg_ctx, wbc_ctx->ids[0],
state             108 source4/libcli/wbclient/wbclient.c 					 winbind, WINBIND_GET_IDMAP, state->req,
state             109 source4/libcli/wbclient/wbclient.c 					 state);
state             110 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state->irpc_req, ctx)) return ctx;
state             112 source4/libcli/wbclient/wbclient.c 	composite_continue_irpc(ctx, state->irpc_req, sids_to_xids_recv_ids,
state             113 source4/libcli/wbclient/wbclient.c 				state);
state             119 source4/libcli/wbclient/wbclient.c 	struct wbc_idmap_state *state = talloc_get_type_abort(
state             123 source4/libcli/wbclient/wbclient.c 	state->ctx->status = irpc_call_recv(state->irpc_req);
state             124 source4/libcli/wbclient/wbclient.c 	if (!composite_is_ok(state->ctx)) return;
state             126 source4/libcli/wbclient/wbclient.c 	state->ids = state->req->out.ids;
state             127 source4/libcli/wbclient/wbclient.c 	composite_done(state->ctx);
state             136 source4/libcli/wbclient/wbclient.c 		struct wbc_idmap_state *state =	talloc_get_type_abort(
state             139 source4/libcli/wbclient/wbclient.c 		*ids = state->ids;
state             153 source4/libcli/wbclient/wbclient.c 	struct wbc_idmap_state *state;
state             160 source4/libcli/wbclient/wbclient.c 	state = talloc(ctx, struct wbc_idmap_state);
state             161 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state, ctx)) return ctx;
state             162 source4/libcli/wbclient/wbclient.c 	ctx->private_data = state;
state             164 source4/libcli/wbclient/wbclient.c 	state->req = talloc(state, struct winbind_get_idmap);
state             165 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state->req, ctx)) return ctx;
state             167 source4/libcli/wbclient/wbclient.c 	state->req->in.count = count;
state             168 source4/libcli/wbclient/wbclient.c 	state->req->in.level = WINBIND_IDMAP_LEVEL_XIDS_TO_SIDS;
state             169 source4/libcli/wbclient/wbclient.c 	state->req->in.ids = ids;
state             170 source4/libcli/wbclient/wbclient.c 	state->ctx = ctx;
state             172 source4/libcli/wbclient/wbclient.c 	state->irpc_req = IRPC_CALL_SEND(wbc_ctx->msg_ctx, wbc_ctx->ids[0],
state             173 source4/libcli/wbclient/wbclient.c 					 winbind, WINBIND_GET_IDMAP, state->req,
state             174 source4/libcli/wbclient/wbclient.c 					 state);
state             175 source4/libcli/wbclient/wbclient.c 	if (composite_nomem(state->irpc_req, ctx)) return ctx;
state             177 source4/libcli/wbclient/wbclient.c 	composite_continue_irpc(ctx, state->irpc_req, xids_to_sids_recv_ids,
state             178 source4/libcli/wbclient/wbclient.c 			state);
state             185 source4/libcli/wbclient/wbclient.c 	struct wbc_idmap_state *state = talloc_get_type_abort(
state             189 source4/libcli/wbclient/wbclient.c 	state->ctx->status = irpc_call_recv(state->irpc_req);
state             190 source4/libcli/wbclient/wbclient.c 	if (!composite_is_ok(state->ctx)) return;
state             192 source4/libcli/wbclient/wbclient.c 	state->ids = state->req->out.ids;
state             193 source4/libcli/wbclient/wbclient.c 	composite_done(state->ctx);
state             202 source4/libcli/wbclient/wbclient.c 		struct wbc_idmap_state *state =	talloc_get_type_abort(
state             205 source4/libcli/wbclient/wbclient.c 		*ids = state->ids;
state             250 source4/libcli/wrepl/winsrepl.c 	if (req->state == WREPL_REQUEST_RECV) {
state             253 source4/libcli/wrepl/winsrepl.c 	req->state = WREPL_REQUEST_ERROR;
state             263 source4/libcli/wrepl/winsrepl.c 	while (req->state < WREPL_REQUEST_DONE) {
state             280 source4/libcli/wrepl/winsrepl.c 	struct wrepl_connect_state *state = talloc_get_type(creq->async.private_data, 
state             282 source4/libcli/wrepl/winsrepl.c 	struct wrepl_socket *wrepl_socket = state->wrepl_socket;
state             283 source4/libcli/wrepl/winsrepl.c 	struct composite_context *result = state->result;
state             285 source4/libcli/wrepl/winsrepl.c 	result->status = socket_connect_recv(state->creq);
state             324 source4/libcli/wrepl/winsrepl.c 	struct wrepl_connect_state *state;
state             330 source4/libcli/wrepl/winsrepl.c 	result->state		= COMPOSITE_STATE_IN_PROGRESS;
state             333 source4/libcli/wrepl/winsrepl.c 	state = talloc_zero(result, struct wrepl_connect_state);
state             334 source4/libcli/wrepl/winsrepl.c 	if (composite_nomem(state, result)) return result;
state             335 source4/libcli/wrepl/winsrepl.c 	result->private_data	= state;
state             336 source4/libcli/wrepl/winsrepl.c 	state->result		= result;
state             337 source4/libcli/wrepl/winsrepl.c 	state->wrepl_socket	= wrepl_socket;
state             339 source4/libcli/wrepl/winsrepl.c 	us = socket_address_from_strings(state, wrepl_socket->sock->backend_name, 
state             343 source4/libcli/wrepl/winsrepl.c 	peer = socket_address_from_strings(state, wrepl_socket->sock->backend_name, 
state             347 source4/libcli/wrepl/winsrepl.c 	state->creq = socket_connect_send(wrepl_socket->sock, us, peer,
state             349 source4/libcli/wrepl/winsrepl.c 	composite_continue(result, state->creq, wrepl_connect_handler, state);
state             358 source4/libcli/wrepl/winsrepl.c 	struct wrepl_connect_state *state = talloc_get_type(result->private_data,
state             360 source4/libcli/wrepl/winsrepl.c 	struct wrepl_socket *wrepl_socket = state->wrepl_socket;
state             402 source4/libcli/wrepl/winsrepl.c 	if (req->state == WREPL_REQUEST_RECV) {
state             407 source4/libcli/wrepl/winsrepl.c 		req->state	= WREPL_REQUEST_ERROR;
state             409 source4/libcli/wrepl/winsrepl.c 		req->state	= WREPL_REQUEST_DONE;
state             483 source4/libcli/wrepl/winsrepl.c 	req->state        = WREPL_REQUEST_RECV;
state             814 source4/libcli/wrepl/winsrepl.c 		name->state	= WREPL_NAME_STATE(wname->flags);
state              75 source4/libcli/wrepl/winsrepl.h 	enum wrepl_request_state state;
state             129 source4/libcli/wrepl/winsrepl.h 	(type | (state << 2) | (node << 5) | \
state             145 source4/libcli/wrepl/winsrepl.h 			enum wrepl_name_state state;
state             178 source4/libnet/libnet_samsync.c 	struct libnet_SamSync_state *state;
state             285 source4/libnet/libnet_samsync.c 	state = talloc(samsync_ctx, struct libnet_SamSync_state);
state             286 source4/libnet/libnet_samsync.c 	if (!state) {
state             292 source4/libnet/libnet_samsync.c 	state->domain_name     = c->out.domain_name;
state             293 source4/libnet/libnet_samsync.c 	state->domain_sid      = c->out.domain_sid;
state             294 source4/libnet/libnet_samsync.c 	state->realm           = c->out.realm;
state             295 source4/libnet/libnet_samsync.c 	state->domain_guid     = c->out.guid;
state             296 source4/libnet/libnet_samsync.c 	state->machine_net_ctx = machine_net_ctx;
state             297 source4/libnet/libnet_samsync.c 	state->netlogon_pipe   = p;
state             306 source4/libnet/libnet_samsync.c 					  state, 
state              69 source4/libnet/libnet_samsync_ldb.c 	struct ldb_dn *basedn = samdb_search_dn(state->sam_ldb, mem_ctx,
state              70 source4/libnet/libnet_samsync_ldb.c 						state->base_dn[SAM_DATABASE_DOMAIN],
state              83 source4/libnet/libnet_samsync_ldb.c 						ldb_dn_get_linearized(state->base_dn[SAM_DATABASE_DOMAIN]));
state              97 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_string(state->sam_ldb, mem_ctx, msg,
state             104 source4/libnet/libnet_samsync_ldb.c 	ret = ldb_add(state->sam_ldb, msg);
state             109 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             137 source4/libnet/libnet_samsync_ldb.c 		partitions_basedn = samdb_partitions_dn(state->sam_ldb, mem_ctx);
state             139 source4/libnet/libnet_samsync_ldb.c 		ret_domain = gendb_search(state->sam_ldb, mem_ctx, partitions_basedn, &msgs_domain, domain_attrs,
state             143 source4/libnet/libnet_samsync_ldb.c 			*error_string = talloc_asprintf(mem_ctx, "gendb_search for domain failed: %s", ldb_errstring(state->sam_ldb));
state             153 source4/libnet/libnet_samsync_ldb.c 		state->base_dn[database] = samdb_result_dn(state->sam_ldb, state, msgs_domain[0], "nCName", NULL);
state             155 source4/libnet/libnet_samsync_ldb.c 		if (state->dom_sid[database]) {
state             159 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_dom_sid(state->sam_ldb, mem_ctx, 
state             160 source4/libnet/libnet_samsync_ldb.c 					      msg, "objectSid", state->dom_sid[database]);
state             163 source4/libnet/libnet_samsync_ldb.c 			state->dom_sid[database] = samdb_search_dom_sid(state->sam_ldb, state,
state             164 source4/libnet/libnet_samsync_ldb.c 									state->base_dn[database], 
state             168 source4/libnet/libnet_samsync_ldb.c 		if (state->samsync_state->domain_guid) {
state             172 source4/libnet/libnet_samsync_ldb.c 						       state->samsync_state->domain_guid,
state             184 source4/libnet/libnet_samsync_ldb.c 		const char *dnstring = samdb_search_string(state->sam_ldb, mem_ctx, NULL,
state             186 source4/libnet/libnet_samsync_ldb.c 		state->base_dn[database] = ldb_dn_new(state, state->sam_ldb, dnstring);
state             187 source4/libnet/libnet_samsync_ldb.c 		if ( ! ldb_dn_validate(state->base_dn[database])) {
state             195 source4/libnet/libnet_samsync_ldb.c 	msg->dn = talloc_reference(mem_ctx, state->base_dn[database]);
state             200 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_string(state->sam_ldb, mem_ctx, 
state             203 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_int64(state->sam_ldb, mem_ctx, 
state             206 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_uint(state->sam_ldb, mem_ctx, 
state             209 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_int64(state->sam_ldb, mem_ctx, 
state             212 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_int64(state->sam_ldb, mem_ctx, 
state             215 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_uint(state->sam_ldb, mem_ctx, 
state             218 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_uint64(state->sam_ldb, mem_ctx, 
state             222 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_uint64(state->sam_ldb, mem_ctx, 
state             227 source4/libnet/libnet_samsync_ldb.c 	ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             258 source4/libnet/libnet_samsync_ldb.c 	user_sid = dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid);
state             270 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database],
state             277 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             291 source4/libnet/libnet_samsync_ldb.c 	if (state->remote_ldb) {
state             292 source4/libnet/libnet_samsync_ldb.c 		ret = gendb_search(state->remote_ldb, mem_ctx, state->base_dn[database],
state             299 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->remote_ldb));
state             303 source4/libnet/libnet_samsync_ldb.c 							ldb_dn_get_linearized(state->base_dn[database]),
state             324 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_ ## type(state->sam_ldb, mem_ctx, msg, \
state             327 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg, \
state             335 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_dom_sid(state->sam_ldb, mem_ctx, msg, 
state             336 source4/libnet/libnet_samsync_ldb.c 				  "objectSid", dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))) {
state             350 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_logon_hours(state->sam_ldb, mem_ctx, msg, "logonHours", &user->logon_hours) != 0) { 
state             360 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_acct_flags(state->sam_ldb, mem_ctx, msg, 
state             368 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,  
state             372 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_hash(state->sam_ldb, mem_ctx, msg,  
state             375 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,  
state             379 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_hash(state->sam_ldb, mem_ctx, msg,  
state             382 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,  
state             388 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_parameters(state->sam_ldb, mem_ctx, msg, "userParameters", &user->parameters) != 0) {
state             402 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,  
state             427 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, 
state             430 source4/libnet/libnet_samsync_ldb.c 			msg->dn = ldb_dn_copy(mem_ctx, state->base_dn[database]);
state             437 source4/libnet/libnet_samsync_ldb.c 		ret = ldb_add(state->sam_ldb, msg);
state             444 source4/libnet/libnet_samsync_ldb.c 								ldb_errstring(state->sam_ldb));
state             448 source4/libnet/libnet_samsync_ldb.c 				ret = ldb_add(state->sam_ldb, msg);
state             453 source4/libnet/libnet_samsync_ldb.c 									ldb_errstring(state->sam_ldb));
state             459 source4/libnet/libnet_samsync_ldb.c 		ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             463 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->sam_ldb));
state             483 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database],
state             485 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             488 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             496 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             501 source4/libnet/libnet_samsync_ldb.c 	ret = ldb_delete(state->sam_ldb, msgs[0]->dn);
state             505 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             535 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             537 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             540 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             548 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             559 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_ ## type(state->sam_ldb, mem_ctx, msg, \
state             562 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg, \
state             569 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_dom_sid(state->sam_ldb, mem_ctx, msg, 
state             570 source4/libnet/libnet_samsync_ldb.c 				  "objectSid", dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))) {
state             582 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, 
state             584 source4/libnet/libnet_samsync_ldb.c 		msg->dn = ldb_dn_copy(mem_ctx, state->base_dn[database]);
state             590 source4/libnet/libnet_samsync_ldb.c 		ret = ldb_add(state->sam_ldb, msg);
state             594 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->sam_ldb));
state             598 source4/libnet/libnet_samsync_ldb.c 		ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             602 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->sam_ldb));
state             622 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             624 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             627 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             635 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             640 source4/libnet/libnet_samsync_ldb.c 	ret = ldb_delete(state->sam_ldb, msgs[0]->dn);
state             644 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             671 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             673 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             676 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             684 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             695 source4/libnet/libnet_samsync_ldb.c 		ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             697 source4/libnet/libnet_samsync_ldb.c 				   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], group_member->rids[i]))); 
state             700 source4/libnet/libnet_samsync_ldb.c 			*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             707 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, "member", ldb_dn_alloc_linearized(mem_ctx, msgs[0]->dn));
state             713 source4/libnet/libnet_samsync_ldb.c 	ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             717 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             747 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             749 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             752 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             760 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             771 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_ ## type(state->sam_ldb, mem_ctx, msg, \
state             774 source4/libnet/libnet_samsync_ldb.c 			samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg, \
state             781 source4/libnet/libnet_samsync_ldb.c 	if (samdb_msg_add_dom_sid(state->sam_ldb, mem_ctx, msg, 
state             782 source4/libnet/libnet_samsync_ldb.c 				  "objectSid", dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))) {
state             790 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_uint(state->sam_ldb, mem_ctx, msg, "groupType", 0x80000004);
state             796 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, 
state             798 source4/libnet/libnet_samsync_ldb.c 		msg->dn = ldb_dn_copy(mem_ctx, state->base_dn[database]);
state             804 source4/libnet/libnet_samsync_ldb.c 		ret = ldb_add(state->sam_ldb, msg);
state             808 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->sam_ldb));
state             812 source4/libnet/libnet_samsync_ldb.c 		ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             816 source4/libnet/libnet_samsync_ldb.c 							ldb_errstring(state->sam_ldb));
state             836 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             838 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             841 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             849 source4/libnet/libnet_samsync_ldb.c 	ret = ldb_delete(state->sam_ldb, msgs[0]->dn);
state             853 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             880 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[database], &msgs, attrs,
state             882 source4/libnet/libnet_samsync_ldb.c 			   ldap_encode_ndr_dom_sid(mem_ctx, dom_sid_add_rid(mem_ctx, state->dom_sid[database], rid))); 
state             885 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             893 source4/libnet/libnet_samsync_ldb.c 									       state->dom_sid[database], 
state             905 source4/libnet/libnet_samsync_ldb.c 		ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[SAM_DATABASE_DOMAIN], &msgs, attrs,
state             910 source4/libnet/libnet_samsync_ldb.c 			*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             914 source4/libnet/libnet_samsync_ldb.c 			nt_status = samsync_ldb_add_foreignSecurityPrincipal(mem_ctx, state,
state             926 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, "member", ldb_dn_alloc_linearized(mem_ctx, alias_member_dn));
state             931 source4/libnet/libnet_samsync_ldb.c 	ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state             935 source4/libnet/libnet_samsync_ldb.c 						ldb_errstring(state->sam_ldb));
state             964 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[SAM_DATABASE_DOMAIN], &msgs, attrs,
state             968 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state             972 source4/libnet/libnet_samsync_ldb.c 		nt_status = samsync_ldb_add_foreignSecurityPrincipal(mem_ctx, state,
state             991 source4/libnet/libnet_samsync_ldb.c 		samdb_msg_add_string(state->sam_ldb, mem_ctx, msg, "privilege",
state             995 source4/libnet/libnet_samsync_ldb.c 	ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state            1024 source4/libnet/libnet_samsync_ldb.c 	ret = gendb_search(state->sam_ldb, mem_ctx, state->base_dn[SAM_DATABASE_DOMAIN], &msgs, attrs,
state            1029 source4/libnet/libnet_samsync_ldb.c 		*error_string = talloc_asprintf(mem_ctx, "gendb_search failed: %s", ldb_errstring(state->sam_ldb));
state            1041 source4/libnet/libnet_samsync_ldb.c 	samdb_msg_add_delete(state->sam_ldb, mem_ctx, msg,  
state            1044 source4/libnet/libnet_samsync_ldb.c 	ret = samdb_replace(state->sam_ldb, mem_ctx, msg);
state            1061 source4/libnet/libnet_samsync_ldb.c 	struct samsync_ldb_state *state = talloc_get_type(private_data, struct samsync_ldb_state);
state            1068 source4/libnet/libnet_samsync_ldb.c 						      state,
state            1077 source4/libnet/libnet_samsync_ldb.c 						    state,
state            1086 source4/libnet/libnet_samsync_ldb.c 						    state,
state            1095 source4/libnet/libnet_samsync_ldb.c 						     state,
state            1104 source4/libnet/libnet_samsync_ldb.c 						     state,
state            1113 source4/libnet/libnet_samsync_ldb.c 							    state,
state            1122 source4/libnet/libnet_samsync_ldb.c 						     state,
state            1131 source4/libnet/libnet_samsync_ldb.c 						     state,
state            1140 source4/libnet/libnet_samsync_ldb.c 							    state,
state            1149 source4/libnet/libnet_samsync_ldb.c 						       state,
state            1158 source4/libnet/libnet_samsync_ldb.c 						       state,
state            1179 source4/libnet/libnet_samsync_ldb.c 	struct samsync_ldb_state *state = talloc_get_type(private_data, struct samsync_ldb_state);
state            1183 source4/libnet/libnet_samsync_ldb.c 	state->samsync_state = samsync_state;
state            1185 source4/libnet/libnet_samsync_ldb.c 	ZERO_STRUCT(state->dom_sid);
state            1186 source4/libnet/libnet_samsync_ldb.c 	if (state->samsync_state->domain_sid) {
state            1187 source4/libnet/libnet_samsync_ldb.c 		state->dom_sid[SAM_DATABASE_DOMAIN] = dom_sid_dup(state, state->samsync_state->domain_sid);
state            1190 source4/libnet/libnet_samsync_ldb.c 	state->dom_sid[SAM_DATABASE_BUILTIN] = dom_sid_parse_talloc(state, SID_BUILTIN);
state            1192 source4/libnet/libnet_samsync_ldb.c 	if (state->samsync_state->realm) {
state            1198 source4/libnet/libnet_samsync_ldb.c 		ldap_url = talloc_asprintf(state, "ldap://%s", server);
state            1200 source4/libnet/libnet_samsync_ldb.c 		state->remote_ldb = ldb_wrap_connect(mem_ctx, 
state            1201 source4/libnet/libnet_samsync_ldb.c 						     state->samsync_state->machine_net_ctx->event_ctx,
state            1202 source4/libnet/libnet_samsync_ldb.c 						     state->samsync_state->machine_net_ctx->lp_ctx, 
state            1204 source4/libnet/libnet_samsync_ldb.c 						     NULL, state->samsync_state->machine_net_ctx->cred,
state            1206 source4/libnet/libnet_samsync_ldb.c 		if (!state->remote_ldb) {
state            1211 source4/libnet/libnet_samsync_ldb.c 		state->remote_ldb = NULL;
state            1220 source4/libnet/libnet_samsync_ldb.c 	struct samsync_ldb_state *state = talloc(mem_ctx, struct samsync_ldb_state);
state            1222 source4/libnet/libnet_samsync_ldb.c 	if (!state) {
state            1226 source4/libnet/libnet_samsync_ldb.c 	state->secrets         = NULL;
state            1227 source4/libnet/libnet_samsync_ldb.c 	state->trusted_domains = NULL;
state            1229 source4/libnet/libnet_samsync_ldb.c 	state->sam_ldb         = samdb_connect(mem_ctx, 
state            1239 source4/libnet/libnet_samsync_ldb.c 	r2.in.fn_ctx           = state;
state            1241 source4/libnet/libnet_samsync_ldb.c 	nt_status              = libnet_SamSync_netlogon(ctx, state, &r2);
state            1246 source4/libnet/libnet_samsync_ldb.c 		talloc_free(state);
state            1249 source4/libnet/libnet_samsync_ldb.c 	talloc_free(state);
state             508 source4/librpc/rpc/dcerpc.c 	switch (req->state) {
state             539 source4/librpc/rpc/dcerpc.c 		req->state = RPC_REQUEST_DONE;
state             662 source4/librpc/rpc/dcerpc.c 		req->state = RPC_REQUEST_DONE;
state             735 source4/librpc/rpc/dcerpc.c 	req->state = RPC_REQUEST_PENDING;
state             860 source4/librpc/rpc/dcerpc.c 		req->state = RPC_REQUEST_DONE;
state             917 source4/librpc/rpc/dcerpc.c 	req->state = RPC_REQUEST_DONE;
state             952 source4/librpc/rpc/dcerpc.c 	req->state = RPC_REQUEST_QUEUED;
state            1022 source4/librpc/rpc/dcerpc.c 	req->state = RPC_REQUEST_PENDING;
state            1079 source4/librpc/rpc/dcerpc.c 			req->state = RPC_REQUEST_DONE;
state            1086 source4/librpc/rpc/dcerpc.c 			req->state = RPC_REQUEST_DONE;
state            1115 source4/librpc/rpc/dcerpc.c 	while (req->state != RPC_REQUEST_DONE) {
state            1660 source4/librpc/rpc/dcerpc.c 	req->state = RPC_REQUEST_PENDING;
state             210 source4/librpc/rpc/dcerpc.h 	enum rpc_request_state state;
state             111 source4/librpc/rpc/dcerpc_auth.c 	struct bind_auth_state *state;
state             116 source4/librpc/rpc/dcerpc_auth.c 	state = talloc_get_type(c->private_data, struct bind_auth_state);
state             117 source4/librpc/rpc/dcerpc_auth.c 	sec = &state->pipe->conn->security_state;
state             129 source4/librpc/rpc/dcerpc_auth.c 	c->status = gensec_update(sec->generic_state, state,
state             131 source4/librpc/rpc/dcerpc_auth.c 				  &state->credentials);
state             141 source4/librpc/rpc/dcerpc_auth.c 	if (state->pipe->conn->flags & DCERPC_HEADER_SIGNING) {
state             145 source4/librpc/rpc/dcerpc_auth.c 	if (state->credentials.length == 0) {
state             150 source4/librpc/rpc/dcerpc_auth.c 	sec->auth_info->credentials = state->credentials;
state             154 source4/librpc/rpc/dcerpc_auth.c 		c->status = dcerpc_auth3(state->pipe, state);
state             155 source4/librpc/rpc/dcerpc_auth.c 		data_blob_free(&state->credentials);
state             165 source4/librpc/rpc/dcerpc_auth.c 	creq = dcerpc_alter_context_send(state->pipe, state,
state             166 source4/librpc/rpc/dcerpc_auth.c 					 &state->pipe->syntax,
state             167 source4/librpc/rpc/dcerpc_auth.c 					 &state->pipe->transfer_syntax);
state             168 source4/librpc/rpc/dcerpc_auth.c 	data_blob_free(&state->credentials);
state             192 source4/librpc/rpc/dcerpc_auth.c 	struct bind_auth_state *state =	talloc_get_type(c->private_data,
state             198 source4/librpc/rpc/dcerpc_auth.c 	if (!state->more_processing) {
state             230 source4/librpc/rpc/dcerpc_auth.c 	struct bind_auth_state *state;
state             239 source4/librpc/rpc/dcerpc_auth.c 	state = talloc(c, struct bind_auth_state);
state             240 source4/librpc/rpc/dcerpc_auth.c 	if (composite_nomem(state, c)) return c;
state             241 source4/librpc/rpc/dcerpc_auth.c 	c->private_data = state;
state             243 source4/librpc/rpc/dcerpc_auth.c 	state->pipe = p;
state             320 source4/librpc/rpc/dcerpc_auth.c 	c->status = gensec_update(sec->generic_state, state,
state             322 source4/librpc/rpc/dcerpc_auth.c 				  &state->credentials);
state             329 source4/librpc/rpc/dcerpc_auth.c 	state->more_processing = NT_STATUS_EQUAL(c->status,
state             332 source4/librpc/rpc/dcerpc_auth.c 	if (state->credentials.length == 0) {
state             337 source4/librpc/rpc/dcerpc_auth.c 	sec->auth_info->credentials = state->credentials;
state             341 source4/librpc/rpc/dcerpc_auth.c 	creq = dcerpc_bind_send(p, state, &syntax, &transfer_syntax);
state             342 source4/librpc/rpc/dcerpc_auth.c 	data_blob_free(&state->credentials);
state             360 source4/librpc/rpc/dcerpc_auth.c 	struct bind_auth_state *state = talloc_get_type(creq->private_data,
state             368 source4/librpc/rpc/dcerpc_auth.c 		state->pipe->conn->security_state.session_key = dcerpc_generic_session_key;
state              82 source4/librpc/rpc/dcerpc_smb.c 	struct smb_read_state *state;
state              87 source4/librpc/rpc/dcerpc_smb.c 	state = talloc_get_type(req->async.private_data, struct smb_read_state);
state              88 source4/librpc/rpc/dcerpc_smb.c 	smb = talloc_get_type(state->c->transport.private_data, struct smb_private);
state              89 source4/librpc/rpc/dcerpc_smb.c 	io = state->io;
state              91 source4/librpc/rpc/dcerpc_smb.c 	status = smb_raw_read_recv(state->req, io);
state              93 source4/librpc/rpc/dcerpc_smb.c 		pipe_dead(state->c, status);
state              94 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state              98 source4/librpc/rpc/dcerpc_smb.c 	state->received += io->readx.out.nread;
state             100 source4/librpc/rpc/dcerpc_smb.c 	if (state->received < 16) {
state             102 source4/librpc/rpc/dcerpc_smb.c 			 (int)state->received));
state             103 source4/librpc/rpc/dcerpc_smb.c 		pipe_dead(state->c, NT_STATUS_INFO_LENGTH_MISMATCH);
state             104 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state             108 source4/librpc/rpc/dcerpc_smb.c 	frag_length = dcerpc_get_frag_length(&state->data);
state             110 source4/librpc/rpc/dcerpc_smb.c 	if (frag_length <= state->received) {
state             111 source4/librpc/rpc/dcerpc_smb.c 		DATA_BLOB data = state->data;
state             112 source4/librpc/rpc/dcerpc_smb.c 		struct dcerpc_connection *c = state->c;
state             113 source4/librpc/rpc/dcerpc_smb.c 		data.length = state->received;
state             114 source4/librpc/rpc/dcerpc_smb.c 		talloc_steal(state->c, data.data);
state             115 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state             121 source4/librpc/rpc/dcerpc_smb.c 	state->data.data = talloc_realloc(state, state->data.data, uint8_t, frag_length);
state             123 source4/librpc/rpc/dcerpc_smb.c 	io->readx.in.mincnt = MIN(state->c->srv_max_xmit_frag, 
state             124 source4/librpc/rpc/dcerpc_smb.c 				  frag_length - state->received);
state             126 source4/librpc/rpc/dcerpc_smb.c 	io->readx.out.data = state->data.data + state->received;
state             128 source4/librpc/rpc/dcerpc_smb.c 	state->req = smb_raw_read_send(smb->tree, io);
state             129 source4/librpc/rpc/dcerpc_smb.c 	if (state->req == NULL) {
state             130 source4/librpc/rpc/dcerpc_smb.c 		pipe_dead(state->c, NT_STATUS_NO_MEMORY);
state             131 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state             135 source4/librpc/rpc/dcerpc_smb.c 	state->req->async.fn = smb_read_callback;
state             136 source4/librpc/rpc/dcerpc_smb.c 	state->req->async.private_data = state;
state             147 source4/librpc/rpc/dcerpc_smb.c 	struct smb_read_state *state;
state             150 source4/librpc/rpc/dcerpc_smb.c 	state = talloc(smb, struct smb_read_state);
state             151 source4/librpc/rpc/dcerpc_smb.c 	if (state == NULL) {
state             155 source4/librpc/rpc/dcerpc_smb.c 	state->c = c;
state             157 source4/librpc/rpc/dcerpc_smb.c 		state->received = 0;
state             158 source4/librpc/rpc/dcerpc_smb.c 		state->data = data_blob_talloc(state, NULL, 0x2000);
state             162 source4/librpc/rpc/dcerpc_smb.c 		state->received = blob->length;
state             163 source4/librpc/rpc/dcerpc_smb.c 		state->data = data_blob_talloc(state, NULL, frag_length);
state             164 source4/librpc/rpc/dcerpc_smb.c 		if (!state->data.data) {
state             165 source4/librpc/rpc/dcerpc_smb.c 			talloc_free(state);
state             168 source4/librpc/rpc/dcerpc_smb.c 		memcpy(state->data.data, blob->data, blob->length);
state             171 source4/librpc/rpc/dcerpc_smb.c 	state->io = talloc(state, union smb_read);
state             173 source4/librpc/rpc/dcerpc_smb.c 	io = state->io;
state             176 source4/librpc/rpc/dcerpc_smb.c 	io->readx.in.mincnt = state->data.length - state->received;
state             181 source4/librpc/rpc/dcerpc_smb.c 	io->readx.out.data = state->data.data + state->received;
state             188 source4/librpc/rpc/dcerpc_smb.c 	req->async.private_data = state;
state             190 source4/librpc/rpc/dcerpc_smb.c 	state->req = req;
state             224 source4/librpc/rpc/dcerpc_smb.c 	struct smb_trans_state *state = (struct smb_trans_state *)req->async.private_data;
state             225 source4/librpc/rpc/dcerpc_smb.c 	struct dcerpc_connection *c = state->c;
state             228 source4/librpc/rpc/dcerpc_smb.c 	status = smb_raw_trans_recv(req, state, state->trans);
state             236 source4/librpc/rpc/dcerpc_smb.c 		DATA_BLOB data = state->trans->out.data;
state             238 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state             244 source4/librpc/rpc/dcerpc_smb.c 	send_read_request_continue(c, &state->trans->out.data);
state             245 source4/librpc/rpc/dcerpc_smb.c 	talloc_free(state);
state             256 source4/librpc/rpc/dcerpc_smb.c 	struct smb_trans_state *state;
state             259 source4/librpc/rpc/dcerpc_smb.c 	state = talloc(smb, struct smb_trans_state);
state             260 source4/librpc/rpc/dcerpc_smb.c 	if (state == NULL) {
state             264 source4/librpc/rpc/dcerpc_smb.c 	state->c = c;
state             265 source4/librpc/rpc/dcerpc_smb.c 	state->trans = talloc(state, struct smb_trans2);
state             266 source4/librpc/rpc/dcerpc_smb.c 	trans = state->trans;
state             289 source4/librpc/rpc/dcerpc_smb.c         state->req = smb_raw_trans_send(smb->tree, trans);
state             290 source4/librpc/rpc/dcerpc_smb.c 	if (state->req == NULL) {
state             291 source4/librpc/rpc/dcerpc_smb.c 		talloc_free(state);
state             295 source4/librpc/rpc/dcerpc_smb.c 	state->req->async.fn = smb_trans_callback;
state             296 source4/librpc/rpc/dcerpc_smb.c 	state->req->async.private_data = state;
state             298 source4/librpc/rpc/dcerpc_smb.c 	talloc_steal(state, state->req);
state             435 source4/librpc/rpc/dcerpc_smb.c 	struct pipe_open_smb_state *state;
state             456 source4/librpc/rpc/dcerpc_smb.c 	state = talloc(ctx, struct pipe_open_smb_state);
state             457 source4/librpc/rpc/dcerpc_smb.c 	if (composite_nomem(state, ctx)) return ctx;
state             458 source4/librpc/rpc/dcerpc_smb.c 	ctx->private_data = state;
state             460 source4/librpc/rpc/dcerpc_smb.c 	state->c = c;
state             461 source4/librpc/rpc/dcerpc_smb.c 	state->tree = tree;
state             462 source4/librpc/rpc/dcerpc_smb.c 	state->ctx = ctx;
state             464 source4/librpc/rpc/dcerpc_smb.c 	state->open = talloc(state, union smb_open);
state             465 source4/librpc/rpc/dcerpc_smb.c 	if (composite_nomem(state->open, ctx)) return ctx;
state             467 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.level = RAW_OPEN_NTCREATEX;
state             468 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.flags = 0;
state             469 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.root_fid = 0;
state             470 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.access_mask = 
state             476 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.file_attr = 0;
state             477 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.alloc_size = 0;
state             478 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.share_access = 
state             481 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.open_disposition = NTCREATEX_DISP_OPEN;
state             482 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.create_options = 0;
state             483 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.impersonation =
state             485 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.security_flags = 0;
state             491 source4/librpc/rpc/dcerpc_smb.c 	state->open->ntcreatex.in.fname =
state             493 source4/librpc/rpc/dcerpc_smb.c 		talloc_strdup(state->open, pipe_name) :
state             494 source4/librpc/rpc/dcerpc_smb.c 		talloc_asprintf(state->open, "\\%s", pipe_name);
state             495 source4/librpc/rpc/dcerpc_smb.c 	if (composite_nomem(state->open->ntcreatex.in.fname, ctx)) return ctx;
state             497 source4/librpc/rpc/dcerpc_smb.c 	req = smb_raw_open_send(tree, state->open);
state             498 source4/librpc/rpc/dcerpc_smb.c 	composite_continue_smb(ctx, req, pipe_open_recv, state);
state             504 source4/librpc/rpc/dcerpc_smb.c 	struct pipe_open_smb_state *state = talloc_get_type(req->async.private_data,
state             506 source4/librpc/rpc/dcerpc_smb.c 	struct composite_context *ctx = state->ctx;
state             507 source4/librpc/rpc/dcerpc_smb.c 	struct dcerpc_connection *c = state->c;
state             510 source4/librpc/rpc/dcerpc_smb.c 	ctx->status = smb_raw_open_recv(req, state, state->open);
state             532 source4/librpc/rpc/dcerpc_smb.c 	smb->fnum	= state->open->ntcreatex.out.file.fnum;
state             533 source4/librpc/rpc/dcerpc_smb.c 	smb->tree	= talloc_reference(smb, state->tree);
state             535 source4/librpc/rpc/dcerpc_smb.c 			  state->tree->session->transport->called.name);
state              81 source4/librpc/rpc/dcerpc_smb2.c 	struct smb2_read_state *state;
state              86 source4/librpc/rpc/dcerpc_smb2.c 	state = talloc_get_type(req->async.private_data, struct smb2_read_state);
state              87 source4/librpc/rpc/dcerpc_smb2.c 	smb = talloc_get_type(state->c->transport.private_data, struct smb2_private);
state              89 source4/librpc/rpc/dcerpc_smb2.c 	status = smb2_read_recv(req, state, &io);
state              91 source4/librpc/rpc/dcerpc_smb2.c 		pipe_dead(state->c, status);
state              92 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state              96 source4/librpc/rpc/dcerpc_smb2.c 	if (!data_blob_append(state, &state->data, 
state              98 source4/librpc/rpc/dcerpc_smb2.c 		pipe_dead(state->c, NT_STATUS_NO_MEMORY);
state              99 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             103 source4/librpc/rpc/dcerpc_smb2.c 	if (state->data.length < 16) {
state             105 source4/librpc/rpc/dcerpc_smb2.c 			 (int)state->data.length));
state             106 source4/librpc/rpc/dcerpc_smb2.c 		pipe_dead(state->c, NT_STATUS_INFO_LENGTH_MISMATCH);
state             107 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             111 source4/librpc/rpc/dcerpc_smb2.c 	frag_length = dcerpc_get_frag_length(&state->data);
state             113 source4/librpc/rpc/dcerpc_smb2.c 	if (frag_length <= state->data.length) {
state             114 source4/librpc/rpc/dcerpc_smb2.c 		DATA_BLOB data = state->data;
state             115 source4/librpc/rpc/dcerpc_smb2.c 		struct dcerpc_connection *c = state->c;
state             117 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             125 source4/librpc/rpc/dcerpc_smb2.c 	io.in.length = MIN(state->c->srv_max_xmit_frag, 
state             126 source4/librpc/rpc/dcerpc_smb2.c 			   frag_length - state->data.length);
state             133 source4/librpc/rpc/dcerpc_smb2.c 		pipe_dead(state->c, NT_STATUS_NO_MEMORY);
state             134 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             139 source4/librpc/rpc/dcerpc_smb2.c 	req->async.private_data = state;
state             151 source4/librpc/rpc/dcerpc_smb2.c 	struct smb2_read_state *state;
state             154 source4/librpc/rpc/dcerpc_smb2.c 	state = talloc(smb, struct smb2_read_state);
state             155 source4/librpc/rpc/dcerpc_smb2.c 	if (state == NULL) {
state             159 source4/librpc/rpc/dcerpc_smb2.c 	state->c = c;
state             161 source4/librpc/rpc/dcerpc_smb2.c 		state->data = data_blob(NULL, 0);
state             163 source4/librpc/rpc/dcerpc_smb2.c 		state->data = *blob;
state             164 source4/librpc/rpc/dcerpc_smb2.c 		talloc_steal(state, state->data.data);
state             170 source4/librpc/rpc/dcerpc_smb2.c 	if (state->data.length >= 16) {
state             171 source4/librpc/rpc/dcerpc_smb2.c 		uint16_t frag_length = dcerpc_get_frag_length(&state->data);
state             172 source4/librpc/rpc/dcerpc_smb2.c 		io.in.length = frag_length - state->data.length;
state             183 source4/librpc/rpc/dcerpc_smb2.c 	req->async.private_data = state;
state             215 source4/librpc/rpc/dcerpc_smb2.c 	struct smb2_trans_state *state = talloc_get_type(req->async.private_data,
state             217 source4/librpc/rpc/dcerpc_smb2.c 	struct dcerpc_connection *c = state->c;
state             221 source4/librpc/rpc/dcerpc_smb2.c 	status = smb2_ioctl_recv(req, state, &io);
state             230 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             237 source4/librpc/rpc/dcerpc_smb2.c 	talloc_free(state);
state             248 source4/librpc/rpc/dcerpc_smb2.c 	struct smb2_trans_state *state;
state             251 source4/librpc/rpc/dcerpc_smb2.c 	state = talloc(smb, struct smb2_trans_state);
state             252 source4/librpc/rpc/dcerpc_smb2.c 	if (state == NULL) {
state             256 source4/librpc/rpc/dcerpc_smb2.c 	state->c = c;
state             267 source4/librpc/rpc/dcerpc_smb2.c 		talloc_free(state);
state             272 source4/librpc/rpc/dcerpc_smb2.c 	req->async.private_data = state;
state             274 source4/librpc/rpc/dcerpc_smb2.c 	talloc_steal(state, req);
state             398 source4/librpc/rpc/dcerpc_smb2.c 	struct pipe_open_smb2_state *state;
state             406 source4/librpc/rpc/dcerpc_smb2.c 	state = talloc(ctx, struct pipe_open_smb2_state);
state             407 source4/librpc/rpc/dcerpc_smb2.c 	if (composite_nomem(state, ctx)) return ctx;
state             408 source4/librpc/rpc/dcerpc_smb2.c 	ctx->private_data = state;
state             410 source4/librpc/rpc/dcerpc_smb2.c 	state->c = c;
state             411 source4/librpc/rpc/dcerpc_smb2.c 	state->ctx = ctx;
state             440 source4/librpc/rpc/dcerpc_smb2.c 	composite_continue_smb2(ctx, req, pipe_open_recv, state);
state             446 source4/librpc/rpc/dcerpc_smb2.c 	struct pipe_open_smb2_state *state =
state             449 source4/librpc/rpc/dcerpc_smb2.c 	struct composite_context *ctx = state->ctx;
state             450 source4/librpc/rpc/dcerpc_smb2.c 	struct dcerpc_connection *c = state->c;
state             455 source4/librpc/rpc/dcerpc_smb2.c 	ctx->status = smb2_create_recv(req, state, &io);
state             639 source4/nbt_server/wins/winsdb.c 	rec->state		= ldb_msg_find_attr_as_int(msg, "recordState", WREPL_STATE_RELEASED);
state             666 source4/nbt_server/wins/winsdb.c 	if (rec->state == WREPL_STATE_ACTIVE) {
state             707 source4/nbt_server/wins/winsdb.c 		    rec->state == WREPL_STATE_ACTIVE &&
state             721 source4/nbt_server/wins/winsdb.c 	if (rec->is_static && rec->state == WREPL_STATE_ACTIVE) {
state             728 source4/nbt_server/wins/winsdb.c 	if (rec->state == WREPL_STATE_ACTIVE) {
state             732 source4/nbt_server/wins/winsdb.c 			rec->state = WREPL_STATE_RELEASED;
state             761 source4/nbt_server/wins/winsdb.c 	if (rec->state == WREPL_STATE_ACTIVE && addr_count == 0) {
state             762 source4/nbt_server/wins/winsdb.c 		rec->state = WREPL_STATE_RELEASED;
state             784 source4/nbt_server/wins/winsdb.c 	ret |= ldb_msg_add_fmt(msg, "recordState", "%u", rec->state);
state             788 source4/nbt_server/wins/winsdb.c 	if (!(rec->is_static && rec->state == WREPL_STATE_ACTIVE)) {
state              37 source4/nbt_server/wins/winsdb.h 	enum wrepl_name_state state;
state              89 source4/nbt_server/wins/winsserver.c 	rec.state		= WREPL_STATE_ACTIVE;
state             532 source4/nbt_server/wins/winsserver.c 		if (rec->state == WREPL_STATE_ACTIVE) {
state             544 source4/nbt_server/wins/winsserver.c 	if (rec->state != WREPL_STATE_ACTIVE) {
state             789 source4/nbt_server/wins/winsserver.c 	if (rec->state != WREPL_STATE_ACTIVE) {
state             890 source4/nbt_server/wins/winsserver.c 	if (rec->state != WREPL_STATE_ACTIVE) {
state             918 source4/nbt_server/wins/winsserver.c 		rec->state = WREPL_STATE_RELEASED;
state             922 source4/nbt_server/wins/winsserver.c 		rec->state = WREPL_STATE_RELEASED;
state             929 source4/nbt_server/wins/winsserver.c 			rec->state = WREPL_STATE_RELEASED;
state             937 source4/nbt_server/wins/winsserver.c 			rec->state = WREPL_STATE_RELEASED;
state             942 source4/nbt_server/wins/winsserver.c 	if (rec->state == WREPL_STATE_ACTIVE) {
state             960 source4/nbt_server/wins/winsserver.c 	} else if (rec->state == WREPL_STATE_RELEASED) {
state             972 source4/nbt_server/wins/winsserver.c 			rec->state	= WREPL_STATE_TOMBSTONE;
state              41 source4/nbt_server/wins/winswack.c 	struct wins_challenge_state *state = talloc_get_type(ctx->private_data, struct wins_challenge_state);
state              43 source4/nbt_server/wins/winswack.c 	ctx->status = nbt_name_query_recv(req, state, &state->query);
state              47 source4/nbt_server/wins/winswack.c 		state->current_address++;
state              48 source4/nbt_server/wins/winswack.c 		if (state->current_address < state->io->in.num_addresses) {
state              51 source4/nbt_server/wins/winswack.c 			state->query.in.dest_port = state->io->in.nbt_port;
state              52 source4/nbt_server/wins/winswack.c 			state->query.in.dest_addr = state->io->in.addresses[state->current_address];
state              54 source4/nbt_server/wins/winswack.c 			iface = nbtd_find_request_iface(state->io->in.nbtd_server, state->query.in.dest_addr, true);
state              60 source4/nbt_server/wins/winswack.c 			ZERO_STRUCT(state->query.out);
state              61 source4/nbt_server/wins/winswack.c 			req = nbt_name_query_send(iface->nbtsock, &state->query);
state              73 source4/nbt_server/wins/winswack.c 	struct wins_challenge_state *state = talloc_get_type(ctx->private_data, struct wins_challenge_state);
state              76 source4/nbt_server/wins/winswack.c 		io->out.num_addresses	= state->query.out.num_addrs;
state              77 source4/nbt_server/wins/winswack.c 		io->out.addresses	= state->query.out.reply_addrs;
state              90 source4/nbt_server/wins/winswack.c 	struct wins_challenge_state *state;
state              96 source4/nbt_server/wins/winswack.c 	result->state = COMPOSITE_STATE_IN_PROGRESS;
state              99 source4/nbt_server/wins/winswack.c 	state = talloc_zero(result, struct wins_challenge_state);
state             100 source4/nbt_server/wins/winswack.c 	if (state == NULL) goto failed;
state             101 source4/nbt_server/wins/winswack.c 	result->private_data = state;
state             104 source4/nbt_server/wins/winswack.c 	state->io		= io;
state             105 source4/nbt_server/wins/winswack.c 	state->current_address	= 0;
state             108 source4/nbt_server/wins/winswack.c 	state->query.in.name        = *state->io->in.name;
state             109 source4/nbt_server/wins/winswack.c 	state->query.in.dest_port   = state->io->in.nbt_port;
state             110 source4/nbt_server/wins/winswack.c 	state->query.in.dest_addr   = state->io->in.addresses[state->current_address];
state             111 source4/nbt_server/wins/winswack.c 	state->query.in.broadcast   = false;
state             112 source4/nbt_server/wins/winswack.c 	state->query.in.wins_lookup = true;
state             113 source4/nbt_server/wins/winswack.c 	state->query.in.timeout     = 1;
state             114 source4/nbt_server/wins/winswack.c 	state->query.in.retries     = 2;
state             115 source4/nbt_server/wins/winswack.c 	ZERO_STRUCT(state->query.out);
state             117 source4/nbt_server/wins/winswack.c 	iface = nbtd_find_request_iface(state->io->in.nbtd_server, state->query.in.dest_addr, true);
state             122 source4/nbt_server/wins/winswack.c 	req = nbt_name_query_send(iface->nbtsock, &state->query);
state             155 source4/nbt_server/wins/winswack.c 	struct wins_release_demand_state *state = talloc_get_type(ctx->private_data, struct wins_release_demand_state);
state             157 source4/nbt_server/wins/winswack.c 	ctx->status = nbt_name_release_recv(req, state, &state->release);
state             161 source4/nbt_server/wins/winswack.c 		state->current_address++;
state             162 source4/nbt_server/wins/winswack.c 		state->addresses_left--;
state             163 source4/nbt_server/wins/winswack.c 		if (state->current_address < state->io->in.num_addresses) {
state             166 source4/nbt_server/wins/winswack.c 			state->release.in.dest_port = lp_nbt_port(state->io->in.nbtd_server->task->lp_ctx);
state             167 source4/nbt_server/wins/winswack.c 			state->release.in.dest_addr = state->io->in.addresses[state->current_address];
state             168 source4/nbt_server/wins/winswack.c 			state->release.in.address   = state->release.in.dest_addr;
state             169 source4/nbt_server/wins/winswack.c 			state->release.in.timeout   = (state->addresses_left > 1 ? 2 : 1);
state             170 source4/nbt_server/wins/winswack.c 			state->release.in.retries   = (state->addresses_left > 1 ? 0 : 2);
state             172 source4/nbt_server/wins/winswack.c 			iface = nbtd_find_request_iface(state->io->in.nbtd_server, state->release.in.dest_addr, true);
state             178 source4/nbt_server/wins/winswack.c 			ZERO_STRUCT(state->release.out);
state             179 source4/nbt_server/wins/winswack.c 			req = nbt_name_release_send(iface->nbtsock, &state->release);
state             200 source4/nbt_server/wins/winswack.c 	struct wins_release_demand_state *state;
state             206 source4/nbt_server/wins/winswack.c 	result->state = COMPOSITE_STATE_IN_PROGRESS;
state             209 source4/nbt_server/wins/winswack.c 	state = talloc_zero(result, struct wins_release_demand_state);
state             210 source4/nbt_server/wins/winswack.c 	if (state == NULL) goto failed;
state             211 source4/nbt_server/wins/winswack.c 	result->private_data = state;
state             214 source4/nbt_server/wins/winswack.c 	state->io		= io;
state             215 source4/nbt_server/wins/winswack.c 	state->current_address	= 0;
state             216 source4/nbt_server/wins/winswack.c 	state->addresses_left	= state->io->in.num_addresses;
state             225 source4/nbt_server/wins/winswack.c 	state->release.in.name        = *state->io->in.name;
state             226 source4/nbt_server/wins/winswack.c 	state->release.in.dest_port   = lp_nbt_port(state->io->in.nbtd_server->task->lp_ctx);
state             227 source4/nbt_server/wins/winswack.c 	state->release.in.dest_addr   = state->io->in.addresses[state->current_address];
state             228 source4/nbt_server/wins/winswack.c 	state->release.in.address     = state->release.in.dest_addr;
state             229 source4/nbt_server/wins/winswack.c 	state->release.in.broadcast   = false;
state             230 source4/nbt_server/wins/winswack.c 	state->release.in.timeout     = (state->addresses_left > 1 ? 2 : 1);
state             231 source4/nbt_server/wins/winswack.c 	state->release.in.retries     = (state->addresses_left > 1 ? 0 : 2);
state             232 source4/nbt_server/wins/winswack.c 	ZERO_STRUCT(state->release.out);
state             234 source4/nbt_server/wins/winswack.c 	iface = nbtd_find_request_iface(state->io->in.nbtd_server, state->release.in.dest_addr, true);
state             239 source4/nbt_server/wins/winswack.c 	req = nbt_name_release_send(iface->nbtsock, &state->release);
state              68 source4/ntvfs/cifs/vfs_cifs.c 		req->async_states->state|=NTVFS_ASYNC_STATE_CLOSE; \
state             317 source4/ntvfs/cifs/vfs_cifs.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC; \
state             339 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             373 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             393 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             425 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             457 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             478 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             539 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             572 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             592 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             618 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             666 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             704 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             737 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             768 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             810 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             830 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             899 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             919 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             951 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state            1034 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state            1085 source4/ntvfs/cifs/vfs_cifs.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state              92 source4/ntvfs/nbench/vfs_nbench.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_ASYNC)) { \
state             105 source4/ntvfs/nbench/vfs_nbench.c 	if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) { \
state             249 source4/ntvfs/ntvfs.h 	unsigned int state;
state             103 source4/ntvfs/ntvfs_generic.c 	if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) {
state             151 source4/ntvfs/ntvfs_generic.c 	uint_t state;
state             247 source4/ntvfs/ntvfs_generic.c 	state = req->async_states->state;
state             248 source4/ntvfs/ntvfs_generic.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state             273 source4/ntvfs/ntvfs_generic.c 	req->async_states->state = state;
state             582 source4/ntvfs/ntvfs_generic.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state             946 source4/ntvfs/ntvfs_generic.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state             979 source4/ntvfs/ntvfs_generic.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state            1131 source4/ntvfs/ntvfs_generic.c 	uint_t state;
state            1157 source4/ntvfs/ntvfs_generic.c 			state = req->async_states->state;
state            1158 source4/ntvfs/ntvfs_generic.c 			req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state            1160 source4/ntvfs/ntvfs_generic.c 			req->async_states->state = state;
state            1178 source4/ntvfs/ntvfs_generic.c 			state = req->async_states->state;
state            1179 source4/ntvfs/ntvfs_generic.c 			req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state            1181 source4/ntvfs/ntvfs_generic.c 			req->async_states->state = state;
state            1325 source4/ntvfs/ntvfs_generic.c 	uint_t state;
state            1368 source4/ntvfs/ntvfs_generic.c 		state = req->async_states->state;
state            1369 source4/ntvfs/ntvfs_generic.c 		req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state            1381 source4/ntvfs/ntvfs_generic.c 		req->async_states->state = state;
state              51 source4/ntvfs/ntvfs_util.c 	async->state		= state;
state              75 source4/ntvfs/ntvfs_util.c 	async->state		= req->async_states->state;
state              95 source4/ntvfs/ntvfs_util.c 	req->async_states->state	= async->state;
state              47 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_aio_read_state *state = talloc_get_type(private_data,
state              49 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_file *f = state->f;
state              50 source4/ntvfs/posix/pvfs_aio.c 	union smb_read *rd = state->rd;
state              54 source4/ntvfs/posix/pvfs_aio.c 		state->req->async_states->status = pvfs_map_errno(f->pvfs, -ret);
state              55 source4/ntvfs/posix/pvfs_aio.c 		state->req->async_states->send_fn(state->req);
state              65 source4/ntvfs/posix/pvfs_aio.c 	talloc_steal(ev, state->ae);
state              67 source4/ntvfs/posix/pvfs_aio.c 	state->req->async_states->status = NT_STATUS_OK;
state              68 source4/ntvfs/posix/pvfs_aio.c 	state->req->async_states->send_fn(state->req);
state              79 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_aio_read_state *state;
state              81 source4/ntvfs/posix/pvfs_aio.c 	state = talloc(req, struct pvfs_aio_read_state);
state              82 source4/ntvfs/posix/pvfs_aio.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state              86 source4/ntvfs/posix/pvfs_aio.c 	state->ae = tevent_add_aio(req->ctx->event_ctx, req->ctx->event_ctx, &iocb,
state              87 source4/ntvfs/posix/pvfs_aio.c 				   pvfs_aio_read_handler, state);
state              88 source4/ntvfs/posix/pvfs_aio.c 	if (state->ae == NULL) {
state              90 source4/ntvfs/posix/pvfs_aio.c 		talloc_free(state);
state              94 source4/ntvfs/posix/pvfs_aio.c 	state->req  = req;
state              95 source4/ntvfs/posix/pvfs_aio.c 	state->rd   = rd;
state              96 source4/ntvfs/posix/pvfs_aio.c 	state->f    = f;
state              98 source4/ntvfs/posix/pvfs_aio.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             112 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_aio_write_state *state = talloc_get_type(private_data,
state             114 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_file *f = state->f;
state             115 source4/ntvfs/posix/pvfs_aio.c 	union smb_write *wr = state->wr;
state             119 source4/ntvfs/posix/pvfs_aio.c 		state->req->async_states->status = pvfs_map_errno(f->pvfs, -ret);
state             120 source4/ntvfs/posix/pvfs_aio.c 		state->req->async_states->send_fn(state->req);
state             129 source4/ntvfs/posix/pvfs_aio.c 	talloc_steal(ev, state->ae);
state             131 source4/ntvfs/posix/pvfs_aio.c 	state->req->async_states->status = NT_STATUS_OK;
state             132 source4/ntvfs/posix/pvfs_aio.c 	state->req->async_states->send_fn(state->req);
state             143 source4/ntvfs/posix/pvfs_aio.c 	struct pvfs_aio_write_state *state;
state             145 source4/ntvfs/posix/pvfs_aio.c 	state = talloc(req, struct pvfs_aio_write_state);
state             146 source4/ntvfs/posix/pvfs_aio.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state             150 source4/ntvfs/posix/pvfs_aio.c 	state->ae = tevent_add_aio(req->ctx->event_ctx, req->ctx->event_ctx, &iocb,
state             151 source4/ntvfs/posix/pvfs_aio.c 				   pvfs_aio_write_handler, state);
state             152 source4/ntvfs/posix/pvfs_aio.c 	if (state->ae == NULL) {
state             154 source4/ntvfs/posix/pvfs_aio.c 		talloc_free(state);
state             158 source4/ntvfs/posix/pvfs_aio.c 	state->req  = req;
state             159 source4/ntvfs/posix/pvfs_aio.c 	state->wr   = wr;
state             160 source4/ntvfs/posix/pvfs_aio.c 	state->f    = f;
state             162 source4/ntvfs/posix/pvfs_aio.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             311 source4/ntvfs/posix/pvfs_lock.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             237 source4/ntvfs/posix/pvfs_notify.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             281 source4/ntvfs/posix/pvfs_notify.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state            1014 source4/ntvfs/posix/pvfs_open.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_ASYNC;
state            1017 source4/ntvfs/posix/pvfs_open.c 	if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) {
state            1025 source4/ntvfs/posix/pvfs_open.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state            1499 source4/ntvfs/posix/pvfs_open.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state            1523 source4/ntvfs/posix/pvfs_open.c 		    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state              80 source4/ntvfs/posix/pvfs_read.c 		if ((req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC) &&
state             222 source4/ntvfs/posix/pvfs_rename.c 		req->async_states->state &= ~NTVFS_ASYNC_STATE_ASYNC;
state             225 source4/ntvfs/posix/pvfs_rename.c 		if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) {
state             233 source4/ntvfs/posix/pvfs_rename.c 		req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             453 source4/ntvfs/posix/pvfs_rename.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             507 source4/ntvfs/posix/pvfs_rename.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             594 source4/ntvfs/posix/pvfs_rename.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             583 source4/ntvfs/posix/pvfs_setfileinfo.c 		req->async_states->state &= ~NTVFS_ASYNC_STATE_ASYNC;
state             586 source4/ntvfs/posix/pvfs_setfileinfo.c 		if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) {
state             594 source4/ntvfs/posix/pvfs_setfileinfo.c 		req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             729 source4/ntvfs/posix/pvfs_setfileinfo.c 		    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             758 source4/ntvfs/posix/pvfs_setfileinfo.c 		    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state              57 source4/ntvfs/posix/pvfs_unlink.c 		req->async_states->state &= ~NTVFS_ASYNC_STATE_ASYNC;
state              60 source4/ntvfs/posix/pvfs_unlink.c 		if (req->async_states->state & NTVFS_ASYNC_STATE_ASYNC) {
state              68 source4/ntvfs/posix/pvfs_unlink.c 		req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             168 source4/ntvfs/posix/pvfs_unlink.c 	    (req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) {
state             231 source4/ntvfs/posix/pvfs_unlink.c 	req->async_states->state &= ~NTVFS_ASYNC_STATE_MAY_ASYNC;
state             171 source4/ntvfs/posix/pvfs_wait.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC;
state             129 source4/ntvfs/posix/pvfs_write.c 		if ((req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC) &&
state             340 source4/ntvfs/smb2/vfs_smb2.c 	req->async_states->state |= NTVFS_ASYNC_STATE_ASYNC; \
state             350 source4/ntvfs/smb2/vfs_smb2.c 	if (!(req->async_states->state & NTVFS_ASYNC_STATE_MAY_ASYNC)) { \
state             230 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state             236 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state             319 source4/rpc_server/lsa/dcesrv_lsa.c 		struct lsa_policy_state *state;
state             321 source4/rpc_server/lsa/dcesrv_lsa.c 		NTSTATUS status = dcesrv_lsa_get_policy_state(dce_call, mem_ctx, &state);
state             336 source4/rpc_server/lsa/dcesrv_lsa.c 			if (samdb_is_pdc(state->sam_ldb)) {
state             357 source4/rpc_server/lsa/dcesrv_lsa.c 			if (state->mixed_domain == 1) {
state             361 source4/rpc_server/lsa/dcesrv_lsa.c 			domain		= state->domain_name;
state             362 source4/rpc_server/lsa/dcesrv_lsa.c 			dns_domain	= state->domain_dns;
state             363 source4/rpc_server/lsa/dcesrv_lsa.c 			forest		= state->forest_dns;
state             365 source4/rpc_server/lsa/dcesrv_lsa.c 			domain_guid	= state->domain_guid;
state             408 source4/rpc_server/lsa/dcesrv_lsa.c 	info->name.string = state->domain_name;
state             409 source4/rpc_server/lsa/dcesrv_lsa.c 	info->sid         = state->domain_sid;
state             420 source4/rpc_server/lsa/dcesrv_lsa.c 	info->name.string = state->domain_name;
state             421 source4/rpc_server/lsa/dcesrv_lsa.c 	info->sid         = state->domain_sid;
state             422 source4/rpc_server/lsa/dcesrv_lsa.c 	info->dns_domain.string = state->domain_dns;
state             423 source4/rpc_server/lsa/dcesrv_lsa.c 	info->dns_forest.string = state->forest_dns;
state             424 source4/rpc_server/lsa/dcesrv_lsa.c 	info->domain_guid       = state->domain_guid;
state             435 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state             443 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state             466 source4/rpc_server/lsa/dcesrv_lsa.c 		return dcesrv_lsa_info_AccountDomain(state, mem_ctx, &info->domain);
state             468 source4/rpc_server/lsa/dcesrv_lsa.c 		return dcesrv_lsa_info_AccountDomain(state, mem_ctx, &info->account_domain);
state             470 source4/rpc_server/lsa/dcesrv_lsa.c 		return dcesrv_lsa_info_AccountDomain(state, mem_ctx, &info->l_account_domain);
state             479 source4/rpc_server/lsa/dcesrv_lsa.c 		return dcesrv_lsa_info_DNS(state, mem_ctx, &info->dns);
state             559 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state             566 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state             579 source4/rpc_server/lsa/dcesrv_lsa.c 	astate->policy = talloc_reference(astate, state);
state             603 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state             611 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state             616 source4/rpc_server/lsa/dcesrv_lsa.c 	ret = gendb_search(state->sam_ldb, mem_ctx, NULL, &res, attrs, 
state            1680 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            1687 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            1700 source4/rpc_server/lsa/dcesrv_lsa.c 	astate->policy = talloc_reference(astate, state);
state            1792 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            1801 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            1808 source4/rpc_server/lsa/dcesrv_lsa.c 	ret = gendb_search(state->sam_ldb, mem_ctx, NULL, &res, attrs, 
state            1819 source4/rpc_server/lsa/dcesrv_lsa.c 			  ldb_errstring(state->sam_ldb)));
state            1870 source4/rpc_server/lsa/dcesrv_lsa.c 	msg->dn = samdb_search_dn(state->sam_ldb, mem_ctx, 
state            1877 source4/rpc_server/lsa/dcesrv_lsa.c 		status = samdb_create_foreign_security_principal(state->sam_ldb, mem_ctx, 
state            1892 source4/rpc_server/lsa/dcesrv_lsa.c 		r2.in.handle = &state->handle->wire_handle;
state            1929 source4/rpc_server/lsa/dcesrv_lsa.c 	ret = ldb_modify(state->sam_ldb, msg);
state            1936 source4/rpc_server/lsa/dcesrv_lsa.c 			  ldb_dn_get_linearized(msg->dn), ldb_errstring(state->sam_ldb)));
state            2690 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2695 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2717 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2723 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2755 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2761 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2793 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2801 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2812 source4/rpc_server/lsa/dcesrv_lsa.c 	ret = gendb_search(state->sam_ldb, mem_ctx, NULL, &res, attrs, 
state            2844 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2848 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2850 source4/rpc_server/lsa/dcesrv_lsa.c 	return dcesrv_lsa_AddRemoveAccountRights(dce_call, mem_ctx, state, 
state            2864 source4/rpc_server/lsa/dcesrv_lsa.c 	struct lsa_policy_state *state;
state            2868 source4/rpc_server/lsa/dcesrv_lsa.c 	state = h->data;
state            2870 source4/rpc_server/lsa/dcesrv_lsa.c 	return dcesrv_lsa_AddRemoveAccountRights(dce_call, mem_ctx, state, 
state              28 source4/rpc_server/lsa/lsa_init.c 	struct lsa_policy_state *state;
state              47 source4/rpc_server/lsa/lsa_init.c 	state = talloc(mem_ctx, struct lsa_policy_state);
state              48 source4/rpc_server/lsa/lsa_init.c 	if (!state) {
state              53 source4/rpc_server/lsa/lsa_init.c 	state->sam_ldb = samdb_connect(state, dce_call->event_ctx, dce_call->conn->dce_ctx->lp_ctx, dce_call->conn->auth_state.session_info); 
state              54 source4/rpc_server/lsa/lsa_init.c 	if (state->sam_ldb == NULL) {
state              58 source4/rpc_server/lsa/lsa_init.c 	partitions_basedn = samdb_partitions_dn(state->sam_ldb, mem_ctx);
state              62 source4/rpc_server/lsa/lsa_init.c 	state->domain_dn = samdb_base_dn(state->sam_ldb);
state              63 source4/rpc_server/lsa/lsa_init.c 	if (!state->domain_dn) {
state              69 source4/rpc_server/lsa/lsa_init.c 	state->forest_dn = samdb_root_dn(state->sam_ldb);
state              70 source4/rpc_server/lsa/lsa_init.c 	if (!state->forest_dn) {
state              74 source4/rpc_server/lsa/lsa_init.c 	ret = ldb_search(state->sam_ldb, mem_ctx, &dom_res,
state              75 source4/rpc_server/lsa/lsa_init.c 			 state->domain_dn, LDB_SCOPE_BASE, dom_attrs, NULL);
state              83 source4/rpc_server/lsa/lsa_init.c 	state->domain_sid = samdb_result_dom_sid(state, dom_res->msgs[0], "objectSid");
state              84 source4/rpc_server/lsa/lsa_init.c 	if (!state->domain_sid) {
state              88 source4/rpc_server/lsa/lsa_init.c 	state->domain_guid = samdb_result_guid(dom_res->msgs[0], "objectGUID");
state              89 source4/rpc_server/lsa/lsa_init.c 	if (!state->domain_sid) {
state              93 source4/rpc_server/lsa/lsa_init.c 	state->mixed_domain = ldb_msg_find_attr_as_uint(dom_res->msgs[0], "nTMixedDomain", 0);
state              97 source4/rpc_server/lsa/lsa_init.c 	ret = ldb_search(state->sam_ldb, state, &ref_res,
state             100 source4/rpc_server/lsa/lsa_init.c 				 ldb_dn_get_linearized(state->domain_dn));
state             111 source4/rpc_server/lsa/lsa_init.c 	state->domain_name = ldb_msg_find_attr_as_string(ref_res->msgs[0], "nETBIOSName", NULL);
state             112 source4/rpc_server/lsa/lsa_init.c 	if (!state->domain_name) {
state             116 source4/rpc_server/lsa/lsa_init.c 	talloc_steal(state, state->domain_name);
state             118 source4/rpc_server/lsa/lsa_init.c 	state->domain_dns = ldb_msg_find_attr_as_string(ref_res->msgs[0], "dnsRoot", NULL);
state             119 source4/rpc_server/lsa/lsa_init.c 	if (!state->domain_dns) {
state             123 source4/rpc_server/lsa/lsa_init.c 	talloc_steal(state, state->domain_dns);
state             127 source4/rpc_server/lsa/lsa_init.c 	ret = ldb_search(state->sam_ldb, state, &forest_ref_res,
state             130 source4/rpc_server/lsa/lsa_init.c 				 ldb_dn_get_linearized(state->forest_dn));
state             141 source4/rpc_server/lsa/lsa_init.c 	state->forest_dns = ldb_msg_find_attr_as_string(forest_ref_res->msgs[0], "dnsRoot", NULL);
state             142 source4/rpc_server/lsa/lsa_init.c 	if (!state->forest_dns) {
state             146 source4/rpc_server/lsa/lsa_init.c 	talloc_steal(state, state->forest_dns);
state             152 source4/rpc_server/lsa/lsa_init.c 	state->builtin_dn = samdb_search_dn(state->sam_ldb, state, state->domain_dn, "(objectClass=builtinDomain)");
state             153 source4/rpc_server/lsa/lsa_init.c 	if (!state->builtin_dn) {
state             159 source4/rpc_server/lsa/lsa_init.c 	state->system_dn = samdb_search_dn(state->sam_ldb, state,
state             160 source4/rpc_server/lsa/lsa_init.c 					   state->domain_dn, "(&(objectClass=container)(cn=System))");
state             161 source4/rpc_server/lsa/lsa_init.c 	if (!state->system_dn) {
state             165 source4/rpc_server/lsa/lsa_init.c 	state->builtin_sid = dom_sid_parse_talloc(state, SID_BUILTIN);
state             166 source4/rpc_server/lsa/lsa_init.c 	if (!state->builtin_sid) {
state             170 source4/rpc_server/lsa/lsa_init.c 	state->nt_authority_sid = dom_sid_parse_talloc(state, SID_NT_AUTHORITY);
state             171 source4/rpc_server/lsa/lsa_init.c 	if (!state->nt_authority_sid) {
state             175 source4/rpc_server/lsa/lsa_init.c 	state->creator_owner_domain_sid = dom_sid_parse_talloc(state, SID_CREATOR_OWNER_DOMAIN);
state             176 source4/rpc_server/lsa/lsa_init.c 	if (!state->creator_owner_domain_sid) {
state             180 source4/rpc_server/lsa/lsa_init.c 	state->world_domain_sid = dom_sid_parse_talloc(state, SID_WORLD_DOMAIN);
state             181 source4/rpc_server/lsa/lsa_init.c 	if (!state->world_domain_sid) {
state             185 source4/rpc_server/lsa/lsa_init.c 	*_state = state;
state             197 source4/rpc_server/lsa/lsa_init.c 	struct lsa_policy_state *state;
state             208 source4/rpc_server/lsa/lsa_init.c 	status = dcesrv_lsa_get_policy_state(dce_call, mem_ctx, &state);
state             218 source4/rpc_server/lsa/lsa_init.c 	handle->data = talloc_steal(handle, state);
state             222 source4/rpc_server/lsa/lsa_init.c 	state->access_mask = r->in.access_mask;
state             223 source4/rpc_server/lsa/lsa_init.c 	state->handle = handle;
state             292 source4/rpc_server/lsa/lsa_lookup.c 		if (strcasecmp_m(username, state->domain_dns) == 0) { 
state             293 source4/rpc_server/lsa/lsa_lookup.c 			*authority_name = state->domain_name;
state             294 source4/rpc_server/lsa/lsa_lookup.c 			*sid =  state->domain_sid;
state             298 source4/rpc_server/lsa/lsa_lookup.c 		if (strcasecmp_m(username, state->domain_name) == 0) { 
state             299 source4/rpc_server/lsa/lsa_lookup.c 			*authority_name = state->domain_name;
state             300 source4/rpc_server/lsa/lsa_lookup.c 			*sid =  state->domain_sid;
state             310 source4/rpc_server/lsa/lsa_lookup.c 		status = dcesrv_lsa_lookup_name(ev_ctx, lp_ctx, state, mem_ctx, name, authority_name, sid, rtype);
state             320 source4/rpc_server/lsa/lsa_lookup.c 		status = dcesrv_lsa_lookup_name(ev_ctx, lp_ctx, state, mem_ctx, name, authority_name, sid, rtype);
state             326 source4/rpc_server/lsa/lsa_lookup.c 		name = talloc_asprintf(mem_ctx, "%s\\%s", state->domain_name, username);
state             330 source4/rpc_server/lsa/lsa_lookup.c 		status = dcesrv_lsa_lookup_name(ev_ctx, lp_ctx, state, mem_ctx, name, authority_name, sid, rtype);
state             349 source4/rpc_server/lsa/lsa_lookup.c 		domain_dn = state->builtin_dn;
state             350 source4/rpc_server/lsa/lsa_lookup.c 	} else if (strcasecmp_m(domain, state->domain_dns) == 0) { 
state             351 source4/rpc_server/lsa/lsa_lookup.c 		*authority_name = state->domain_name;
state             352 source4/rpc_server/lsa/lsa_lookup.c 		domain_dn = state->domain_dn;
state             353 source4/rpc_server/lsa/lsa_lookup.c 	} else if (strcasecmp_m(domain, state->domain_name) == 0) { 
state             354 source4/rpc_server/lsa/lsa_lookup.c 		*authority_name = state->domain_name;
state             355 source4/rpc_server/lsa/lsa_lookup.c 		domain_dn = state->domain_dn;
state             361 source4/rpc_server/lsa/lsa_lookup.c 	ret = gendb_search_dn(state->sam_ldb, mem_ctx, domain_dn, &res, attrs);
state             377 source4/rpc_server/lsa/lsa_lookup.c 	ret = gendb_search(state->sam_ldb, mem_ctx, domain_dn, &res, attrs, 
state             478 source4/rpc_server/lsa/lsa_lookup.c 	if (dom_sid_in_domain(state->domain_sid, sid)) {
state             479 source4/rpc_server/lsa/lsa_lookup.c 		*authority_name = state->domain_name;
state             480 source4/rpc_server/lsa/lsa_lookup.c 		domain_dn = state->domain_dn;
state             481 source4/rpc_server/lsa/lsa_lookup.c 	} else if (dom_sid_in_domain(state->builtin_sid, sid)) {
state             483 source4/rpc_server/lsa/lsa_lookup.c 		domain_dn = state->builtin_dn;
state             492 source4/rpc_server/lsa/lsa_lookup.c 	ret = gendb_search(state->sam_ldb, mem_ctx, domain_dn, &res, attrs, 
state             524 source4/rpc_server/lsa/lsa_lookup.c 	struct lsa_policy_state *state;
state             542 source4/rpc_server/lsa/lsa_lookup.c 	status = dcesrv_lsa_get_policy_state(dce_call, mem_ctx, &state);
state             587 source4/rpc_server/lsa/lsa_lookup.c 		status2 = dcesrv_lsa_lookup_sid(state, mem_ctx, sid, sid_str, 
state             595 source4/rpc_server/lsa/lsa_lookup.c 		status2 = dcesrv_lsa_authority_list(state, mem_ctx, rtype, 
state             878 source4/rpc_server/lsa/lsa_lookup.c 	struct lsa_policy_state *state;
state             893 source4/rpc_server/lsa/lsa_lookup.c 	state = h->data;
state             931 source4/rpc_server/lsa/lsa_lookup.c 		status2 = dcesrv_lsa_lookup_name(dce_call->event_ctx, lp_ctx, state, mem_ctx, name, 
state             937 source4/rpc_server/lsa/lsa_lookup.c 		status2 = dcesrv_lsa_authority_list(state, mem_ctx, rtype, authority_name, 
state             546 source4/rpc_server/samr/dcesrv_samr.c 	info->primary.string = samdb_result_fsmo_name(state->sam_ctx, mem_ctx, dom_msgs[0], "fSMORoleOwner");
state             549 source4/rpc_server/samr/dcesrv_samr.c 		info->primary.string = lp_netbios_name(state->lp_ctx);
state             556 source4/rpc_server/samr/dcesrv_samr.c 	info->domain_name.string  = state->domain_name;
state             560 source4/rpc_server/samr/dcesrv_samr.c 	switch (state->role) {
state             565 source4/rpc_server/samr/dcesrv_samr.c 		if (samdb_is_pdc(state->sam_ctx)) {
state             580 source4/rpc_server/samr/dcesrv_samr.c 	info->num_users = samdb_search_count(state->sam_ctx, mem_ctx, state->domain_dn, 
state             582 source4/rpc_server/samr/dcesrv_samr.c 	info->num_groups = samdb_search_count(state->sam_ctx, mem_ctx, state->domain_dn,
state             585 source4/rpc_server/samr/dcesrv_samr.c 	info->num_aliases = samdb_search_count(state->sam_ctx, mem_ctx, state->domain_dn,
state             627 source4/rpc_server/samr/dcesrv_samr.c 	info->domain_name.string  = state->domain_name;
state             643 source4/rpc_server/samr/dcesrv_samr.c 	info->primary.string = samdb_result_fsmo_name(state->sam_ctx, mem_ctx, 
state             647 source4/rpc_server/samr/dcesrv_samr.c 		info->primary.string = lp_netbios_name(state->lp_ctx);
state             662 source4/rpc_server/samr/dcesrv_samr.c 	switch (state->role) {
state             667 source4/rpc_server/samr/dcesrv_samr.c 		if (samdb_is_pdc(state->sam_ctx)) {
state             723 source4/rpc_server/samr/dcesrv_samr.c 	status = dcesrv_samr_info_DomGeneralInformation(state, mem_ctx, dom_msgs, &info->general);
state              70 source4/smb_server/smb/search.c 	struct search_state *state = (struct search_state *)private_data;
state              72 source4/smb_server/smb/search.c 	return find_fill_info(state->req, file);
state             112 source4/smb_server/smb/search.c 	struct search_state *state;
state             151 source4/smb_server/smb/search.c 	state = talloc(req, struct search_state);
state             152 source4/smb_server/smb/search.c 	if (!state) {
state             157 source4/smb_server/smb/search.c 	state->req = req;
state             158 source4/smb_server/smb/search.c 	state->file = NULL;
state             159 source4/smb_server/smb/search.c 	state->last_entry_offset = 0;
state             192 source4/smb_server/smb/search.c 		SMBSRV_CALL_NTVFS_BACKEND(ntvfs_search_next(req->ntvfs, sn, state, find_callback));
state             202 source4/smb_server/smb/search.c 		SMBSRV_CALL_NTVFS_BACKEND(ntvfs_search_first(req->ntvfs, sf, state, find_callback));
state             708 source4/smb_server/smb/trans2.c 	struct smbsrv_request *req = state->op->req;
state             709 source4/smb_server/smb/trans2.c 	struct smb_trans2 *trans = state->op->trans;
state             714 source4/smb_server/smb/trans2.c 	switch (state->data_level) {
state             721 source4/smb_server/smb/trans2.c 		if (state->flags & FLAG_TRANS2_FIND_REQUIRE_RESUME) {
state             741 source4/smb_server/smb/trans2.c 		if (state->flags & FLAG_TRANS2_FIND_REQUIRE_RESUME) {
state             764 source4/smb_server/smb/trans2.c 		if (state->flags & FLAG_TRANS2_FIND_REQUIRE_RESUME) {
state             791 source4/smb_server/smb/trans2.c 		return smbsrv_push_passthru_search(trans, &trans->out.data, state->data_level, file,
state             805 source4/smb_server/smb/trans2.c 	struct find_state *state = talloc_get_type(private_data, struct find_state);
state             806 source4/smb_server/smb/trans2.c 	struct smb_trans2 *trans = state->op->trans;
state             811 source4/smb_server/smb/trans2.c 	if (!NT_STATUS_IS_OK(find_fill_info(state, file)) ||
state             818 source4/smb_server/smb/trans2.c 	state->last_entry_offset = old_length;	
state             830 source4/smb_server/smb/trans2.c 	struct find_state *state;
state             833 source4/smb_server/smb/trans2.c 	TRANS2_CHECK_ASYNC_STATUS(state, struct find_state);
state             834 source4/smb_server/smb/trans2.c 	search = talloc_get_type(state->search, union smb_search_first);
state             842 source4/smb_server/smb/trans2.c 	SSVAL(param, VWV(4), state->last_entry_offset);
state             856 source4/smb_server/smb/trans2.c 	struct find_state *state;
state             891 source4/smb_server/smb/trans2.c 	state = talloc(op, struct find_state);
state             892 source4/smb_server/smb/trans2.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state             893 source4/smb_server/smb/trans2.c 	state->op		= op;
state             894 source4/smb_server/smb/trans2.c 	state->search		= search;
state             895 source4/smb_server/smb/trans2.c 	state->data_level	= search->t2ffirst.data_level;
state             896 source4/smb_server/smb/trans2.c 	state->last_entry_offset= 0;
state             897 source4/smb_server/smb/trans2.c 	state->flags		= search->t2ffirst.in.flags;
state             902 source4/smb_server/smb/trans2.c 	op->op_info = state;
state             905 source4/smb_server/smb/trans2.c 	return ntvfs_search_first(req->ntvfs, search, state, find_callback);
state             917 source4/smb_server/smb/trans2.c 	struct find_state *state;
state             920 source4/smb_server/smb/trans2.c 	TRANS2_CHECK_ASYNC_STATUS(state, struct find_state);
state             921 source4/smb_server/smb/trans2.c 	search = talloc_get_type(state->search, union smb_search_next);
state             928 source4/smb_server/smb/trans2.c 	SSVAL(param, VWV(3), state->last_entry_offset);
state             942 source4/smb_server/smb/trans2.c 	struct find_state *state;
state             976 source4/smb_server/smb/trans2.c 	state = talloc(op, struct find_state);
state             977 source4/smb_server/smb/trans2.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state             978 source4/smb_server/smb/trans2.c 	state->op		= op;
state             979 source4/smb_server/smb/trans2.c 	state->search		= search;
state             980 source4/smb_server/smb/trans2.c 	state->data_level	= search->t2fnext.data_level;
state             981 source4/smb_server/smb/trans2.c 	state->last_entry_offset= 0;
state             982 source4/smb_server/smb/trans2.c 	state->flags		= search->t2fnext.in.flags;
state             987 source4/smb_server/smb/trans2.c 	op->op_info = state;
state             990 source4/smb_server/smb/trans2.c 	return ntvfs_search_next(req->ntvfs, search, state, find_callback);
state              45 source4/smb_server/smb2/find.c 	struct smb2srv_find_state *state = talloc_get_type(private_data, struct smb2srv_find_state);
state              46 source4/smb_server/smb2/find.c 	struct smb2_find *info = state->info;
state              52 source4/smb_server/smb2/find.c 	status = smbsrv_push_passthru_search(state, &info->out.blob, info->data_level, file, STR_UNICODE);
state              56 source4/smb_server/smb2/find.c 		smbsrv_blob_grow_data(state, &info->out.blob, old_length);
state              60 source4/smb_server/smb2/find.c 	state->last_entry_offset = old_length;
state              68 source4/smb_server/smb2/find.c 	struct smb2srv_find_state *state;
state              70 source4/smb_server/smb2/find.c 	SMB2SRV_CHECK_ASYNC_STATUS(state, struct smb2srv_find_state);
state              71 source4/smb_server/smb2/find.c 	SMB2SRV_CHECK(smb2srv_setup_reply(req, 0x08, true, state->info->out.blob.length));
state              73 source4/smb_server/smb2/find.c 	if (state->info->out.blob.length > 0) {
state              74 source4/smb_server/smb2/find.c 		SIVAL(state->info->out.blob.data + state->last_entry_offset, 0, 0);
state              77 source4/smb_server/smb2/find.c 	SMB2SRV_CHECK(smb2_push_o16s32_blob(&req->out, 0x02, state->info->out.blob));
state              84 source4/smb_server/smb2/find.c 	struct smb2_find *info = state->info;
state             116 source4/smb_server/smb2/find.c 		state->ff = talloc(state, union smb_search_first);
state             117 source4/smb_server/smb2/find.c 		NT_STATUS_HAVE_NO_MEMORY(state->ff);
state             119 source4/smb_server/smb2/find.c 		state->ff->smb2 = *info;
state             120 source4/smb_server/smb2/find.c 		state->info = &state->ff->smb2;
state             121 source4/smb_server/smb2/find.c 		ZERO_STRUCT(state->ff->smb2.out);
state             123 source4/smb_server/smb2/find.c 		return ntvfs_search_first(state->req->ntvfs, state->ff, state, smb2srv_find_callback);
state             125 source4/smb_server/smb2/find.c 		state->fn = talloc(state, union smb_search_next);
state             126 source4/smb_server/smb2/find.c 		NT_STATUS_HAVE_NO_MEMORY(state->fn);
state             128 source4/smb_server/smb2/find.c 		state->fn->smb2 = *info;
state             129 source4/smb_server/smb2/find.c 		state->info = &state->fn->smb2;
state             130 source4/smb_server/smb2/find.c 		ZERO_STRUCT(state->fn->smb2.out);
state             132 source4/smb_server/smb2/find.c 		return ntvfs_search_next(state->req->ntvfs, state->fn, state, smb2srv_find_callback);
state             141 source4/smb_server/smb2/find.c 	struct smb2srv_find_state *state;
state             147 source4/smb_server/smb2/find.c 	SMB2SRV_TALLOC_IO_PTR(state, struct smb2srv_find_state);
state             148 source4/smb_server/smb2/find.c 	state->req		= req;
state             149 source4/smb_server/smb2/find.c 	state->info		= info;
state             150 source4/smb_server/smb2/find.c 	state->ff		= NULL;
state             151 source4/smb_server/smb2/find.c 	state->fn		= NULL;
state             152 source4/smb_server/smb2/find.c 	state->last_entry_offset= 0;
state             170 source4/smb_server/smb2/find.c 	SMB2SRV_CALL_NTVFS_BACKEND(smb2srv_find_backend(state));
state             119 source4/smb_server/smb2/smb2_server.h 					  req, send_fn, state); \
state             142 source4/smb_server/smb2/smb2_server.h 	if (req->ntvfs->async_states->state & NTVFS_ASYNC_STATE_ASYNC) { \
state             156 source4/smb_server/smb2/smb2_server.h 	if (ntvfs->async_states->state & NTVFS_ASYNC_STATE_CLOSE || NT_STATUS_EQUAL(ntvfs->async_states->status, NT_STATUS_NET_WRITE_FAULT)) { \
state             173 source4/smb_server/smb2/smb2_server.h 	if (ntvfs->async_states->state & NTVFS_ASYNC_STATE_CLOSE || NT_STATUS_EQUAL(ntvfs->async_states->status, NT_STATUS_NET_WRITE_FAULT)) { \
state             432 source4/smb_server/smb_server.h 					  req, send_fn, state); \
state             477 source4/smb_server/smb_server.h 	if (req->ntvfs->async_states->state & NTVFS_ASYNC_STATE_ASYNC) { \
state             487 source4/smb_server/smb_server.h 	if (ntvfs->async_states->state & NTVFS_ASYNC_STATE_CLOSE || NT_STATUS_EQUAL(ntvfs->async_states->status, NT_STATUS_NET_WRITE_FAULT)) { \
state             503 source4/smb_server/smb_server.h 	if (ntvfs->async_states->state & NTVFS_ASYNC_STATE_CLOSE || NT_STATUS_EQUAL(ntvfs->async_states->status, NT_STATUS_NET_WRITE_FAULT)) { \
state              77 source4/smbd/process_thread.c 	struct new_conn_state *state;
state              83 source4/smbd/process_thread.c 	state = talloc(ev2, struct new_conn_state);
state              84 source4/smbd/process_thread.c 	if (state == NULL) {
state              89 source4/smbd/process_thread.c 	state->new_conn = new_conn;
state              90 source4/smbd/process_thread.c 	state->private_data  = private_data;
state              91 source4/smbd/process_thread.c 	state->lp_ctx   = lp_ctx;
state              92 source4/smbd/process_thread.c 	state->ev       = ev2;
state              95 source4/smbd/process_thread.c 	status = socket_accept(sock, &state->sock);
state             107 source4/smbd/process_thread.c 	talloc_steal(state, state->sock);
state             111 source4/smbd/process_thread.c 	rc = pthread_create(&thread_id, &thread_attr, thread_connection_fn, state);
state             160 source4/smbd/process_thread.c 	struct new_task_state *state;
state             166 source4/smbd/process_thread.c 	state = talloc(ev2, struct new_task_state);
state             167 source4/smbd/process_thread.c 	if (state == NULL) {
state             172 source4/smbd/process_thread.c 	state->new_task = new_task;
state             173 source4/smbd/process_thread.c 	state->lp_ctx   = lp_ctx;
state             174 source4/smbd/process_thread.c 	state->private_data  = private_data;
state             175 source4/smbd/process_thread.c 	state->ev       = ev2;
state             179 source4/smbd/process_thread.c 	rc = pthread_create(&thread_id, &thread_attr, thread_task_fn, state);
state              58 source4/smbd/service_task.c 	struct task_state *state = talloc_get_type(private_data, struct task_state);
state              65 source4/smbd/service_task.c 	task->model_ops = state->model_ops;
state              79 source4/smbd/service_task.c 	state->task_init(task);
state              91 source4/smbd/service_task.c 	struct task_state *state;
state              93 source4/smbd/service_task.c 	state = talloc(event_ctx, struct task_state);
state              94 source4/smbd/service_task.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state              96 source4/smbd/service_task.c 	state->task_init = task_init;
state              97 source4/smbd/service_task.c 	state->model_ops = model_ops;
state              99 source4/smbd/service_task.c 	model_ops->new_task(event_ctx, lp_ctx, service_name, task_server_callback, state);
state             367 source4/torture/basic/base.c 		if (req->state == SMBCLI_REQUEST_ERROR) {
state             503 source4/torture/basic/misc.c 	torture_comment(tctx, "Close file %d (%d)\n",state->nr,state->fnum);
state             505 source4/torture/basic/misc.c 	close_parms.close.in.file.fnum = state->fnum ;
state             507 source4/torture/basic/misc.c 	state->mode=CLOSE_FILE;
state             509 source4/torture/basic/misc.c 	req = smb_raw_close_send(state->cli, &close_parms);
state             513 source4/torture/basic/misc.c 	req->async.private_data = state;
state             524 source4/torture/basic/misc.c 	struct benchrw_state *state = req->async.private_data;
state             525 source4/torture/basic/misc.c 	struct torture_context *tctx = state->tctx;
state             528 source4/torture/basic/misc.c 		state->mode = ERROR;
state             532 source4/torture/basic/misc.c 	state->completed++;
state             533 source4/torture/basic/misc.c 	state->num_parallel_requests--;
state             535 source4/torture/basic/misc.c 	if ((state->completed >= torture_numops)
state             536 source4/torture/basic/misc.c 	    && (state->num_parallel_requests == 0)) {
state             544 source4/torture/basic/misc.c 	if (state->completed + state->num_parallel_requests
state             546 source4/torture/basic/misc.c 		benchrw_readwrite(tctx, state);
state             561 source4/torture/basic/misc.c 	if (random() % state->lp_params->writeratio == 0) {
state             563 source4/torture/basic/misc.c 				state->nr,state->completed,torture_numops);
state             565 source4/torture/basic/misc.c 		wr.writex.in.file.fnum  = state->fnum ;
state             569 source4/torture/basic/misc.c 		wr.writex.in.count      = state->lp_params->blocksize;
state             570 source4/torture/basic/misc.c 		wr.writex.in.data       = state->buffer;
state             571 source4/torture/basic/misc.c 		state->readcnt=0;
state             572 source4/torture/basic/misc.c 		req = smb_raw_write_send(state->cli,&wr);
state             577 source4/torture/basic/misc.c 				state->nr,state->completed,torture_numops,
state             578 source4/torture/basic/misc.c 				(state->readcnt*state->lp_params->blocksize));
state             580 source4/torture/basic/misc.c 		rd.readx.in.file.fnum	= state->fnum 	;
state             581 source4/torture/basic/misc.c 		rd.readx.in.offset	= state->readcnt*state->lp_params->blocksize; 
state             582 source4/torture/basic/misc.c 		rd.readx.in.mincnt	= state->lp_params->blocksize;
state             585 source4/torture/basic/misc.c 		rd.readx.out.data	= state->buffer;
state             587 source4/torture/basic/misc.c 		if(state->readcnt < state->lp_params->writeblocks){
state             588 source4/torture/basic/misc.c 			state->readcnt++;	
state             591 source4/torture/basic/misc.c 			state->readcnt=0;
state             593 source4/torture/basic/misc.c 		req = smb_raw_read_send(state->cli,&rd);
state             595 source4/torture/basic/misc.c 	state->num_parallel_requests += 1;
state             599 source4/torture/basic/misc.c 	req->async.private_data = state;
state             612 source4/torture/basic/misc.c 	if(state->mode == OPEN_FILE){
state             615 source4/torture/basic/misc.c 					union smb_open*)state->req_params);
state             618 source4/torture/basic/misc.c 		state->fnum = ((union smb_open*)state->req_params)
state             620 source4/torture/basic/misc.c 		torture_comment(tctx, "File opened (%d)\n",state->fnum);
state             621 source4/torture/basic/misc.c 		state->mode=INITIAL_WRITE;
state             624 source4/torture/basic/misc.c 	torture_comment(tctx, "Write initial test file:%d (%d/%d)\n",state->nr,
state             625 source4/torture/basic/misc.c 		(state->writecnt+1)*state->lp_params->blocksize,
state             626 source4/torture/basic/misc.c 		(state->lp_params->writeblocks*state->lp_params->blocksize));
state             628 source4/torture/basic/misc.c 	wr.writex.in.file.fnum  = state->fnum ;
state             629 source4/torture/basic/misc.c 	wr.writex.in.offset     = state->writecnt * 
state             630 source4/torture/basic/misc.c 					state->lp_params->blocksize;
state             632 source4/torture/basic/misc.c 	wr.writex.in.remaining  = (state->lp_params->writeblocks *
state             633 source4/torture/basic/misc.c 						state->lp_params->blocksize)-
state             634 source4/torture/basic/misc.c 						((state->writecnt+1)*state->
state             636 source4/torture/basic/misc.c 	wr.writex.in.count      = state->lp_params->blocksize;
state             637 source4/torture/basic/misc.c 	wr.writex.in.data       = state->buffer;
state             638 source4/torture/basic/misc.c 	state->writecnt++;
state             639 source4/torture/basic/misc.c 	if(state->writecnt == state->lp_params->writeblocks){
state             640 source4/torture/basic/misc.c 		state->mode=READ_WRITE_DATA;
state             642 source4/torture/basic/misc.c 	req = smb_raw_write_send(state->cli,&wr);
state             647 source4/torture/basic/misc.c 	req->async.private_data = state;
state             664 source4/torture/basic/misc.c 	torture_comment(tctx, "Open File %d/%d\n",state->nr+1,
state             678 source4/torture/basic/misc.c 	open_parms->openx.in.fname = state->fname;
state             680 source4/torture/basic/misc.c 	writedata = talloc_size(tctx,state->lp_params->blocksize);
state             682 source4/torture/basic/misc.c 	generate_random_buffer(writedata,state->lp_params->blocksize);
state             683 source4/torture/basic/misc.c 	state->buffer=writedata;
state             684 source4/torture/basic/misc.c 	state->writecnt=1;
state             685 source4/torture/basic/misc.c 	state->readcnt=0;
state             686 source4/torture/basic/misc.c 	state->req_params=open_parms;		
state             687 source4/torture/basic/misc.c 	state->mode=OPEN_FILE;	
state             689 source4/torture/basic/misc.c 	req = smb_raw_open_send(state->cli,open_parms);
state             694 source4/torture/basic/misc.c 	req->async.private_data = state;
state             704 source4/torture/basic/misc.c 	struct benchrw_state *state = req->async.private_data;
state             705 source4/torture/basic/misc.c 	struct torture_context *tctx = state->tctx;
state             708 source4/torture/basic/misc.c 	if ((state->mode == READ_WRITE_DATA)
state             709 source4/torture/basic/misc.c 	    && (state->completed >= torture_numops)) {
state             710 source4/torture/basic/misc.c 		state->mode=MAX_OPS_REACHED;
state             713 source4/torture/basic/misc.c 	switch (state->mode) {
state             716 source4/torture/basic/misc.c 		if (!NT_STATUS_IS_OK(benchrw_mkdir(tctx, req,state))) {
state             720 source4/torture/basic/misc.c 			state->mode=ERROR;
state             726 source4/torture/basic/misc.c 		if (!NT_STATUS_IS_OK(benchrw_open(tctx, req,state))){
state             730 source4/torture/basic/misc.c 			state->mode=ERROR;
state             731 source4/torture/basic/misc.c 			state->readcnt=0;
state             736 source4/torture/basic/misc.c 		while (state->num_parallel_requests
state             737 source4/torture/basic/misc.c 		       < state->lp_params->num_parallel_requests) {
state             739 source4/torture/basic/misc.c 			status = benchrw_readwrite(tctx,state);
state             744 source4/torture/basic/misc.c 				state->mode=ERROR;
state             750 source4/torture/basic/misc.c 		if (!NT_STATUS_IS_OK(benchrw_close(tctx,req,state))){
state             754 source4/torture/basic/misc.c 			state->mode=ERROR;
state             759 source4/torture/basic/misc.c 		torture_comment(tctx, "File %d closed\n",state->nr);
state             764 source4/torture/basic/misc.c 			state->mode=ERROR;
state             767 source4/torture/basic/misc.c 		state->mode=CLEANUP;
state             778 source4/torture/basic/misc.c 	struct benchrw_state *state = con->async.private_data;
state             779 source4/torture/basic/misc.c 	struct torture_context *tctx = state->tctx;
state             780 source4/torture/basic/misc.c 	int retry = state->lp_params->retry;
state             783 source4/torture/basic/misc.c 		state->cli=((struct smb_composite_connect*)
state             784 source4/torture/basic/misc.c 					state->req_params)->out.tree;
state             785 source4/torture/basic/misc.c 		state->mode=CLEANUP_TESTDIR;
state             787 source4/torture/basic/misc.c 		if(state->writecnt < retry){
state             790 source4/torture/basic/misc.c 					state->nr,state->writecnt,retry);
state             791 source4/torture/basic/misc.c 			state->writecnt++;
state             792 source4/torture/basic/misc.c 			state->mode=START;
state             797 source4/torture/basic/misc.c 					state->nr, nt_errstr(con->status));
state             798 source4/torture/basic/misc.c 			state->mode=ERROR;
state             840 source4/torture/basic/misc.c 	struct benchrw_state **state;
state             856 source4/torture/basic/misc.c 	state = talloc_array(tctx, struct benchrw_state *, torture_nprocs);
state             863 source4/torture/basic/misc.c 		state[i]=talloc(tctx,struct benchrw_state);
state             864 source4/torture/basic/misc.c 		state[i]->tctx = tctx;
state             865 source4/torture/basic/misc.c 		state[i]->completed=0;
state             866 source4/torture/basic/misc.c 		state[i]->num_parallel_requests=0;
state             867 source4/torture/basic/misc.c 		state[i]->lp_params=&lpparams;
state             868 source4/torture/basic/misc.c 		state[i]->nr=i;
state             869 source4/torture/basic/misc.c 		state[i]->dname=talloc_asprintf(tctx,"benchrw%d",i);
state             870 source4/torture/basic/misc.c 		state[i]->fname=talloc_asprintf(tctx,"%s%s",
state             871 source4/torture/basic/misc.c 						state[i]->dname,fname);	
state             872 source4/torture/basic/misc.c 		state[i]->mode=START;
state             873 source4/torture/basic/misc.c 		state[i]->writecnt=0;
state             880 source4/torture/basic/misc.c 			switch (state[i]->mode){
state             885 source4/torture/basic/misc.c 				state[i]->req_params=smb_con; 
state             886 source4/torture/basic/misc.c 				state[i]->mode=OPEN_CONNECTION;
state             894 source4/torture/basic/misc.c 				req1->async.private_data=state[i];
state             899 source4/torture/basic/misc.c 				smb_raw_exit(state[i]->cli->session);
state             900 source4/torture/basic/misc.c 				if (smbcli_deltree(state[i]->cli, 
state             901 source4/torture/basic/misc.c 						state[i]->dname) == -1) {
state             905 source4/torture/basic/misc.c 						state[i]->dname,
state             906 source4/torture/basic/misc.c 						smbcli_errstr(state[i]->cli));
state             907 source4/torture/basic/misc.c 					state[i]->mode=ERROR;
state             910 source4/torture/basic/misc.c 				state[i]->mode=MK_TESTDIR;
state             912 source4/torture/basic/misc.c 				parms.mkdir.in.path = state[i]->dname;
state             913 source4/torture/basic/misc.c 				req = smb_raw_mkdir_send(state[i]->cli,&parms);
state             916 source4/torture/basic/misc.c 				req->async.private_data=state[i];
state             926 source4/torture/basic/misc.c 						"%d/%d\n",state[i]->dname,
state             928 source4/torture/basic/misc.c 				smbcli_deltree(state[i]->cli,state[i]->dname);
state             930 source4/torture/basic/misc.c 							     state[i]->cli))) {
state             933 source4/torture/basic/misc.c 					state[i]->mode=ERROR;
state             936 source4/torture/basic/misc.c 				state[i]->mode=FINISHED;
state             605 source4/torture/basic/scanner.c 		if (req->state > SMBCLI_REQUEST_RECV) {
state             614 source4/torture/basic/scanner.c 		if (req->state > SMBCLI_REQUEST_RECV) {
state              36 source4/torture/ldap/cldapbench.c 	struct bench_state *state = talloc_get_type(req->async.private_data, struct bench_state);
state              42 source4/torture/ldap/cldapbench.c 		state->pass_count++;
state              44 source4/torture/ldap/cldapbench.c 		state->fail_count++;
state              60 source4/torture/ldap/cldapbench.c 	struct bench_state *state;
state              64 source4/torture/ldap/cldapbench.c 	state = talloc_zero(tctx, struct bench_state);
state              74 source4/torture/ldap/cldapbench.c 		while (num_sent - (state->pass_count+state->fail_count) < 10) {
state              78 source4/torture/ldap/cldapbench.c 			req->async.private_data = state;
state              84 source4/torture/ldap/cldapbench.c 					       state->pass_count / timeval_elapsed(&tv),
state              85 source4/torture/ldap/cldapbench.c 					       state->fail_count);
state              94 source4/torture/ldap/cldapbench.c 	while (num_sent != (state->pass_count + state->fail_count)) {
state              99 source4/torture/ldap/cldapbench.c 	       state->pass_count / timeval_elapsed(&tv),
state             100 source4/torture/ldap/cldapbench.c 	       state->fail_count);
state             109 source4/torture/ldap/cldapbench.c 	struct bench_state *state = talloc_get_type(req->async.private_data, struct bench_state);
state             114 source4/torture/ldap/cldapbench.c 		state->pass_count++;
state             116 source4/torture/ldap/cldapbench.c 		state->fail_count++;
state             132 source4/torture/ldap/cldapbench.c 	struct bench_state *state;
state             136 source4/torture/ldap/cldapbench.c 	state = talloc_zero(tctx, struct bench_state);
state             147 source4/torture/ldap/cldapbench.c 		while (num_sent - (state->pass_count+state->fail_count) < 10) {
state             151 source4/torture/ldap/cldapbench.c 			req->async.private_data = state;
state             157 source4/torture/ldap/cldapbench.c 					       state->pass_count / timeval_elapsed(&tv),
state             158 source4/torture/ldap/cldapbench.c 					       state->fail_count);
state             167 source4/torture/ldap/cldapbench.c 	while (num_sent != (state->pass_count + state->fail_count)) {
state             172 source4/torture/ldap/cldapbench.c 	       state->pass_count / timeval_elapsed(&tv),
state             173 source4/torture/ldap/cldapbench.c 	       state->fail_count);
state             123 source4/torture/masktest.c 	struct masktest_state *m = (struct masktest_state *)state;
state             142 source4/torture/masktest.c 	struct masktest_state state;
state             152 source4/torture/masktest.c 	state.mem_ctx = mem_ctx;
state             157 source4/torture/masktest.c 			listfn, &state);
state             180 source4/torture/masktest.c 	struct masktest_state state;
state             186 source4/torture/masktest.c 	state.mem_ctx = mem_ctx;
state             202 source4/torture/masktest.c 			listfn, &state);
state              37 source4/torture/nbt/query.c 	if (req->state != NBT_REQUEST_DONE) {
state             157 source4/torture/nbt/wins.c 			if (req->state != NBT_REQUEST_WAIT) {
state             167 source4/torture/nbt/wins.c 				req->state = NBT_REQUEST_SEND;
state              45 source4/torture/nbt/winsbench.c 	struct wins_state *state;
state              60 source4/torture/nbt/winsbench.c 	struct wins_state *state = istate->state;
state              66 source4/torture/nbt/winsbench.c 		state->fail_count++;
state              68 source4/torture/nbt/winsbench.c 		state->pass_count++;
state              69 source4/torture/nbt/winsbench.c 		state->registered[istate->idx] = true;
state              80 source4/torture/nbt/winsbench.c 	TALLOC_CTX *tmp_ctx = talloc_new(state);
state              86 source4/torture/nbt/winsbench.c 	istate->state = state;
state              89 source4/torture/nbt/winsbench.c 	io.in.dest_addr       = state->wins_server;
state              90 source4/torture/nbt/winsbench.c 	io.in.dest_port       = state->wins_port;
state              91 source4/torture/nbt/winsbench.c 	io.in.address         = state->my_ip;
state              96 source4/torture/nbt/winsbench.c 	io.in.ttl             = state->ttl;
state             112 source4/torture/nbt/winsbench.c 	struct wins_state *state = istate->state;
state             117 source4/torture/nbt/winsbench.c 	if (state->registered[istate->idx] && 
state             119 source4/torture/nbt/winsbench.c 		state->fail_count++;
state             121 source4/torture/nbt/winsbench.c 		state->pass_count++;
state             122 source4/torture/nbt/winsbench.c 		state->registered[istate->idx] = false;
state             133 source4/torture/nbt/winsbench.c 	TALLOC_CTX *tmp_ctx = talloc_new(state);
state             139 source4/torture/nbt/winsbench.c 	istate->state = state;
state             142 source4/torture/nbt/winsbench.c 	io.in.dest_port       = state->wins_port;
state             143 source4/torture/nbt/winsbench.c 	io.in.dest_addr       = state->wins_server;
state             144 source4/torture/nbt/winsbench.c 	io.in.address         = state->my_ip;
state             162 source4/torture/nbt/winsbench.c 	struct wins_state *state = istate->state;
state             167 source4/torture/nbt/winsbench.c 	if (!NT_STATUS_IS_OK(status) && state->registered[istate->idx]) {
state             168 source4/torture/nbt/winsbench.c 		state->fail_count++;
state             170 source4/torture/nbt/winsbench.c 		state->pass_count++;
state             181 source4/torture/nbt/winsbench.c 	TALLOC_CTX *tmp_ctx = talloc_new(state);
state             187 source4/torture/nbt/winsbench.c 	istate->state = state;
state             190 source4/torture/nbt/winsbench.c 	io.in.dest_addr       = state->wins_server;
state             191 source4/torture/nbt/winsbench.c 	io.in.dest_port       = state->wins_port;
state             211 source4/torture/nbt/winsbench.c 		generate_register(nbtsock, state, idx);
state             216 source4/torture/nbt/winsbench.c 		generate_release(nbtsock, state, idx);
state             220 source4/torture/nbt/winsbench.c 	generate_query(nbtsock, state, idx);
state             233 source4/torture/nbt/winsbench.c 	struct wins_state *state;
state             243 source4/torture/nbt/winsbench.c 	state = talloc_zero(nbtsock, struct wins_state);
state             245 source4/torture/nbt/winsbench.c 	state->num_names = torture_entries;
state             246 source4/torture/nbt/winsbench.c 	state->registered = talloc_zero_array(state, bool, state->num_names);
state             247 source4/torture/nbt/winsbench.c 	state->wins_server = address;
state             248 source4/torture/nbt/winsbench.c 	state->wins_port = lp_nbt_port(tctx->lp_ctx);
state             250 source4/torture/nbt/winsbench.c 	state->my_ip = talloc_strdup(tctx, iface_best_ip(ifaces, address));
state             251 source4/torture/nbt/winsbench.c 	state->ttl = timelimit;
state             254 source4/torture/nbt/winsbench.c 					    state->my_ip, 0);
state             260 source4/torture/nbt/winsbench.c 		while (num_sent - (state->pass_count+state->fail_count) < 10) {
state             261 source4/torture/nbt/winsbench.c 			generate_request(nbtsock, state, num_sent % state->num_names);
state             266 source4/torture/nbt/winsbench.c 					       state->pass_count / timeval_elapsed(&tv),
state             267 source4/torture/nbt/winsbench.c 					       state->fail_count);
state             276 source4/torture/nbt/winsbench.c 	while (num_sent != (state->pass_count + state->fail_count)) {
state             281 source4/torture/nbt/winsbench.c 	       state->pass_count / timeval_elapsed(&tv),
state             282 source4/torture/nbt/winsbench.c 	       state->fail_count);
state              71 source4/torture/nbt/winsreplication.c 	switch (state) {
state             230 source4/torture/nbt/winsreplication.c 		name->type, name->state, name->node, name->is_static, (long long)name->version_id);
state             800 source4/torture/nbt/winsreplication.c 						  names[0].state,
state             857 source4/torture/nbt/winsreplication.c 				 names[0].state,
state             963 source4/torture/nbt/winsreplication.c 				 name->state,
state            1022 source4/torture/nbt/winsreplication.c 		enum wrepl_name_state state;
state            1030 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1037 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1044 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1051 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1058 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1065 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_TOMBSTONE,
state            1072 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_TOMBSTONE,
state            1079 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_RELEASED,
state            1086 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1093 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_ACTIVE,
state            1100 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_TOMBSTONE,
state            1108 source4/torture/nbt/winsreplication.c 		.state		= WREPL_STATE_TOMBSTONE,
state            1137 source4/torture/nbt/winsreplication.c 					wrepl_name_state_string(records[i-1].state),
state            1140 source4/torture/nbt/winsreplication.c 					wrepl_name_state_string(records[i].state),
state            1148 source4/torture/nbt/winsreplication.c 								   records[i].state,
state            1161 source4/torture/nbt/winsreplication.c 			if (records[i].state == WREPL_STATE_RELEASED) {
state            1198 source4/torture/nbt/winsreplication.c 			enum wrepl_name_state state;
state            1221 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1231 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1253 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1263 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1282 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1292 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1311 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1321 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1340 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1350 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1369 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1379 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1398 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1408 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1431 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1441 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1460 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1470 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1489 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1499 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1518 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1528 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1547 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1557 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1576 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1586 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1608 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1618 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1637 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1647 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1666 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1676 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1695 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1705 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1724 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1734 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1753 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1763 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1785 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1795 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1814 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1824 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1843 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1853 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1872 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            1882 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1901 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1911 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1930 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1940 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            1962 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1972 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            1991 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2001 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2020 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2030 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2049 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2059 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2078 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2088 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2107 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2117 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2139 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2149 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2168 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2178 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2197 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2207 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2226 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2236 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2255 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2265 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2284 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2294 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2316 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2326 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2345 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2355 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2374 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2384 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2403 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2413 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2432 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2442 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2461 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2471 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2493 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2503 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2522 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2532 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2551 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2561 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2580 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2590 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2609 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2619 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2638 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2648 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2670 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2680 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2699 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2709 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2728 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2738 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2757 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2767 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2786 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2796 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2815 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2825 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2847 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2857 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2876 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2886 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2905 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2915 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2934 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            2944 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2963 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            2973 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            2992 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3002 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3024 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3034 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3053 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3063 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3082 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3092 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3111 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3121 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3143 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3153 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3172 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3182 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3201 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3211 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3230 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3240 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3259 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3269 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3288 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3298 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3320 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3330 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3349 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3359 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3378 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3388 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3407 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3417 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3436 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3446 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3465 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3475 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3497 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3507 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3526 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3536 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3555 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3565 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3584 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3594 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3613 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3623 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3642 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3652 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3674 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3684 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3703 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3713 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3732 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3742 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3761 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3771 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3790 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3800 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3819 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3829 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3851 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3861 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3880 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3890 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3909 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3919 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3938 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_RELEASED,
state            3948 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3967 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            3977 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            3996 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4006 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4021 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4031 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4054 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4064 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4085 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4095 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4116 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4126 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4141 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4151 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4171 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4181 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4202 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4212 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4233 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4243 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4264 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4274 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4295 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4305 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4322 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4332 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4352 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4362 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4378 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4388 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4408 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4418 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4434 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4444 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4464 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4474 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4490 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4500 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4520 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4530 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4547 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4557 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4577 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4587 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4604 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4614 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4635 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4645 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4665 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4675 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4695 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4705 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4725 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            4735 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4756 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4766 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            4817 source4/torture/nbt/winsreplication.c 				wrepl_name_state_string(records[i].r1.state),
state            4820 source4/torture/nbt/winsreplication.c 				wrepl_name_state_string(records[i].r2.state),
state            4831 source4/torture/nbt/winsreplication.c 							   records[i].r1.state,
state            4853 source4/torture/nbt/winsreplication.c 							   records[i].r2.state,
state            4867 source4/torture/nbt/winsreplication.c 		if (records[i].r1.state == WREPL_STATE_RELEASED) {
state            4883 source4/torture/nbt/winsreplication.c 		if (records[i].r2.state == WREPL_STATE_RELEASED) {
state            4995 source4/torture/nbt/winsreplication.c 			enum wrepl_name_state state;
state            5021 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5044 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5067 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5090 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5116 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5139 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5162 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5185 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5211 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5234 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5257 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5280 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5306 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5329 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5352 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5375 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5401 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5424 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5447 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5470 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5496 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5519 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5542 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5565 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5591 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5614 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5637 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5660 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5686 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5709 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5732 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5755 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5781 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5804 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5827 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5850 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5876 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5899 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5922 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5945 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            5971 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            5994 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6017 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6040 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6066 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6089 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6112 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6135 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6161 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6184 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6207 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6230 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6256 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6279 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6302 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6325 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6351 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6374 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6397 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6420 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6446 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6469 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6492 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6515 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6590 source4/torture/nbt/winsreplication.c 							   records[i].replica.state,
state            6673 source4/torture/nbt/winsreplication.c 		enum wrepl_name_state state;
state            6722 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6749 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6778 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6805 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6831 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6857 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6887 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6914 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            6940 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6966 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            6996 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7023 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7049 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7075 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7104 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7130 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7157 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7186 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7213 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7239 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7265 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7294 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7320 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7346 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7372 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7401 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7427 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7453 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7479 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7508 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7534 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7560 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7586 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7615 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7641 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7667 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7693 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7722 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7748 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7774 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7800 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7829 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7855 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7881 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7907 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            7936 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7962 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            7988 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8014 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8043 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8070 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8099 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8126 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8152 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8178 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8208 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8235 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8261 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8287 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8317 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8344 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8370 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8396 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8425 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8451 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8478 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8507 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8534 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8560 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8586 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            8618 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8646 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8675 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8706 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8740 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8771 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8800 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8833 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8867 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8898 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8929 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8960 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            8987 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            9014 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            9041 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_ACTIVE,
state            9068 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            9095 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            9122 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            9149 source4/torture/nbt/winsreplication.c 			.state		= WREPL_STATE_TOMBSTONE,
state            9287 source4/torture/nbt/winsreplication.c 							   records[i].replica.state,
state              79 source4/torture/raw/lockbench.c 	switch (state->stage) {
state              83 source4/torture/raw/lockbench.c 		state->lock_offset = 0;
state              84 source4/torture/raw/lockbench.c 		state->unlock_offset = 0;
state              85 source4/torture/raw/lockbench.c 		lock.offset = state->lock_offset;
state              90 source4/torture/raw/lockbench.c 		state->lock_offset = (state->lock_offset+1)%(nprocs+1);
state              91 source4/torture/raw/lockbench.c 		lock.offset = state->lock_offset;
state              96 source4/torture/raw/lockbench.c 		lock.offset = state->unlock_offset;
state              97 source4/torture/raw/lockbench.c 		state->unlock_offset = (state->unlock_offset+1)%(nprocs+1);
state             102 source4/torture/raw/lockbench.c 	lock.pid = state->tree->session->pid;
state             108 source4/torture/raw/lockbench.c 	io.lockx.in.file.fnum = state->fnum;
state             110 source4/torture/raw/lockbench.c 	state->req = smb_raw_lock_send(state->tree, &io);
state             111 source4/torture/raw/lockbench.c 	if (state->req == NULL) {
state             115 source4/torture/raw/lockbench.c 	state->req->async.private_data = state;
state             116 source4/torture/raw/lockbench.c 	state->req->async.fn      = lock_completion;
state             126 source4/torture/raw/lockbench.c 	struct benchlock_state *state = (struct benchlock_state *)private_data;
state             129 source4/torture/raw/lockbench.c 	state->fnum = smbcli_open(state->tree, FNAME, O_RDWR|O_CREAT, DENY_NONE);
state             130 source4/torture/raw/lockbench.c 	if (state->fnum == -1) {
state             131 source4/torture/raw/lockbench.c 		printf("Failed to open %s on connection %d\n", FNAME, state->client_num);
state             137 source4/torture/raw/lockbench.c 	DEBUG(0,("reconnect to %s finished (%u connected)\n", state->dest_host,
state             140 source4/torture/raw/lockbench.c 	state->stage = LOCK_INITIAL;
state             141 source4/torture/raw/lockbench.c 	lock_send(state);
state             149 source4/torture/raw/lockbench.c 	struct benchlock_state *state = (struct benchlock_state *)ctx->async.private_data;
state             151 source4/torture/raw/lockbench.c 	struct smb_composite_connect *io = &state->reconnect;
state             153 source4/torture/raw/lockbench.c 	status = smb_composite_connect_recv(ctx, state->mem_ctx);
state             155 source4/torture/raw/lockbench.c 		talloc_free(state->te);
state             156 source4/torture/raw/lockbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state             158 source4/torture/raw/lockbench.c 					    reopen_connection, state);
state             162 source4/torture/raw/lockbench.c 	talloc_free(state->tree);
state             163 source4/torture/raw/lockbench.c 	state->tree = io->out.tree;
state             166 source4/torture/raw/lockbench.c 	event_add_timed(state->ev, state->mem_ctx, timeval_zero(), reopen_file, state);
state             177 source4/torture/raw/lockbench.c 	struct benchlock_state *state = (struct benchlock_state *)private_data;
state             179 source4/torture/raw/lockbench.c 	struct smb_composite_connect *io = &state->reconnect;
state             182 source4/torture/raw/lockbench.c 	state->te = NULL;
state             184 source4/torture/raw/lockbench.c 	if (!torture_get_conn_index(state->client_num, state->mem_ctx, state->tctx, &host, &share)) {
state             189 source4/torture/raw/lockbench.c 	io->in.dest_host    = state->dest_host;
state             190 source4/torture/raw/lockbench.c 	io->in.dest_ports   = state->dest_ports;
state             191 source4/torture/raw/lockbench.c 	io->in.gensec_settings = lp_gensec_settings(state->mem_ctx, state->tctx->lp_ctx);
state             192 source4/torture/raw/lockbench.c 	io->in.socket_options = lp_socket_options(state->tctx->lp_ctx);
state             193 source4/torture/raw/lockbench.c 	io->in.called_name  = state->called_name;
state             195 source4/torture/raw/lockbench.c 	io->in.service_type = state->service_type;
state             198 source4/torture/raw/lockbench.c 	io->in.workgroup    = lp_workgroup(state->tctx->lp_ctx);
state             199 source4/torture/raw/lockbench.c 	io->in.iconv_convenience = lp_iconv_convenience(state->tctx->lp_ctx);
state             200 source4/torture/raw/lockbench.c 	lp_smbcli_options(state->tctx->lp_ctx, &io->in.options);
state             201 source4/torture/raw/lockbench.c 	lp_smbcli_session_options(state->tctx->lp_ctx, &io->in.session_options);
state             204 source4/torture/raw/lockbench.c 	talloc_free(state->tree);
state             205 source4/torture/raw/lockbench.c 	state->tree = NULL;
state             207 source4/torture/raw/lockbench.c 	ctx = smb_composite_connect_send(io, state->mem_ctx, 
state             208 source4/torture/raw/lockbench.c 					 lp_resolve_context(state->tctx->lp_ctx),
state             209 source4/torture/raw/lockbench.c 					 state->ev);
state             216 source4/torture/raw/lockbench.c 	ctx->async.private_data = state;
state             225 source4/torture/raw/lockbench.c 	struct benchlock_state *state = (struct benchlock_state *)req->async.private_data;
state             227 source4/torture/raw/lockbench.c 	state->req = NULL;
state             231 source4/torture/raw/lockbench.c 			talloc_free(state->tree);
state             232 source4/torture/raw/lockbench.c 			state->tree = NULL;
state             234 source4/torture/raw/lockbench.c 			DEBUG(0,("reopening connection to %s\n", state->dest_host));
state             235 source4/torture/raw/lockbench.c 			talloc_free(state->te);
state             236 source4/torture/raw/lockbench.c 			state->te = event_add_timed(state->ev, state->mem_ctx, 
state             238 source4/torture/raw/lockbench.c 						    reopen_connection, state);
state             246 source4/torture/raw/lockbench.c 	switch (state->stage) {
state             248 source4/torture/raw/lockbench.c 		state->stage = LOCK_LOCK;
state             251 source4/torture/raw/lockbench.c 		state->stage = LOCK_UNLOCK;
state             254 source4/torture/raw/lockbench.c 		state->stage = LOCK_LOCK;
state             258 source4/torture/raw/lockbench.c 	state->count++;
state             259 source4/torture/raw/lockbench.c 	lock_send(state);
state             265 source4/torture/raw/lockbench.c 	struct benchlock_state *state = (struct benchlock_state *)req->async.private_data;
state             269 source4/torture/raw/lockbench.c 		talloc_free(state->tree);
state             270 source4/torture/raw/lockbench.c 		state->tree = NULL;
state             272 source4/torture/raw/lockbench.c 		DEBUG(0,("reopening connection to %s\n", state->dest_host));
state             273 source4/torture/raw/lockbench.c 		talloc_free(state->te);
state             274 source4/torture/raw/lockbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state             276 source4/torture/raw/lockbench.c 					    reopen_connection, state);
state             283 source4/torture/raw/lockbench.c 	struct benchlock_state *state = talloc_get_type(private_data, 
state             287 source4/torture/raw/lockbench.c 		printf("%5u ", (unsigned)(state[i].count - state[i].lastcount));
state             288 source4/torture/raw/lockbench.c 		state[i].lastcount = state[i].count;
state             292 source4/torture/raw/lockbench.c 	event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
state             300 source4/torture/raw/lockbench.c 		if (!state[i].tree) {
state             307 source4/torture/raw/lockbench.c 		req = smb_raw_echo_send(state[i].tree->session->transport, &p);
state             308 source4/torture/raw/lockbench.c 		req->async.private_data = &state[i];
state             323 source4/torture/raw/lockbench.c 	struct benchlock_state *state;
state             332 source4/torture/raw/lockbench.c 	state = talloc_zero_array(mem_ctx, struct benchlock_state, nprocs);
state             336 source4/torture/raw/lockbench.c 		state[i].tctx = torture;
state             337 source4/torture/raw/lockbench.c 		state[i].mem_ctx = talloc_new(state);
state             338 source4/torture/raw/lockbench.c 		state[i].client_num = i;
state             339 source4/torture/raw/lockbench.c 		state[i].ev = torture->ev;
state             343 source4/torture/raw/lockbench.c 		talloc_steal(mem_ctx, state);
state             344 source4/torture/raw/lockbench.c 		state[i].tree = cli->tree;
state             345 source4/torture/raw/lockbench.c 		state[i].dest_host = talloc_strdup(state[i].mem_ctx, 
state             347 source4/torture/raw/lockbench.c 		state[i].dest_ports = talloc_array(state[i].mem_ctx, 
state             349 source4/torture/raw/lockbench.c 		state[i].dest_ports[0] = talloc_asprintf(state[i].dest_ports, 
state             352 source4/torture/raw/lockbench.c 		state[i].dest_ports[1] = NULL;
state             353 source4/torture/raw/lockbench.c 		state[i].called_name  = talloc_strdup(state[i].mem_ctx,
state             355 source4/torture/raw/lockbench.c 		state[i].service_type = talloc_strdup(state[i].mem_ctx,
state             366 source4/torture/raw/lockbench.c 		state[i].fnum = smbcli_open(state[i].tree, 
state             369 source4/torture/raw/lockbench.c 		if (state[i].fnum == -1) {
state             374 source4/torture/raw/lockbench.c 		state[i].stage = LOCK_INITIAL;
state             375 source4/torture/raw/lockbench.c 		lock_send(&state[i]);
state             381 source4/torture/raw/lockbench.c 		event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state);
state             395 source4/torture/raw/lockbench.c 	minops = state[0].count;
state             397 source4/torture/raw/lockbench.c 		printf("[%d] %u ops\n", i, state[i].count);
state             398 source4/torture/raw/lockbench.c 		if (state[i].count < minops) minops = state[i].count;
state             406 source4/torture/raw/lockbench.c 		talloc_free(state[i].req);
state             407 source4/torture/raw/lockbench.c 		smb_raw_exit(state[i].tree->session);
state             410 source4/torture/raw/lockbench.c 	smbcli_deltree(state[0].tree, BASEDIR);
state              90 source4/torture/raw/offline.c 	struct offline_state *state = ctx->async.private_data;
state              94 source4/torture/raw/offline.c 	status = smb_composite_loadfile_recv(ctx, state->mem_ctx);
state              97 source4/torture/raw/offline.c 		       state->loadfile->in.fname, nt_errstr(status));
state             102 source4/torture/raw/offline.c 	if (state->loadfile->out.size != FILE_SIZE) {
state             104 source4/torture/raw/offline.c 		       state->loadfile->out.size, FILE_SIZE);
state             110 source4/torture/raw/offline.c 		if (state->loadfile->out.data[i] != 1+(state->fnumber % 255)) {
state             112 source4/torture/raw/offline.c 			       state->fnumber, 
state             113 source4/torture/raw/offline.c 			       state->loadfile->out.data[i],
state             114 source4/torture/raw/offline.c 			       1+(state->fnumber % 255));
state             120 source4/torture/raw/offline.c 	talloc_steal(state->loadfile, state->loadfile->out.data);
state             122 source4/torture/raw/offline.c 	state->count++;
state             123 source4/torture/raw/offline.c 	talloc_free(state->loadfile);
state             124 source4/torture/raw/offline.c 	state->loadfile = NULL;
state             127 source4/torture/raw/offline.c 		test_offline(state);
state             137 source4/torture/raw/offline.c 	struct offline_state *state = ctx->async.private_data;
state             143 source4/torture/raw/offline.c 		       state->savefile->in.fname, nt_errstr(status));
state             147 source4/torture/raw/offline.c 	state->count++;
state             148 source4/torture/raw/offline.c 	talloc_free(state->savefile);
state             149 source4/torture/raw/offline.c 	state->savefile = NULL;
state             152 source4/torture/raw/offline.c 		test_offline(state);
state             162 source4/torture/raw/offline.c 	struct offline_state *state = req->async.private_data;
state             168 source4/torture/raw/offline.c 		       state->fname, nt_errstr(status));
state             172 source4/torture/raw/offline.c 	state->req = NULL;
state             173 source4/torture/raw/offline.c 	state->count++;
state             176 source4/torture/raw/offline.c 		test_offline(state);
state             186 source4/torture/raw/offline.c 	struct offline_state *state = req->async.private_data;
state             192 source4/torture/raw/offline.c 	status = smb_raw_pathinfo_recv(req, state->mem_ctx, &io);
state             195 source4/torture/raw/offline.c 		       state->fname, nt_errstr(status));
state             200 source4/torture/raw/offline.c 		state->offline_count++;
state             202 source4/torture/raw/offline.c 		state->online_count++;
state             205 source4/torture/raw/offline.c 	state->req = NULL;
state             206 source4/torture/raw/offline.c 	state->count++;
state             209 source4/torture/raw/offline.c 		test_offline(state);
state             222 source4/torture/raw/offline.c 	lat = timeval_elapsed(&state->tv_start);
state             223 source4/torture/raw/offline.c 	if (latencies[state->op] < lat) {
state             224 source4/torture/raw/offline.c 		latencies[state->op] = lat;
state             227 source4/torture/raw/offline.c 	state->op = (enum offline_op) (random() % OP_ENDOFLIST);
state             229 source4/torture/raw/offline.c 	state->fnumber = random() % torture_numops;
state             230 source4/torture/raw/offline.c 	talloc_free(state->fname);
state             231 source4/torture/raw/offline.c 	state->fname = filename(state->mem_ctx, state->fnumber);
state             233 source4/torture/raw/offline.c 	state->tv_start = timeval_current();
state             235 source4/torture/raw/offline.c 	switch (state->op) {
state             237 source4/torture/raw/offline.c 		state->loadfile = talloc_zero(state->mem_ctx, struct smb_composite_loadfile);
state             238 source4/torture/raw/offline.c 		state->loadfile->in.fname = state->fname;
state             240 source4/torture/raw/offline.c 		ctx = smb_composite_loadfile_send(state->tree, state->loadfile);
state             242 source4/torture/raw/offline.c 			printf("Failed to setup loadfile for %s\n", state->fname);
state             246 source4/torture/raw/offline.c 		talloc_steal(state->loadfile, ctx);
state             249 source4/torture/raw/offline.c 		ctx->async.private_data = state;
state             253 source4/torture/raw/offline.c 		state->savefile = talloc_zero(state->mem_ctx, struct smb_composite_savefile);
state             255 source4/torture/raw/offline.c 		state->savefile->in.fname = state->fname;
state             256 source4/torture/raw/offline.c 		state->savefile->in.data  = talloc_size(state->savefile, FILE_SIZE);
state             257 source4/torture/raw/offline.c 		state->savefile->in.size  = FILE_SIZE;
state             258 source4/torture/raw/offline.c 		memset(state->savefile->in.data, 1+(state->fnumber%255), FILE_SIZE);
state             260 source4/torture/raw/offline.c 		ctx = smb_composite_savefile_send(state->tree, state->savefile);
state             262 source4/torture/raw/offline.c 			printf("Failed to setup savefile for %s\n", state->fname);
state             266 source4/torture/raw/offline.c 		talloc_steal(state->savefile, ctx);
state             269 source4/torture/raw/offline.c 		ctx->async.private_data = state;
state             277 source4/torture/raw/offline.c 		io.setattr.in.file.path = state->fname;
state             282 source4/torture/raw/offline.c 		state->req = smb_raw_setpathinfo_send(state->tree, &io);
state             283 source4/torture/raw/offline.c 		if (state->req == NULL) {
state             284 source4/torture/raw/offline.c 			printf("Failed to setup setoffline for %s\n", state->fname);
state             288 source4/torture/raw/offline.c 		state->req->async.fn = setoffline_callback;
state             289 source4/torture/raw/offline.c 		state->req->async.private_data = state;
state             297 source4/torture/raw/offline.c 		io.getattr.in.file.path = state->fname;
state             299 source4/torture/raw/offline.c 		state->req = smb_raw_pathinfo_send(state->tree, &io);
state             300 source4/torture/raw/offline.c 		if (state->req == NULL) {
state             301 source4/torture/raw/offline.c 			printf("Failed to setup getoffline for %s\n", state->fname);
state             305 source4/torture/raw/offline.c 		state->req->async.fn = getoffline_callback;
state             306 source4/torture/raw/offline.c 		state->req->async.private_data = state;
state             321 source4/torture/raw/offline.c 	struct offline_state *state = (struct offline_state *)req->async.private_data;
state             325 source4/torture/raw/offline.c 		talloc_free(state->tree);
state             326 source4/torture/raw/offline.c 		state->tree = NULL;
state             336 source4/torture/raw/offline.c 	struct offline_state *state = talloc_get_type(private_data, 
state             341 source4/torture/raw/offline.c 		total += state[i].count - state[i].lastcount;
state             342 source4/torture/raw/offline.c 		if (timeval_elapsed(&state[i].tv_start) > latencies[state[i].op]) {
state             343 source4/torture/raw/offline.c 			latencies[state[i].op] = timeval_elapsed(&state[i].tv_start);
state             345 source4/torture/raw/offline.c 		state[i].lastcount = state[i].count;		
state             346 source4/torture/raw/offline.c 		total_online += state[i].online_count;
state             347 source4/torture/raw/offline.c 		total_offline += state[i].offline_count;
state             360 source4/torture/raw/offline.c 	event_add_timed(ev, state, timeval_current_ofs(1, 0), report_rate, state);
state             375 source4/torture/raw/offline.c 		if (!state[i].tree) {
state             382 source4/torture/raw/offline.c 		req = smb_raw_echo_send(state[i].tree->session->transport, &p);
state             383 source4/torture/raw/offline.c 		req->async.private_data = &state[i];
state             398 source4/torture/raw/offline.c 	struct offline_state *state;
state             406 source4/torture/raw/offline.c 	state = talloc_zero_array(mem_ctx, struct offline_state, numstates);
state             410 source4/torture/raw/offline.c 		state[i].tctx = torture;
state             411 source4/torture/raw/offline.c 		state[i].mem_ctx = talloc_new(state);
state             412 source4/torture/raw/offline.c 		state[i].ev = torture->ev;
state             416 source4/torture/raw/offline.c 		state[i].tree = cli->tree;
state             417 source4/torture/raw/offline.c 		state[i].client = i;
state             419 source4/torture/raw/offline.c 		state[i].tree->session->transport->options.request_timeout = 200;
state             424 source4/torture/raw/offline.c 		state[i].tctx = torture;
state             425 source4/torture/raw/offline.c 		state[i].mem_ctx = talloc_new(state);
state             426 source4/torture/raw/offline.c 		state[i].ev = torture->ev;
state             427 source4/torture/raw/offline.c 		state[i].tree = state[i % nconnections].tree;
state             428 source4/torture/raw/offline.c 		state[i].client = i;
state             447 source4/torture/raw/offline.c 		fnum = smbcli_open(state[0].tree, fname, O_RDWR|O_CREAT, DENY_NONE);
state             453 source4/torture/raw/offline.c 		if (smbcli_write(state[0].tree, fnum, 0, buf, 0, sizeof(buf)) != sizeof(buf)) {
state             458 source4/torture/raw/offline.c 		status = smbcli_close(state[0].tree, fnum);
state             469 source4/torture/raw/offline.c 		state[i].tv_start = timeval_current();
state             470 source4/torture/raw/offline.c 		test_offline(&state[i]);
state             476 source4/torture/raw/offline.c 		event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), report_rate, state);
state             492 source4/torture/raw/offline.c 		while (state[i].loadfile || 
state             493 source4/torture/raw/offline.c 		       state[i].savefile ||
state             494 source4/torture/raw/offline.c 		       state[i].req) {
state             505 source4/torture/raw/offline.c 	smbcli_deltree(state[0].tree, BASEDIR);
state            1551 source4/torture/raw/open.c 			if (requests[i]->state < SMBCLI_REQUEST_DONE) {
state              86 source4/torture/raw/openbench.c 	struct benchopen_state *state = (struct benchopen_state *)ctx->async.private_data;
state              88 source4/torture/raw/openbench.c 	struct smb_composite_connect *io = &state->reconnect;
state              90 source4/torture/raw/openbench.c 	status = smb_composite_connect_recv(ctx, state->mem_ctx);
state              92 source4/torture/raw/openbench.c 		talloc_free(state->te);
state              93 source4/torture/raw/openbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state              95 source4/torture/raw/openbench.c 					    reopen_connection, state);
state              99 source4/torture/raw/openbench.c 	state->tree = io->out.tree;
state             104 source4/torture/raw/openbench.c 		 state->client_num, state->dest_host, num_connected));
state             106 source4/torture/raw/openbench.c 	state->open_fnum = -1;
state             107 source4/torture/raw/openbench.c 	state->close_fnum = -1;
state             108 source4/torture/raw/openbench.c 	next_open(state);
state             119 source4/torture/raw/openbench.c 	struct benchopen_state *state = (struct benchopen_state *)private_data;
state             121 source4/torture/raw/openbench.c 	struct smb_composite_connect *io = &state->reconnect;
state             124 source4/torture/raw/openbench.c 	state->te = NULL;
state             126 source4/torture/raw/openbench.c 	if (!torture_get_conn_index(state->client_num, state->mem_ctx, state->tctx, &host, &share)) {
state             131 source4/torture/raw/openbench.c 	io->in.dest_host    = state->dest_host;
state             132 source4/torture/raw/openbench.c 	io->in.dest_ports   = state->dest_ports;
state             133 source4/torture/raw/openbench.c 	io->in.socket_options = lp_socket_options(state->tctx->lp_ctx);
state             134 source4/torture/raw/openbench.c 	io->in.called_name  = state->called_name;
state             136 source4/torture/raw/openbench.c 	io->in.service_type = state->service_type;
state             139 source4/torture/raw/openbench.c 	io->in.workgroup    = lp_workgroup(state->tctx->lp_ctx);
state             140 source4/torture/raw/openbench.c 	io->in.gensec_settings = lp_gensec_settings(state->mem_ctx, state->tctx->lp_ctx);
state             141 source4/torture/raw/openbench.c 	lp_smbcli_options(state->tctx->lp_ctx, &io->in.options);
state             142 source4/torture/raw/openbench.c 	lp_smbcli_session_options(state->tctx->lp_ctx, &io->in.session_options);
state             145 source4/torture/raw/openbench.c 	talloc_free(state->tree);
state             146 source4/torture/raw/openbench.c 	state->tree = NULL;
state             147 source4/torture/raw/openbench.c 	state->open_fnum = -1;
state             148 source4/torture/raw/openbench.c 	state->close_fnum = -1;
state             150 source4/torture/raw/openbench.c 	ctx = smb_composite_connect_send(io, state->mem_ctx, 
state             151 source4/torture/raw/openbench.c 					 lp_resolve_context(state->tctx->lp_ctx), 
state             152 source4/torture/raw/openbench.c 					 state->ev);
state             159 source4/torture/raw/openbench.c 	ctx->async.private_data = state;
state             168 source4/torture/raw/openbench.c 	state->count++;
state             170 source4/torture/raw/openbench.c 	state->pending_file_num = state->next_file_num;
state             171 source4/torture/raw/openbench.c 	state->next_file_num = (state->next_file_num+1) % (3*nprocs);
state             173 source4/torture/raw/openbench.c 	DEBUG(2,("[%d] opening %u\n", state->client_num, state->pending_file_num));
state             174 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.level = RAW_OPEN_NTCREATEX;
state             175 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.flags = 0;
state             176 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.root_fid = 0;
state             177 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.access_mask = SEC_RIGHTS_FILE_ALL;
state             178 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL;
state             179 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.alloc_size = 0;
state             180 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.share_access = 0;
state             181 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.open_disposition = NTCREATEX_DISP_OVERWRITE_IF;
state             182 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.create_options = 0;
state             183 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.impersonation = 0;
state             184 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.security_flags = 0;
state             185 source4/torture/raw/openbench.c 	state->open_parms.ntcreatex.in.fname = fnames[state->pending_file_num];
state             187 source4/torture/raw/openbench.c 	state->req_open = smb_raw_open_send(state->tree, &state->open_parms);
state             188 source4/torture/raw/openbench.c 	state->req_open->async.fn = open_completed;
state             189 source4/torture/raw/openbench.c 	state->req_open->async.private_data = state;
state             195 source4/torture/raw/openbench.c 	if (state->close_fnum == -1) {
state             199 source4/torture/raw/openbench.c 		 state->client_num, state->close_file_num, state->close_fnum));
state             200 source4/torture/raw/openbench.c 	state->close_parms.close.level = RAW_CLOSE_CLOSE;
state             201 source4/torture/raw/openbench.c 	state->close_parms.close.in.file.fnum = state->close_fnum;
state             202 source4/torture/raw/openbench.c 	state->close_parms.close.in.write_time = 0;
state             204 source4/torture/raw/openbench.c 	state->req_close = smb_raw_close_send(state->tree, &state->close_parms);
state             205 source4/torture/raw/openbench.c 	state->req_close->async.fn = close_completed;
state             206 source4/torture/raw/openbench.c 	state->req_close->async.private_data = state;
state             214 source4/torture/raw/openbench.c 	struct benchopen_state *state = (struct benchopen_state *)req->async.private_data;
state             215 source4/torture/raw/openbench.c 	TALLOC_CTX *tmp_ctx = talloc_new(state->mem_ctx);
state             218 source4/torture/raw/openbench.c 	status = smb_raw_open_recv(req, tmp_ctx, &state->open_parms);
state             222 source4/torture/raw/openbench.c 	state->req_open = NULL;
state             226 source4/torture/raw/openbench.c 		talloc_free(state->tree);
state             227 source4/torture/raw/openbench.c 		talloc_free(state->cli);
state             228 source4/torture/raw/openbench.c 		state->tree = NULL;
state             229 source4/torture/raw/openbench.c 		state->cli = NULL;
state             232 source4/torture/raw/openbench.c 			 state->client_num, state->dest_host));
state             233 source4/torture/raw/openbench.c 		talloc_free(state->te);
state             234 source4/torture/raw/openbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state             236 source4/torture/raw/openbench.c 					    reopen_connection, state);
state             242 source4/torture/raw/openbench.c 			 state->client_num, state->pending_file_num));
state             243 source4/torture/raw/openbench.c 		state->open_retries++;
state             244 source4/torture/raw/openbench.c 		state->req_open = smb_raw_open_send(state->tree, &state->open_parms);
state             245 source4/torture/raw/openbench.c 		state->req_open->async.fn = open_completed;
state             246 source4/torture/raw/openbench.c 		state->req_open->async.private_data = state;
state             253 source4/torture/raw/openbench.c 			 state->client_num, state->pending_file_num,
state             258 source4/torture/raw/openbench.c 	state->close_file_num = state->open_file_num;
state             259 source4/torture/raw/openbench.c 	state->close_fnum = state->open_fnum;
state             260 source4/torture/raw/openbench.c 	state->open_file_num = state->pending_file_num;
state             261 source4/torture/raw/openbench.c 	state->open_fnum = state->open_parms.ntcreatex.out.file.fnum;
state             264 source4/torture/raw/openbench.c 		 state->client_num, state->open_file_num, state->open_fnum));
state             266 source4/torture/raw/openbench.c 	if (state->close_fnum != -1) {
state             267 source4/torture/raw/openbench.c 		next_close(state);
state             270 source4/torture/raw/openbench.c 	next_open(state);
state             278 source4/torture/raw/openbench.c 	struct benchopen_state *state = (struct benchopen_state *)req->async.private_data;
state             281 source4/torture/raw/openbench.c 	state->req_close = NULL;
state             285 source4/torture/raw/openbench.c 		talloc_free(state->tree);
state             286 source4/torture/raw/openbench.c 		talloc_free(state->cli);
state             287 source4/torture/raw/openbench.c 		state->tree = NULL;
state             288 source4/torture/raw/openbench.c 		state->cli = NULL;
state             291 source4/torture/raw/openbench.c 			 state->client_num, state->dest_host));
state             292 source4/torture/raw/openbench.c 		talloc_free(state->te);
state             293 source4/torture/raw/openbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state             295 source4/torture/raw/openbench.c 					    reopen_connection, state);
state             302 source4/torture/raw/openbench.c 			 state->client_num, state->close_file_num,
state             303 source4/torture/raw/openbench.c 			 state->close_fnum,
state             309 source4/torture/raw/openbench.c 		 state->client_num, state->close_file_num,
state             310 source4/torture/raw/openbench.c 		 state->close_fnum));
state             315 source4/torture/raw/openbench.c 	struct benchopen_state *state = (struct benchopen_state *)req->async.private_data;
state             319 source4/torture/raw/openbench.c 		talloc_free(state->tree);
state             320 source4/torture/raw/openbench.c 		state->tree = NULL;
state             323 source4/torture/raw/openbench.c 			 state->client_num, state->dest_host));
state             324 source4/torture/raw/openbench.c 		talloc_free(state->te);
state             325 source4/torture/raw/openbench.c 		state->te = event_add_timed(state->ev, state->mem_ctx, 
state             327 source4/torture/raw/openbench.c 					    reopen_connection, state);
state             334 source4/torture/raw/openbench.c 	struct benchopen_state *state = talloc_get_type(private_data, 
state             338 source4/torture/raw/openbench.c 		printf("%5u ", (unsigned)(state[i].count - state[i].lastcount));
state             339 source4/torture/raw/openbench.c 		state[i].lastcount = state[i].count;
state             343 source4/torture/raw/openbench.c 	report_te = event_add_timed(ev, state, timeval_current_ofs(1, 0), 
state             344 source4/torture/raw/openbench.c 				    report_rate, state);
state             352 source4/torture/raw/openbench.c 		if (!state[i].tree) {
state             359 source4/torture/raw/openbench.c 		req = smb_raw_echo_send(state[i].tree->session->transport, &p);
state             360 source4/torture/raw/openbench.c 		req->async.private_data = &state[i];
state             375 source4/torture/raw/openbench.c 	struct benchopen_state *state;
state             385 source4/torture/raw/openbench.c 	state = talloc_zero_array(mem_ctx, struct benchopen_state, nprocs);
state             389 source4/torture/raw/openbench.c 		state[i].tctx = torture;
state             390 source4/torture/raw/openbench.c 		state[i].mem_ctx = talloc_new(state);
state             391 source4/torture/raw/openbench.c 		state[i].client_num = i;
state             392 source4/torture/raw/openbench.c 		state[i].ev = torture->ev;
state             393 source4/torture/raw/openbench.c 		if (!torture_open_connection_ev(&state[i].cli, i, torture, torture->ev)) {
state             396 source4/torture/raw/openbench.c 		talloc_steal(mem_ctx, state);
state             397 source4/torture/raw/openbench.c 		state[i].tree = state[i].cli->tree;
state             398 source4/torture/raw/openbench.c 		state[i].dest_host = talloc_strdup(state[i].mem_ctx, 
state             399 source4/torture/raw/openbench.c 						   state[i].cli->tree->session->transport->socket->hostname);
state             400 source4/torture/raw/openbench.c 		state[i].dest_ports = talloc_array(state[i].mem_ctx, 
state             402 source4/torture/raw/openbench.c 		state[i].dest_ports[0] = talloc_asprintf(state[i].dest_ports, 
state             403 source4/torture/raw/openbench.c 							 "%u", state[i].cli->tree->session->transport->socket->port);
state             404 source4/torture/raw/openbench.c 		state[i].dest_ports[1] = NULL;
state             405 source4/torture/raw/openbench.c 		state[i].called_name  = talloc_strdup(state[i].mem_ctx,
state             406 source4/torture/raw/openbench.c 						      state[i].cli->tree->session->transport->called.name);
state             407 source4/torture/raw/openbench.c 		state[i].service_type = talloc_strdup(state[i].mem_ctx,
state             408 source4/torture/raw/openbench.c 						      state[i].cli->tree->device);
state             413 source4/torture/raw/openbench.c 	if (!torture_setup_dir(state[0].cli, BASEDIR)) {
state             424 source4/torture/raw/openbench.c 		state[i].next_file_num = 0;
state             425 source4/torture/raw/openbench.c 		state[i].open_fnum = -1;
state             426 source4/torture/raw/openbench.c 		state[i].close_fnum = -1;
state             427 source4/torture/raw/openbench.c 		next_open(&state[i]);
state             433 source4/torture/raw/openbench.c 		report_te = event_add_timed(torture->ev, state, timeval_current_ofs(1, 0), 
state             434 source4/torture/raw/openbench.c 					    report_rate, state);
state             459 source4/torture/raw/openbench.c 	minops = state[0].count;
state             461 source4/torture/raw/openbench.c 		total += state[i].count;
state             462 source4/torture/raw/openbench.c 		total_retries += state[i].open_retries;
state             464 source4/torture/raw/openbench.c 		       i, state[i].count, state[i].open_retries);
state             465 source4/torture/raw/openbench.c 		if (state[i].count < minops) minops = state[i].count;
state             475 source4/torture/raw/openbench.c 		talloc_free(state[i].req_open);
state             476 source4/torture/raw/openbench.c 		talloc_free(state[i].req_close);
state             477 source4/torture/raw/openbench.c 		smb_raw_exit(state[i].tree->session);
state             480 source4/torture/raw/openbench.c 	smbcli_deltree(state[0].tree, BASEDIR);
state              66 source4/torture/raw/samba3hide.c 	struct list_state *state = (struct list_state *)priv;
state              68 source4/torture/raw/samba3hide.c 	if (strcasecmp_m(state->fname, i->name) == 0)
state              69 source4/torture/raw/samba3hide.c 		state->visible = true;
state              74 source4/torture/raw/samba3hide.c 	struct list_state state;
state              76 source4/torture/raw/samba3hide.c 	state.visible = false;
state              77 source4/torture/raw/samba3hide.c 	state.fname = fname;
state              79 source4/torture/raw/samba3hide.c 	if (smbcli_list(tree, "*.*", 0, set_visible, &state) < 0) {
state              82 source4/torture/raw/samba3hide.c 	return state.visible;
state             259 source4/torture/rpc/echo.c 			if (done[i] == false && req[i]->state == RPC_REQUEST_DONE) {
state             396 source4/torture/rpc/svcctl.c 	r.in.state = SERVICE_STATE_ALL;
state             448 source4/torture/rpc/svcctl.c 			service[i].status.type, service[i].status.state);
state             477 source4/torture/rpc/svcctl.c 	r.in.state = 0;
state             491 source4/torture/rpc/svcctl.c 		r.in.state = states[i];
state              76 source4/torture/smb2/notify.c 	while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
state              98 source4/torture/smb2/notify.c 	while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
state             117 source4/torture/smb2/notify.c 	while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
state             149 source4/torture/smb2/notify.c 	while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
state             163 source4/torture/smb2/notify.c 	while (!req->cancel.can_cancel && req->state <= SMB2_REQUEST_RECV) {
state             369 source4/utils/ntlm_auth.c 		gensec_want_feature(state, GENSEC_FEATURE_SESSION_KEY);
state             373 source4/utils/ntlm_auth.c 		gensec_want_feature(state, GENSEC_FEATURE_SIGN);
state             377 source4/utils/ntlm_auth.c 		gensec_want_feature(state, GENSEC_FEATURE_SEAL);
state             394 source4/utils/ntlm_auth.c 	struct gensec_ntlm_state *state;
state             409 source4/utils/ntlm_auth.c 		state = (struct gensec_ntlm_state *)*private1;
state             411 source4/utils/ntlm_auth.c 		state = talloc_zero(NULL, struct gensec_ntlm_state);
state             412 source4/utils/ntlm_auth.c 		if (!state) {
state             416 source4/utils/ntlm_auth.c 		*private1 = state;
state             418 source4/utils/ntlm_auth.c 			state->set_password = opt_password;
state             432 source4/utils/ntlm_auth.c 			want_feature_list = talloc_strndup(state, buf+3, strlen(buf)-3);
state             442 source4/utils/ntlm_auth.c 		if (state->gensec_state) {
state             443 source4/utils/ntlm_auth.c 			talloc_free(state->gensec_state);
state             444 source4/utils/ntlm_auth.c 			state->gensec_state = NULL;
state             465 source4/utils/ntlm_auth.c 	ev = s4_event_context_init(state);
state             470 source4/utils/ntlm_auth.c 	if (!(state->gensec_state)) {
state             476 source4/utils/ntlm_auth.c 			nt_status = gensec_client_start(NULL, &state->gensec_state, ev, 
state             489 source4/utils/ntlm_auth.c 			msg = messaging_client_init(state, lp_messaging_path(state, lp_ctx), 
state             505 source4/utils/ntlm_auth.c 			if (!NT_STATUS_IS_OK(gensec_server_start(state, ev, 
state             506 source4/utils/ntlm_auth.c 								 lp_gensec_settings(state, lp_ctx), 
state             507 source4/utils/ntlm_auth.c 								 auth_context, &state->gensec_state))) {
state             516 source4/utils/ntlm_auth.c 		creds = cli_credentials_init(state->gensec_state);
state             524 source4/utils/ntlm_auth.c 		if (state->set_password) {
state             525 source4/utils/ntlm_auth.c 			cli_credentials_set_password(creds, state->set_password, CRED_SPECIFIED);
state             543 source4/utils/ntlm_auth.c 		gensec_set_credentials(state->gensec_state, creds);
state             544 source4/utils/ntlm_auth.c 		gensec_want_feature_list(state->gensec_state, want_feature_list);
state             549 source4/utils/ntlm_auth.c 			nt_status = gensec_start_mech_by_oid(state->gensec_state, GENSEC_OID_SPNEGO);
state             560 source4/utils/ntlm_auth.c 			nt_status = gensec_start_mech_by_oid(state->gensec_state, GENSEC_OID_NTLMSSP);
state             578 source4/utils/ntlm_auth.c 		state->set_password = talloc_strndup(state,
state             582 source4/utils/ntlm_auth.c 		cli_credentials_set_password(gensec_get_credentials(state->gensec_state),
state             583 source4/utils/ntlm_auth.c 					     state->set_password,
state             596 source4/utils/ntlm_auth.c 		nt_status = gensec_session_info(state->gensec_state, &session_info); 
state             625 source4/utils/ntlm_auth.c 		nt_status = gensec_session_key(state->gensec_state, &session_key);
state             632 source4/utils/ntlm_auth.c 			base64_key = base64_encode_data_blob(state, session_key);
state             644 source4/utils/ntlm_auth.c 		gensec_ntlmssp_state = talloc_get_type(state->gensec_state->private_data, 
state             653 source4/utils/ntlm_auth.c 	nt_status = gensec_update(state->gensec_state, mem_ctx, in, &out);
state             668 source4/utils/ntlm_auth.c 		} else if (state->gensec_state->gensec_role == GENSEC_CLIENT) { 
state             670 source4/utils/ntlm_auth.c 		} else if (state->gensec_state->gensec_role == GENSEC_SERVER) { 
state             689 source4/utils/ntlm_auth.c 	} else if /* OK */ (state->gensec_state->gensec_role == GENSEC_SERVER) {
state             692 source4/utils/ntlm_auth.c 		nt_status = gensec_session_info(state->gensec_state, &session_info);
state             700 source4/utils/ntlm_auth.c 			reply_arg = talloc_asprintf(state->gensec_state, 
state             705 source4/utils/ntlm_auth.c 	} else if (state->gensec_state->gensec_role == GENSEC_CLIENT) {
state              59 source4/winbind/wb_async_helpers.c 	struct lsa_lookupsids_state *state;
state              65 source4/winbind/wb_async_helpers.c 	state = talloc(result, struct lsa_lookupsids_state);
state              66 source4/winbind/wb_async_helpers.c 	if (state == NULL) goto failed;
state              67 source4/winbind/wb_async_helpers.c 	result->private_data = state;
state              68 source4/winbind/wb_async_helpers.c 	state->ctx = result;
state              70 source4/winbind/wb_async_helpers.c 	state->sids.num_sids = num_sids;
state              71 source4/winbind/wb_async_helpers.c 	state->sids.sids = talloc_array(state, struct lsa_SidPtr, num_sids);
state              72 source4/winbind/wb_async_helpers.c 	if (state->sids.sids == NULL) goto failed;
state              75 source4/winbind/wb_async_helpers.c 		state->sids.sids[i].sid = dom_sid_dup(state->sids.sids,
state              77 source4/winbind/wb_async_helpers.c 		if (state->sids.sids[i].sid == NULL) goto failed;
state              80 source4/winbind/wb_async_helpers.c 	state->domains = talloc(state, struct lsa_RefDomainList);
state              81 source4/winbind/wb_async_helpers.c 	if (state->domains == NULL) goto failed;
state              83 source4/winbind/wb_async_helpers.c 	state->count = 0;
state              84 source4/winbind/wb_async_helpers.c 	state->num_sids = num_sids;
state              85 source4/winbind/wb_async_helpers.c 	state->names.count = 0;
state              86 source4/winbind/wb_async_helpers.c 	state->names.names = NULL;
state              88 source4/winbind/wb_async_helpers.c 	state->r.in.handle = handle;
state              89 source4/winbind/wb_async_helpers.c 	state->r.in.sids = &state->sids;
state              90 source4/winbind/wb_async_helpers.c 	state->r.in.names = &state->names;
state              91 source4/winbind/wb_async_helpers.c 	state->r.in.level = 1;
state              92 source4/winbind/wb_async_helpers.c 	state->r.in.count = &state->count;
state              93 source4/winbind/wb_async_helpers.c 	state->r.out.names = &state->names;
state              94 source4/winbind/wb_async_helpers.c 	state->r.out.count = &state->count;
state              95 source4/winbind/wb_async_helpers.c 	state->r.out.domains = &state->domains;
state              97 source4/winbind/wb_async_helpers.c 	req = dcerpc_lsa_LookupSids_send(lsa_pipe, state, &state->r);
state             101 source4/winbind/wb_async_helpers.c 	req->async.private_data = state;
state             111 source4/winbind/wb_async_helpers.c 	struct lsa_lookupsids_state *state =
state             116 source4/winbind/wb_async_helpers.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             117 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             118 source4/winbind/wb_async_helpers.c 	state->ctx->status = state->r.out.result;
state             119 source4/winbind/wb_async_helpers.c 	if (!NT_STATUS_IS_OK(state->ctx->status) &&
state             120 source4/winbind/wb_async_helpers.c 	    !NT_STATUS_EQUAL(state->ctx->status, STATUS_SOME_UNMAPPED)) {
state             121 source4/winbind/wb_async_helpers.c 		composite_error(state->ctx, state->ctx->status);
state             125 source4/winbind/wb_async_helpers.c 	state->result = talloc_array(state, struct wb_sid_object *,
state             126 source4/winbind/wb_async_helpers.c 				     state->num_sids);
state             127 source4/winbind/wb_async_helpers.c 	if (composite_nomem(state->result, state->ctx)) return;
state             129 source4/winbind/wb_async_helpers.c 	for (i=0; i<state->num_sids; i++) {
state             131 source4/winbind/wb_async_helpers.c 			&state->r.out.names->names[i];
state             134 source4/winbind/wb_async_helpers.c 			state->domains;
state             136 source4/winbind/wb_async_helpers.c 		state->result[i] = talloc_zero(state->result,
state             138 source4/winbind/wb_async_helpers.c 		if (composite_nomem(state->result[i], state->ctx)) return;
state             140 source4/winbind/wb_async_helpers.c 		state->result[i]->type = name->sid_type;
state             141 source4/winbind/wb_async_helpers.c 		if (state->result[i]->type == SID_NAME_UNKNOWN) {
state             146 source4/winbind/wb_async_helpers.c 			composite_error(state->ctx,
state             152 source4/winbind/wb_async_helpers.c 		state->result[i]->domain = talloc_reference(state->result[i],
state             156 source4/winbind/wb_async_helpers.c 			state->result[i]->name =
state             157 source4/winbind/wb_async_helpers.c 				talloc_strdup(state->result[i], "");
state             159 source4/winbind/wb_async_helpers.c 			state->result[i]->name =
state             160 source4/winbind/wb_async_helpers.c 				talloc_steal(state->result[i],
state             164 source4/winbind/wb_async_helpers.c 		if (composite_nomem(state->result[i]->name, state->ctx)) {
state             169 source4/winbind/wb_async_helpers.c 	composite_done(state->ctx);
state             178 source4/winbind/wb_async_helpers.c 		struct lsa_lookupsids_state *state =
state             181 source4/winbind/wb_async_helpers.c 		*names = talloc_steal(mem_ctx, state->result);
state             208 source4/winbind/wb_async_helpers.c 	struct lsa_lookupnames_state *state;
state             216 source4/winbind/wb_async_helpers.c 	state = talloc(result, struct lsa_lookupnames_state);
state             217 source4/winbind/wb_async_helpers.c 	if (state == NULL) goto failed;
state             218 source4/winbind/wb_async_helpers.c 	result->private_data = state;
state             219 source4/winbind/wb_async_helpers.c 	state->ctx = result;
state             221 source4/winbind/wb_async_helpers.c 	state->sids.count = 0;
state             222 source4/winbind/wb_async_helpers.c 	state->sids.sids = NULL;
state             223 source4/winbind/wb_async_helpers.c 	state->num_names = num_names;
state             224 source4/winbind/wb_async_helpers.c 	state->count = 0;
state             226 source4/winbind/wb_async_helpers.c 	lsa_names = talloc_array(state, struct lsa_String, num_names);
state             233 source4/winbind/wb_async_helpers.c 	state->domains = talloc(state, struct lsa_RefDomainList);
state             234 source4/winbind/wb_async_helpers.c 	if (state->domains == NULL) goto failed;
state             236 source4/winbind/wb_async_helpers.c 	state->r.in.handle = handle;
state             237 source4/winbind/wb_async_helpers.c 	state->r.in.num_names = num_names;
state             238 source4/winbind/wb_async_helpers.c 	state->r.in.names = lsa_names;
state             239 source4/winbind/wb_async_helpers.c 	state->r.in.sids = &state->sids;
state             240 source4/winbind/wb_async_helpers.c 	state->r.in.level = 1;
state             241 source4/winbind/wb_async_helpers.c 	state->r.in.count = &state->count;
state             242 source4/winbind/wb_async_helpers.c 	state->r.out.count = &state->count;
state             243 source4/winbind/wb_async_helpers.c 	state->r.out.sids = &state->sids;
state             244 source4/winbind/wb_async_helpers.c 	state->r.out.domains = &state->domains;
state             246 source4/winbind/wb_async_helpers.c 	req = dcerpc_lsa_LookupNames_send(lsa_pipe, state, &state->r);
state             250 source4/winbind/wb_async_helpers.c 	req->async.private_data = state;
state             260 source4/winbind/wb_async_helpers.c 	struct lsa_lookupnames_state *state =
state             265 source4/winbind/wb_async_helpers.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             266 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             267 source4/winbind/wb_async_helpers.c 	state->ctx->status = state->r.out.result;
state             268 source4/winbind/wb_async_helpers.c 	if (!NT_STATUS_IS_OK(state->ctx->status) &&
state             269 source4/winbind/wb_async_helpers.c 	    !NT_STATUS_EQUAL(state->ctx->status, STATUS_SOME_UNMAPPED)) {
state             270 source4/winbind/wb_async_helpers.c 		composite_error(state->ctx, state->ctx->status);
state             274 source4/winbind/wb_async_helpers.c 	state->result = talloc_array(state, struct wb_sid_object *,
state             275 source4/winbind/wb_async_helpers.c 				     state->num_names);
state             276 source4/winbind/wb_async_helpers.c 	if (composite_nomem(state->result, state->ctx)) return;
state             278 source4/winbind/wb_async_helpers.c 	for (i=0; i<state->num_names; i++) {
state             279 source4/winbind/wb_async_helpers.c 		struct lsa_TranslatedSid *sid = &state->r.out.sids->sids[i];
state             280 source4/winbind/wb_async_helpers.c 		struct lsa_RefDomainList *domains = state->domains;
state             283 source4/winbind/wb_async_helpers.c 		state->result[i] = talloc_zero(state->result,
state             285 source4/winbind/wb_async_helpers.c 		if (composite_nomem(state->result[i], state->ctx)) return;
state             287 source4/winbind/wb_async_helpers.c 		state->result[i]->type = sid->sid_type;
state             288 source4/winbind/wb_async_helpers.c 		if (state->result[i]->type == SID_NAME_UNKNOWN) {
state             293 source4/winbind/wb_async_helpers.c 			composite_error(state->ctx,
state             300 source4/winbind/wb_async_helpers.c 		state->result[i]->sid = dom_sid_add_rid(state->result[i],
state             304 source4/winbind/wb_async_helpers.c 	composite_done(state->ctx);
state             313 source4/winbind/wb_async_helpers.c 		struct lsa_lookupnames_state *state =
state             316 source4/winbind/wb_async_helpers.c 		*sids = talloc_steal(mem_ctx, state->result);
state             347 source4/winbind/wb_async_helpers.c 	struct samr_getuserdomgroups_state *state;
state             352 source4/winbind/wb_async_helpers.c 	state = talloc(result, struct samr_getuserdomgroups_state);
state             353 source4/winbind/wb_async_helpers.c 	if (state == NULL) goto failed;
state             354 source4/winbind/wb_async_helpers.c 	result->private_data = state;
state             355 source4/winbind/wb_async_helpers.c 	state->ctx = result;
state             357 source4/winbind/wb_async_helpers.c 	state->samr_pipe = samr_pipe;
state             359 source4/winbind/wb_async_helpers.c 	state->user_handle = talloc(state, struct policy_handle);
state             360 source4/winbind/wb_async_helpers.c 	if (state->user_handle == NULL) goto failed;
state             362 source4/winbind/wb_async_helpers.c 	state->o.in.domain_handle = domain_handle;
state             363 source4/winbind/wb_async_helpers.c 	state->o.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             364 source4/winbind/wb_async_helpers.c 	state->o.in.rid = rid;
state             365 source4/winbind/wb_async_helpers.c 	state->o.out.user_handle = state->user_handle;
state             367 source4/winbind/wb_async_helpers.c 	req = dcerpc_samr_OpenUser_send(state->samr_pipe, state, &state->o);
state             371 source4/winbind/wb_async_helpers.c 	req->async.private_data = state;
state             381 source4/winbind/wb_async_helpers.c 	struct samr_getuserdomgroups_state *state =
state             385 source4/winbind/wb_async_helpers.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             386 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             387 source4/winbind/wb_async_helpers.c 	state->ctx->status = state->o.out.result;
state             388 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             390 source4/winbind/wb_async_helpers.c 	state->g.in.user_handle = state->user_handle;
state             391 source4/winbind/wb_async_helpers.c 	state->g.out.rids = &state->rid_array;
state             393 source4/winbind/wb_async_helpers.c 	req = dcerpc_samr_GetGroupsForUser_send(state->samr_pipe, state,
state             394 source4/winbind/wb_async_helpers.c 						&state->g);
state             395 source4/winbind/wb_async_helpers.c 	composite_continue_rpc(state->ctx, req, samr_usergroups_recv_groups,
state             396 source4/winbind/wb_async_helpers.c 			       state);
state             401 source4/winbind/wb_async_helpers.c 	struct samr_getuserdomgroups_state *state =
state             405 source4/winbind/wb_async_helpers.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             406 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             407 source4/winbind/wb_async_helpers.c 	state->ctx->status = state->g.out.result;
state             408 source4/winbind/wb_async_helpers.c 	if (!composite_is_ok(state->ctx)) return;
state             410 source4/winbind/wb_async_helpers.c 	state->c.in.handle = state->user_handle;
state             411 source4/winbind/wb_async_helpers.c 	state->c.out.handle = state->user_handle;
state             413 source4/winbind/wb_async_helpers.c 	req = dcerpc_samr_Close_send(state->samr_pipe, state, &state->c);
state             414 source4/winbind/wb_async_helpers.c 	composite_continue_rpc(state->ctx, req, samr_usergroups_recv_close,
state             415 source4/winbind/wb_async_helpers.c 			       state);
state             420 source4/winbind/wb_async_helpers.c         struct samr_getuserdomgroups_state *state =
state             424 source4/winbind/wb_async_helpers.c         state->ctx->status = dcerpc_ndr_request_recv(req);
state             425 source4/winbind/wb_async_helpers.c         if (!composite_is_ok(state->ctx)) return;
state             426 source4/winbind/wb_async_helpers.c         state->ctx->status = state->c.out.result;
state             427 source4/winbind/wb_async_helpers.c         if (!composite_is_ok(state->ctx)) return;
state             429 source4/winbind/wb_async_helpers.c 	composite_done(state->ctx);
state             436 source4/winbind/wb_async_helpers.c         struct samr_getuserdomgroups_state *state =
state             444 source4/winbind/wb_async_helpers.c 	*num_rids = state->rid_array->count;
state             452 source4/winbind/wb_async_helpers.c 		(*rids)[i] = state->rid_array->rids[i].rid;
state              44 source4/winbind/wb_cmd_getdcname.c 	struct cmd_getdcname_state *state;
state              49 source4/winbind/wb_cmd_getdcname.c 	state = talloc(result, struct cmd_getdcname_state);
state              50 source4/winbind/wb_cmd_getdcname.c 	if (state == NULL) goto failed;
state              51 source4/winbind/wb_cmd_getdcname.c 	state->ctx = result;
state              52 source4/winbind/wb_cmd_getdcname.c 	result->private_data = state;
state              54 source4/winbind/wb_cmd_getdcname.c 	state->domain_name = talloc_strdup(state, domain_name);
state              55 source4/winbind/wb_cmd_getdcname.c 	if (state->domain_name == NULL) goto failed;
state              57 source4/winbind/wb_cmd_getdcname.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              61 source4/winbind/wb_cmd_getdcname.c 	ctx->async.private_data = state;
state              71 source4/winbind/wb_cmd_getdcname.c 	struct cmd_getdcname_state *state =
state              77 source4/winbind/wb_cmd_getdcname.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              78 source4/winbind/wb_cmd_getdcname.c 	if (!composite_is_ok(state->ctx)) return;
state              80 source4/winbind/wb_cmd_getdcname.c 	state->g.in.logon_server = talloc_asprintf(
state              81 source4/winbind/wb_cmd_getdcname.c 		state, "\\\\%s",
state              83 source4/winbind/wb_cmd_getdcname.c 	state->g.in.domainname = state->domain_name;
state              84 source4/winbind/wb_cmd_getdcname.c 	state->g.out.dcname = talloc(state, const char *);
state              86 source4/winbind/wb_cmd_getdcname.c 	req = dcerpc_netr_GetAnyDCName_send(domain->netlogon_pipe, state,
state              87 source4/winbind/wb_cmd_getdcname.c 					    &state->g);
state              88 source4/winbind/wb_cmd_getdcname.c 	if (composite_nomem(req, state->ctx)) return;
state              90 source4/winbind/wb_cmd_getdcname.c 	composite_continue_rpc(state->ctx, req, getdcname_recv_dcname, state);
state              95 source4/winbind/wb_cmd_getdcname.c 	struct cmd_getdcname_state *state =
state              99 source4/winbind/wb_cmd_getdcname.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             100 source4/winbind/wb_cmd_getdcname.c 	if (!composite_is_ok(state->ctx)) return;
state             101 source4/winbind/wb_cmd_getdcname.c 	state->ctx->status = werror_to_ntstatus(state->g.out.result);
state             102 source4/winbind/wb_cmd_getdcname.c 	if (!composite_is_ok(state->ctx)) return;
state             104 source4/winbind/wb_cmd_getdcname.c 	composite_done(state->ctx);
state             111 source4/winbind/wb_cmd_getdcname.c 	struct cmd_getdcname_state *state =
state             115 source4/winbind/wb_cmd_getdcname.c 		const char *p = *(state->g.out.dcname);
state             123 source4/winbind/wb_cmd_getdcname.c 	talloc_free(state);
state              55 source4/winbind/wb_cmd_getgrgid.c 	struct cmd_getgrgid_state *state;
state              62 source4/winbind/wb_cmd_getgrgid.c 	state = talloc(result, struct cmd_getgrgid_state);
state              63 source4/winbind/wb_cmd_getgrgid.c 	if (composite_nomem(state, result)) return result;
state              64 source4/winbind/wb_cmd_getgrgid.c 	state->ctx = result;
state              65 source4/winbind/wb_cmd_getgrgid.c 	result->private_data = state;
state              66 source4/winbind/wb_cmd_getgrgid.c 	state->service = service;
state              67 source4/winbind/wb_cmd_getgrgid.c 	state->gid = gid;
state              69 source4/winbind/wb_cmd_getgrgid.c 	ctx = wb_gid2sid_send(state, service, gid);
state              70 source4/winbind/wb_cmd_getgrgid.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              72 source4/winbind/wb_cmd_getgrgid.c 	composite_continue(result, ctx, cmd_getgrgid_recv_sid, state);
state              81 source4/winbind/wb_cmd_getgrgid.c 	struct cmd_getgrgid_state *state =
state              87 source4/winbind/wb_cmd_getgrgid.c 	state->ctx->status = wb_gid2sid_recv(ctx, state, &state->sid);
state              88 source4/winbind/wb_cmd_getgrgid.c 	if (!composite_is_ok(state->ctx)) return;
state              90 source4/winbind/wb_cmd_getgrgid.c 	ctx = wb_sid2domain_send(state, state->service, state->sid);
state              92 source4/winbind/wb_cmd_getgrgid.c 	composite_continue(state->ctx, ctx, cmd_getgrgid_recv_domain, state);
state              99 source4/winbind/wb_cmd_getgrgid.c 	struct cmd_getgrgid_state *state =
state             106 source4/winbind/wb_cmd_getgrgid.c 	state->ctx->status = wb_sid2domain_recv(ctx, &state->domain);
state             107 source4/winbind/wb_cmd_getgrgid.c 	if (!composite_is_ok(state->ctx)) return;
state             109 source4/winbind/wb_cmd_getgrgid.c 	group_info = talloc(state, struct libnet_GroupInfo);
state             110 source4/winbind/wb_cmd_getgrgid.c 	if (composite_nomem(group_info, state->ctx)) return;
state             113 source4/winbind/wb_cmd_getgrgid.c 	group_info->in.data.group_sid = state->sid;
state             114 source4/winbind/wb_cmd_getgrgid.c 	group_info->in.domain_name = state->domain->libnet_ctx->samr.name;
state             117 source4/winbind/wb_cmd_getgrgid.c 	state->workgroup = talloc_strdup(state,
state             118 source4/winbind/wb_cmd_getgrgid.c 			state->domain->libnet_ctx->samr.name);
state             119 source4/winbind/wb_cmd_getgrgid.c 	if (composite_nomem(state->workgroup, state->ctx)) return;
state             121 source4/winbind/wb_cmd_getgrgid.c 	ctx = libnet_GroupInfo_send(state->domain->libnet_ctx, state,group_info,
state             124 source4/winbind/wb_cmd_getgrgid.c 	composite_continue(state->ctx, ctx, cmd_getgrgid_recv_group_info,state);
state             131 source4/winbind/wb_cmd_getgrgid.c 	struct cmd_getgrgid_state *state =
state             139 source4/winbind/wb_cmd_getgrgid.c 	gr = talloc(state, struct winbindd_gr);
state             140 source4/winbind/wb_cmd_getgrgid.c 	if (composite_nomem(gr, state->ctx)) return;
state             142 source4/winbind/wb_cmd_getgrgid.c 	group_info = talloc(state, struct libnet_GroupInfo);
state             143 source4/winbind/wb_cmd_getgrgid.c 	if(composite_nomem(group_info, state->ctx)) return;
state             145 source4/winbind/wb_cmd_getgrgid.c 	state->ctx->status = libnet_GroupInfo_recv(ctx, state, group_info);
state             146 source4/winbind/wb_cmd_getgrgid.c 	if (!composite_is_ok(state->ctx)) return;
state             151 source4/winbind/wb_cmd_getgrgid.c 	gr->gr_gid = state->gid;
state             153 source4/winbind/wb_cmd_getgrgid.c 	state->result = gr;
state             155 source4/winbind/wb_cmd_getgrgid.c 	composite_done(state->ctx);
state             168 source4/winbind/wb_cmd_getgrgid.c 		struct cmd_getgrgid_state *state =
state             171 source4/winbind/wb_cmd_getgrgid.c 		*gr = talloc_steal(mem_ctx, state->result);
state              51 source4/winbind/wb_cmd_getgrnam.c 	struct cmd_getgrnam_state *state;
state              58 source4/winbind/wb_cmd_getgrnam.c 	state = talloc(result, struct cmd_getgrnam_state);
state              59 source4/winbind/wb_cmd_getgrnam.c 	if (composite_nomem(state, result)) return result;
state              60 source4/winbind/wb_cmd_getgrnam.c 	state->ctx = result;
state              61 source4/winbind/wb_cmd_getgrnam.c 	result->private_data = state;
state              62 source4/winbind/wb_cmd_getgrnam.c 	state->service = service;
state              63 source4/winbind/wb_cmd_getgrnam.c 	state->name = talloc_strdup(state, name);
state              64 source4/winbind/wb_cmd_getgrnam.c 	if(composite_nomem(state->name, result)) return result;
state              66 source4/winbind/wb_cmd_getgrnam.c 	ctx = wb_name2domain_send(state, service, name);
state              69 source4/winbind/wb_cmd_getgrnam.c 	composite_continue(result, ctx, cmd_getgrnam_recv_domain, state);
state              75 source4/winbind/wb_cmd_getgrnam.c 	struct cmd_getgrnam_state *state = talloc_get_type(
state              82 source4/winbind/wb_cmd_getgrnam.c 	state->ctx->status = wb_name2domain_recv(ctx, &domain);
state              83 source4/winbind/wb_cmd_getgrnam.c 	if(!composite_is_ok(state->ctx)) return;
state              85 source4/winbind/wb_cmd_getgrnam.c 	group_info = talloc(state, struct libnet_GroupInfo);
state              86 source4/winbind/wb_cmd_getgrnam.c 	if (composite_nomem(group_info, state->ctx)) return;
state              88 source4/winbind/wb_cmd_getgrnam.c 	ok = wb_samba3_split_username(state, state->service->task->lp_ctx,
state              89 source4/winbind/wb_cmd_getgrnam.c 				      state->name, &group_dom, &group_name);
state              91 source4/winbind/wb_cmd_getgrnam.c 		composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID);
state              98 source4/winbind/wb_cmd_getgrnam.c 	state->workgroup_name = talloc_strdup(state, group_dom);
state              99 source4/winbind/wb_cmd_getgrnam.c 	if(composite_nomem(state->workgroup_name, state->ctx)) return;
state             101 source4/winbind/wb_cmd_getgrnam.c 	ctx = libnet_GroupInfo_send(domain->libnet_ctx, state, group_info,NULL);
state             103 source4/winbind/wb_cmd_getgrnam.c 	composite_continue(state->ctx, ctx, cmd_getgrnam_recv_group_info,state);
state             108 source4/winbind/wb_cmd_getgrnam.c 	struct cmd_getgrnam_state *state = talloc_get_type(
state             115 source4/winbind/wb_cmd_getgrnam.c 	group_info = talloc(state, struct libnet_GroupInfo);
state             116 source4/winbind/wb_cmd_getgrnam.c 	if(composite_nomem(group_info, state->ctx)) return;
state             118 source4/winbind/wb_cmd_getgrnam.c 	gr = talloc(state, struct winbindd_gr);
state             119 source4/winbind/wb_cmd_getgrnam.c 	if(composite_nomem(gr, state->ctx)) return;
state             121 source4/winbind/wb_cmd_getgrnam.c 	state->ctx->status = libnet_GroupInfo_recv(ctx, state, group_info);
state             122 source4/winbind/wb_cmd_getgrnam.c 	if(!composite_is_ok(state->ctx)) return;
state             129 source4/winbind/wb_cmd_getgrnam.c 	state->result = gr;
state             131 source4/winbind/wb_cmd_getgrnam.c 	ctx = wb_sid2gid_send(state, state->service, group_info->out.group_sid);
state             132 source4/winbind/wb_cmd_getgrnam.c 	composite_continue(state->ctx, ctx, cmd_getgrnam_recv_gid, state);
state             137 source4/winbind/wb_cmd_getgrnam.c 	struct cmd_getgrnam_state *state = talloc_get_type(
state             143 source4/winbind/wb_cmd_getgrnam.c 	state->ctx->status = wb_sid2gid_recv(ctx, &gid);
state             144 source4/winbind/wb_cmd_getgrnam.c 	if(!composite_is_ok(state->ctx)) return;
state             146 source4/winbind/wb_cmd_getgrnam.c 	state->result->gr_gid = gid;
state             148 source4/winbind/wb_cmd_getgrnam.c 	composite_done(state->ctx);
state             159 source4/winbind/wb_cmd_getgrnam.c 		struct cmd_getgrnam_state *state =
state             162 source4/winbind/wb_cmd_getgrnam.c 		*gr = talloc_steal(mem_ctx, state->result);
state              51 source4/winbind/wb_cmd_getpwent.c 	struct cmd_getpwent_state *state;
state              58 source4/winbind/wb_cmd_getpwent.c 	state = talloc(mem_ctx, struct cmd_getpwent_state);
state              59 source4/winbind/wb_cmd_getpwent.c 	if (composite_nomem(state, result)) return result;
state              61 source4/winbind/wb_cmd_getpwent.c 	state->ctx = result;
state              62 source4/winbind/wb_cmd_getpwent.c 	result->private_data = state;
state              63 source4/winbind/wb_cmd_getpwent.c 	state->service = service;
state              64 source4/winbind/wb_cmd_getpwent.c 	state->pwent = pwent;
state              65 source4/winbind/wb_cmd_getpwent.c 	state->max_users = max_users;
state              66 source4/winbind/wb_cmd_getpwent.c 	state->num_users = 0;
state              73 source4/winbind/wb_cmd_getpwent.c 		char *username = talloc_strdup(state,
state              77 source4/winbind/wb_cmd_getpwent.c 		ctx = wb_cmd_getpwnam_send(state, service, username);
state              78 source4/winbind/wb_cmd_getpwent.c 		if (composite_nomem(ctx, state->ctx)) return result;
state              80 source4/winbind/wb_cmd_getpwent.c 		composite_continue(state->ctx, ctx, cmd_getpwent_recv_pwnam,
state              81 source4/winbind/wb_cmd_getpwent.c 			state);
state              85 source4/winbind/wb_cmd_getpwent.c 		composite_error(state->ctx, NT_STATUS_NO_MORE_ENTRIES);
state              92 source4/winbind/wb_cmd_getpwent.c 	struct cmd_getpwent_state *state =
state              99 source4/winbind/wb_cmd_getpwent.c 	state->ctx->status = wb_cmd_getpwnam_recv(ctx, state, &pw);
state             100 source4/winbind/wb_cmd_getpwent.c 	if (!composite_is_ok(state->ctx)) return;
state             103 source4/winbind/wb_cmd_getpwent.c 	state->result = pw;
state             105 source4/winbind/wb_cmd_getpwent.c 	composite_done(state->ctx);
state             117 source4/winbind/wb_cmd_getpwent.c 		struct cmd_getpwent_state *state =
state             120 source4/winbind/wb_cmd_getpwent.c 		*pw = talloc_steal(mem_ctx, state->result);
state              52 source4/winbind/wb_cmd_getpwnam.c 	struct cmd_getpwnam_state *state;
state              59 source4/winbind/wb_cmd_getpwnam.c 	state = talloc(result, struct cmd_getpwnam_state);
state              60 source4/winbind/wb_cmd_getpwnam.c 	if (composite_nomem(state, result)) return result;
state              61 source4/winbind/wb_cmd_getpwnam.c 	state->ctx = result;
state              62 source4/winbind/wb_cmd_getpwnam.c 	result->private_data = state;
state              63 source4/winbind/wb_cmd_getpwnam.c 	state->service = service;
state              64 source4/winbind/wb_cmd_getpwnam.c 	state->name = talloc_strdup(state, name);
state              65 source4/winbind/wb_cmd_getpwnam.c 	if(composite_nomem(state->name, result)) return result;
state              67 source4/winbind/wb_cmd_getpwnam.c 	ctx = wb_name2domain_send(state, service, name);
state              70 source4/winbind/wb_cmd_getpwnam.c 	composite_continue(result, ctx, cmd_getpwnam_recv_domain, state);
state              76 source4/winbind/wb_cmd_getpwnam.c 	struct cmd_getpwnam_state *state = talloc_get_type(
state              83 source4/winbind/wb_cmd_getpwnam.c 	state->ctx->status = wb_name2domain_recv(ctx, &domain);
state              84 source4/winbind/wb_cmd_getpwnam.c 	if(!composite_is_ok(state->ctx)) return;
state              86 source4/winbind/wb_cmd_getpwnam.c 	user_info = talloc(state, struct libnet_UserInfo);
state              87 source4/winbind/wb_cmd_getpwnam.c 	if (composite_nomem(user_info, state->ctx)) return;
state              89 source4/winbind/wb_cmd_getpwnam.c 	ok= wb_samba3_split_username(state, state->service->task->lp_ctx, state->name, &user_dom, &user_name);
state              91 source4/winbind/wb_cmd_getpwnam.c 		composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID);
state              98 source4/winbind/wb_cmd_getpwnam.c 	state->workgroup_name = talloc_strdup(state,
state             100 source4/winbind/wb_cmd_getpwnam.c 	if(composite_nomem(state->workgroup_name, state->ctx)) return;
state             102 source4/winbind/wb_cmd_getpwnam.c 	ctx = libnet_UserInfo_send(domain->libnet_ctx, state, user_info, NULL);
state             104 source4/winbind/wb_cmd_getpwnam.c 	composite_continue(state->ctx, ctx, cmd_getpwnam_recv_user_info, state);
state             109 source4/winbind/wb_cmd_getpwnam.c 	struct cmd_getpwnam_state *state = talloc_get_type(
state             116 source4/winbind/wb_cmd_getpwnam.c 	user_info = talloc(state, struct libnet_UserInfo);
state             117 source4/winbind/wb_cmd_getpwnam.c 	if(composite_nomem(user_info, state->ctx)) return;
state             119 source4/winbind/wb_cmd_getpwnam.c 	pw = talloc(state, struct winbindd_pw);
state             120 source4/winbind/wb_cmd_getpwnam.c 	if(composite_nomem(pw, state->ctx)) return;
state             122 source4/winbind/wb_cmd_getpwnam.c 	state->ctx->status = libnet_UserInfo_recv(ctx, state, user_info);
state             123 source4/winbind/wb_cmd_getpwnam.c 	if(!composite_is_ok(state->ctx)) return;
state             129 source4/winbind/wb_cmd_getpwnam.c 		lp_template_homedir(state->service->task->lp_ctx));
state             130 source4/winbind/wb_cmd_getpwnam.c 	all_string_sub(pw->pw_dir, "%WORKGROUP%", state->workgroup_name,
state             135 source4/winbind/wb_cmd_getpwnam.c 		lp_template_shell(state->service->task->lp_ctx));
state             137 source4/winbind/wb_cmd_getpwnam.c 	state->group_sid = dom_sid_dup(state, user_info->out.primary_group_sid);
state             138 source4/winbind/wb_cmd_getpwnam.c 	if(composite_nomem(state->group_sid, state->ctx)) return;
state             140 source4/winbind/wb_cmd_getpwnam.c 	state->result = pw;
state             142 source4/winbind/wb_cmd_getpwnam.c 	ctx = wb_sid2uid_send(state, state->service, user_info->out.user_sid);
state             143 source4/winbind/wb_cmd_getpwnam.c 	composite_continue(state->ctx, ctx, cmd_getpwnam_recv_uid, state);
state             148 source4/winbind/wb_cmd_getpwnam.c 	struct cmd_getpwnam_state *state = talloc_get_type(
state             154 source4/winbind/wb_cmd_getpwnam.c 	state->ctx->status = wb_sid2uid_recv(ctx, &uid);
state             155 source4/winbind/wb_cmd_getpwnam.c 	if(!composite_is_ok(state->ctx)) return;
state             157 source4/winbind/wb_cmd_getpwnam.c 	state->result->pw_uid = uid;
state             159 source4/winbind/wb_cmd_getpwnam.c 	ctx = wb_sid2gid_send(state, state->service, state->group_sid);
state             160 source4/winbind/wb_cmd_getpwnam.c 	composite_continue(state->ctx, ctx, cmd_getpwnam_recv_gid, state);
state             165 source4/winbind/wb_cmd_getpwnam.c 	struct cmd_getpwnam_state *state = talloc_get_type(
state             171 source4/winbind/wb_cmd_getpwnam.c 	state->ctx->status = wb_sid2gid_recv(ctx, &gid);
state             172 source4/winbind/wb_cmd_getpwnam.c 	if(!composite_is_ok(state->ctx)) return;
state             174 source4/winbind/wb_cmd_getpwnam.c 	state->result->pw_gid = gid;
state             176 source4/winbind/wb_cmd_getpwnam.c 	composite_done(state->ctx);
state             187 source4/winbind/wb_cmd_getpwnam.c 		struct cmd_getpwnam_state *state =
state             190 source4/winbind/wb_cmd_getpwnam.c 		*pw = talloc_steal(mem_ctx, state->result);
state              56 source4/winbind/wb_cmd_getpwuid.c 	struct cmd_getpwuid_state *state;
state              63 source4/winbind/wb_cmd_getpwuid.c 	state = talloc(result, struct cmd_getpwuid_state);
state              64 source4/winbind/wb_cmd_getpwuid.c 	if (composite_nomem(state, result)) return result;
state              65 source4/winbind/wb_cmd_getpwuid.c 	state->ctx = result;
state              66 source4/winbind/wb_cmd_getpwuid.c 	result->private_data = state;
state              67 source4/winbind/wb_cmd_getpwuid.c 	state->service = service;
state              68 source4/winbind/wb_cmd_getpwuid.c 	state->uid = uid;
state              70 source4/winbind/wb_cmd_getpwuid.c 	ctx = wb_uid2sid_send(state, service, uid);
state              71 source4/winbind/wb_cmd_getpwuid.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              73 source4/winbind/wb_cmd_getpwuid.c 	composite_continue(result, ctx, cmd_getpwuid_recv_sid, state);
state              82 source4/winbind/wb_cmd_getpwuid.c 	struct cmd_getpwuid_state *state =
state              88 source4/winbind/wb_cmd_getpwuid.c 	state->ctx->status = wb_uid2sid_recv(ctx, state, &state->sid);
state              89 source4/winbind/wb_cmd_getpwuid.c 	if (!composite_is_ok(state->ctx)) return;
state              91 source4/winbind/wb_cmd_getpwuid.c 	ctx = wb_sid2domain_send(state, state->service, state->sid);
state              93 source4/winbind/wb_cmd_getpwuid.c 	composite_continue(state->ctx, ctx, cmd_getpwuid_recv_domain, state);
state             100 source4/winbind/wb_cmd_getpwuid.c 	struct cmd_getpwuid_state *state =
state             107 source4/winbind/wb_cmd_getpwuid.c 	state->ctx->status = wb_sid2domain_recv(ctx, &state->domain);
state             108 source4/winbind/wb_cmd_getpwuid.c 	if (!composite_is_ok(state->ctx)) return;
state             110 source4/winbind/wb_cmd_getpwuid.c 	user_info = talloc(state, struct libnet_UserInfo);
state             111 source4/winbind/wb_cmd_getpwuid.c 	if (composite_nomem(user_info, state->ctx)) return;
state             114 source4/winbind/wb_cmd_getpwuid.c 	user_info->in.data.user_sid = state->sid;
state             115 source4/winbind/wb_cmd_getpwuid.c 	user_info->in.domain_name = state->domain->libnet_ctx->samr.name;
state             118 source4/winbind/wb_cmd_getpwuid.c 	state->workgroup = talloc_strdup(state,
state             119 source4/winbind/wb_cmd_getpwuid.c 			state->domain->libnet_ctx->samr.name);
state             120 source4/winbind/wb_cmd_getpwuid.c 	if (composite_nomem(state->workgroup, state->ctx)) return;
state             122 source4/winbind/wb_cmd_getpwuid.c 	ctx = libnet_UserInfo_send(state->domain->libnet_ctx, state, user_info,
state             125 source4/winbind/wb_cmd_getpwuid.c 	composite_continue(state->ctx, ctx, cmd_getpwuid_recv_user_info, state);
state             132 source4/winbind/wb_cmd_getpwuid.c 	struct cmd_getpwuid_state *state =
state             140 source4/winbind/wb_cmd_getpwuid.c 	pw = talloc(state, struct winbindd_pw);
state             141 source4/winbind/wb_cmd_getpwuid.c 	if (composite_nomem(pw, state->ctx)) return;
state             143 source4/winbind/wb_cmd_getpwuid.c 	user_info = talloc(state, struct libnet_UserInfo);
state             144 source4/winbind/wb_cmd_getpwuid.c 	if(composite_nomem(user_info, state->ctx)) return;
state             146 source4/winbind/wb_cmd_getpwuid.c 	state->ctx->status = libnet_UserInfo_recv(ctx, state, user_info);
state             147 source4/winbind/wb_cmd_getpwuid.c 	if (!composite_is_ok(state->ctx)) return;
state             153 source4/winbind/wb_cmd_getpwuid.c 		lp_template_homedir(state->service->task->lp_ctx));
state             154 source4/winbind/wb_cmd_getpwuid.c 	all_string_sub(pw->pw_dir, "%WORKGROUP%", state->workgroup,
state             159 source4/winbind/wb_cmd_getpwuid.c 				lp_template_shell(state->service->task->lp_ctx));
state             161 source4/winbind/wb_cmd_getpwuid.c 	pw->pw_uid = state->uid;
state             163 source4/winbind/wb_cmd_getpwuid.c 	state->result = pw;
state             165 source4/winbind/wb_cmd_getpwuid.c 	ctx = wb_sid2gid_send(state, state->service,
state             168 source4/winbind/wb_cmd_getpwuid.c 	composite_continue(state->ctx, ctx, cmd_getpwuid_recv_gid, state);
state             173 source4/winbind/wb_cmd_getpwuid.c 	struct cmd_getpwuid_state *state =
state             180 source4/winbind/wb_cmd_getpwuid.c 	state->ctx->status = wb_sid2gid_recv(ctx, &gid);
state             181 source4/winbind/wb_cmd_getpwuid.c 	if (!composite_is_ok(state->ctx)) return;
state             183 source4/winbind/wb_cmd_getpwuid.c 	state->result->pw_gid = gid;
state             185 source4/winbind/wb_cmd_getpwuid.c 	composite_done(state->ctx);
state             196 source4/winbind/wb_cmd_getpwuid.c 		struct cmd_getpwuid_state *state =
state             199 source4/winbind/wb_cmd_getpwuid.c 		*pw = talloc_steal(mem_ctx, state->result);
state              47 source4/winbind/wb_cmd_list_groups.c 	struct cmd_list_groups_state *state;
state              54 source4/winbind/wb_cmd_list_groups.c 	state = talloc(result, struct cmd_list_groups_state);
state              55 source4/winbind/wb_cmd_list_groups.c 	if (composite_nomem(state, result)) return result;
state              57 source4/winbind/wb_cmd_list_groups.c 	state->ctx = result;
state              58 source4/winbind/wb_cmd_list_groups.c 	result->private_data = state;
state              59 source4/winbind/wb_cmd_list_groups.c 	state->service = service;
state              60 source4/winbind/wb_cmd_list_groups.c 	state->resume_index = 0;
state              61 source4/winbind/wb_cmd_list_groups.c 	state->result = talloc_strdup(state, "");
state              62 source4/winbind/wb_cmd_list_groups.c 	if (composite_nomem(state->result, state->ctx)) return result;
state              69 source4/winbind/wb_cmd_list_groups.c 		state->domain_name = talloc_strdup(state, domain_name);
state              70 source4/winbind/wb_cmd_list_groups.c 		if (composite_nomem(state->domain_name, state->ctx))
state              73 source4/winbind/wb_cmd_list_groups.c 		state->domain_name = NULL;
state              76 source4/winbind/wb_cmd_list_groups.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              77 source4/winbind/wb_cmd_list_groups.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              79 source4/winbind/wb_cmd_list_groups.c 	composite_continue(state->ctx, ctx, cmd_list_groups_recv_domain, state);
state              85 source4/winbind/wb_cmd_list_groups.c 	struct cmd_list_groups_state *state = talloc_get_type(
state              92 source4/winbind/wb_cmd_list_groups.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              93 source4/winbind/wb_cmd_list_groups.c 	if (!composite_is_ok(state->ctx)) return;
state              95 source4/winbind/wb_cmd_list_groups.c 	state->domain = domain;
state              99 source4/winbind/wb_cmd_list_groups.c 	if (state->domain_name == NULL) {
state             100 source4/winbind/wb_cmd_list_groups.c 		state->domain_name = talloc_strdup(state,
state             102 source4/winbind/wb_cmd_list_groups.c 		if (composite_nomem(state->domain_name, state->ctx)) return;
state             105 source4/winbind/wb_cmd_list_groups.c 	group_list = talloc(state, struct libnet_GroupList);
state             106 source4/winbind/wb_cmd_list_groups.c 	if (composite_nomem(group_list, state->ctx)) return;
state             108 source4/winbind/wb_cmd_list_groups.c 	group_list->in.domain_name = state->domain_name;
state             114 source4/winbind/wb_cmd_list_groups.c 	group_list->in.resume_index = state->resume_index;
state             116 source4/winbind/wb_cmd_list_groups.c 	ctx = libnet_GroupList_send(domain->libnet_ctx, state, group_list,NULL);
state             118 source4/winbind/wb_cmd_list_groups.c 	composite_continue(state->ctx, ctx, cmd_list_groups_recv_group_list,
state             119 source4/winbind/wb_cmd_list_groups.c 			state);
state             124 source4/winbind/wb_cmd_list_groups.c 	struct cmd_list_groups_state *state = talloc_get_type(
state             132 source4/winbind/wb_cmd_list_groups.c 	group_list = talloc(state, struct libnet_GroupList);
state             133 source4/winbind/wb_cmd_list_groups.c 	if (composite_nomem(group_list, state->ctx)) return;
state             135 source4/winbind/wb_cmd_list_groups.c 	status = libnet_GroupList_recv(ctx, state, group_list);
state             140 source4/winbind/wb_cmd_list_groups.c 		composite_error(state->ctx, status);
state             147 source4/winbind/wb_cmd_list_groups.c 		state->result = talloc_asprintf_append_buffer(state->result,
state             155 source4/winbind/wb_cmd_list_groups.c 		int str_len = strlen(state->result);
state             157 source4/winbind/wb_cmd_list_groups.c 		state->result[str_len - 1] = '\0';
state             158 source4/winbind/wb_cmd_list_groups.c 		composite_done(state->ctx);
state             167 source4/winbind/wb_cmd_list_groups.c 	group_list->in.domain_name = state->domain_name;
state             173 source4/winbind/wb_cmd_list_groups.c 	ctx = libnet_GroupList_send(state->domain->libnet_ctx, state,group_list,
state             176 source4/winbind/wb_cmd_list_groups.c 	composite_continue(state->ctx, ctx, cmd_list_groups_recv_group_list,
state             177 source4/winbind/wb_cmd_list_groups.c 			state);
state             189 source4/winbind/wb_cmd_list_groups.c 		struct cmd_list_groups_state *state = talloc_get_type(
state             192 source4/winbind/wb_cmd_list_groups.c 		*extra_data_len = strlen(state->result);
state             193 source4/winbind/wb_cmd_list_groups.c 		*extra_data = talloc_steal(mem_ctx, state->result);
state              52 source4/winbind/wb_cmd_list_trustdom.c 	struct cmd_list_trustdom_state *state;
state              57 source4/winbind/wb_cmd_list_trustdom.c 	state = talloc(result, struct cmd_list_trustdom_state);
state              58 source4/winbind/wb_cmd_list_trustdom.c 	if (state == NULL) goto failed;
state              59 source4/winbind/wb_cmd_list_trustdom.c 	state->ctx = result;
state              60 source4/winbind/wb_cmd_list_trustdom.c 	result->private_data = state;
state              62 source4/winbind/wb_cmd_list_trustdom.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              65 source4/winbind/wb_cmd_list_trustdom.c 	ctx->async.private_data = state;
state              75 source4/winbind/wb_cmd_list_trustdom.c 	struct cmd_list_trustdom_state *state =
state              81 source4/winbind/wb_cmd_list_trustdom.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              82 source4/winbind/wb_cmd_list_trustdom.c 	if (!composite_is_ok(state->ctx)) return;
state              85 source4/winbind/wb_cmd_list_trustdom.c 	if (composite_nomem(tree, state->ctx)) return;
state              87 source4/winbind/wb_cmd_list_trustdom.c 	ctx = wb_init_lsa_send(state, domain);
state              88 source4/winbind/wb_cmd_list_trustdom.c 	composite_continue(state->ctx, ctx, cmd_list_trustdoms_recv_lsa,
state              89 source4/winbind/wb_cmd_list_trustdom.c 			   state);
state              94 source4/winbind/wb_cmd_list_trustdom.c 	struct cmd_list_trustdom_state *state =
state              99 source4/winbind/wb_cmd_list_trustdom.c 	state->ctx->status = wb_init_lsa_recv(ctx, state,
state             100 source4/winbind/wb_cmd_list_trustdom.c 					      &state->lsa_pipe,
state             101 source4/winbind/wb_cmd_list_trustdom.c 					      &state->lsa_policy);
state             102 source4/winbind/wb_cmd_list_trustdom.c 	if (!composite_is_ok(state->ctx)) return;
state             104 source4/winbind/wb_cmd_list_trustdom.c 	state->num_domains = 0;
state             105 source4/winbind/wb_cmd_list_trustdom.c 	state->domains = NULL;
state             107 source4/winbind/wb_cmd_list_trustdom.c 	state->domainlist.count = 0;
state             108 source4/winbind/wb_cmd_list_trustdom.c 	state->domainlist.domains = NULL;
state             110 source4/winbind/wb_cmd_list_trustdom.c 	state->resume_handle = 0;
state             111 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.handle = state->lsa_policy;
state             112 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.resume_handle = &state->resume_handle;
state             113 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.max_size = 1000;
state             114 source4/winbind/wb_cmd_list_trustdom.c 	state->r.out.resume_handle = &state->resume_handle;
state             115 source4/winbind/wb_cmd_list_trustdom.c 	state->r.out.domains = &state->domainlist;
state             117 source4/winbind/wb_cmd_list_trustdom.c 	req = dcerpc_lsa_EnumTrustDom_send(state->lsa_pipe, state, &state->r);
state             118 source4/winbind/wb_cmd_list_trustdom.c 	composite_continue_rpc(state->ctx, req, cmd_list_trustdoms_recv_doms,
state             119 source4/winbind/wb_cmd_list_trustdom.c 			       state);
state             124 source4/winbind/wb_cmd_list_trustdom.c 	struct cmd_list_trustdom_state *state =
state             129 source4/winbind/wb_cmd_list_trustdom.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             130 source4/winbind/wb_cmd_list_trustdom.c 	if (!composite_is_ok(state->ctx)) return;
state             131 source4/winbind/wb_cmd_list_trustdom.c 	state->ctx->status = state->r.out.result;
state             133 source4/winbind/wb_cmd_list_trustdom.c 	if (!NT_STATUS_IS_OK(state->ctx->status) &&
state             134 source4/winbind/wb_cmd_list_trustdom.c 	    !NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_NO_MORE_ENTRIES) &&
state             135 source4/winbind/wb_cmd_list_trustdom.c 	    !NT_STATUS_EQUAL(state->ctx->status, STATUS_MORE_ENTRIES)) {
state             136 source4/winbind/wb_cmd_list_trustdom.c 		composite_error(state->ctx, state->ctx->status);
state             140 source4/winbind/wb_cmd_list_trustdom.c 	old_num_domains = state->num_domains;
state             142 source4/winbind/wb_cmd_list_trustdom.c 	state->num_domains += state->r.out.domains->count;
state             143 source4/winbind/wb_cmd_list_trustdom.c 	state->domains = talloc_realloc(state, state->domains,
state             145 source4/winbind/wb_cmd_list_trustdom.c 					state->num_domains);
state             146 source4/winbind/wb_cmd_list_trustdom.c 	if (state->num_domains && 
state             147 source4/winbind/wb_cmd_list_trustdom.c 	    composite_nomem(state->domains, state->ctx)) return;
state             149 source4/winbind/wb_cmd_list_trustdom.c 	for (i=0; i<state->r.out.domains->count; i++) {
state             151 source4/winbind/wb_cmd_list_trustdom.c 		state->domains[j] = talloc(state->domains,
state             153 source4/winbind/wb_cmd_list_trustdom.c 		if (composite_nomem(state->domains[i], state->ctx)) return;
state             154 source4/winbind/wb_cmd_list_trustdom.c 		state->domains[j]->name = talloc_steal(
state             155 source4/winbind/wb_cmd_list_trustdom.c 			state->domains[j],
state             156 source4/winbind/wb_cmd_list_trustdom.c 			state->r.out.domains->domains[i].name.string);
state             157 source4/winbind/wb_cmd_list_trustdom.c 		state->domains[j]->sid = talloc_steal(
state             158 source4/winbind/wb_cmd_list_trustdom.c 			state->domains[j],
state             159 source4/winbind/wb_cmd_list_trustdom.c 			state->r.out.domains->domains[i].sid);
state             162 source4/winbind/wb_cmd_list_trustdom.c 	if (NT_STATUS_IS_OK(state->ctx->status) || NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_NO_MORE_ENTRIES)) {
state             163 source4/winbind/wb_cmd_list_trustdom.c 		state->ctx->status = NT_STATUS_OK;
state             164 source4/winbind/wb_cmd_list_trustdom.c 		composite_done(state->ctx);
state             168 source4/winbind/wb_cmd_list_trustdom.c 	state->domainlist.count = 0;
state             169 source4/winbind/wb_cmd_list_trustdom.c 	state->domainlist.domains = NULL;
state             170 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.handle = state->lsa_policy;
state             171 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.resume_handle = &state->resume_handle;
state             172 source4/winbind/wb_cmd_list_trustdom.c 	state->r.in.max_size = 1000;
state             173 source4/winbind/wb_cmd_list_trustdom.c 	state->r.out.resume_handle = &state->resume_handle;
state             174 source4/winbind/wb_cmd_list_trustdom.c 	state->r.out.domains = &state->domainlist;
state             176 source4/winbind/wb_cmd_list_trustdom.c 	req = dcerpc_lsa_EnumTrustDom_send(state->lsa_pipe, state, &state->r);
state             177 source4/winbind/wb_cmd_list_trustdom.c 	composite_continue_rpc(state->ctx, req, cmd_list_trustdoms_recv_doms,
state             178 source4/winbind/wb_cmd_list_trustdom.c 			       state);
state             188 source4/winbind/wb_cmd_list_trustdom.c 		struct cmd_list_trustdom_state *state =
state             191 source4/winbind/wb_cmd_list_trustdom.c 		*num_domains = state->num_domains;
state             192 source4/winbind/wb_cmd_list_trustdom.c 		*domains = talloc_steal(mem_ctx, state->domains);
state              47 source4/winbind/wb_cmd_list_users.c 	struct cmd_list_users_state *state;
state              54 source4/winbind/wb_cmd_list_users.c 	state = talloc(result, struct cmd_list_users_state);
state              55 source4/winbind/wb_cmd_list_users.c 	if (composite_nomem(state, result)) return result;
state              57 source4/winbind/wb_cmd_list_users.c 	state->ctx = result;
state              58 source4/winbind/wb_cmd_list_users.c 	result->private_data = state;
state              59 source4/winbind/wb_cmd_list_users.c 	state->service = service;
state              60 source4/winbind/wb_cmd_list_users.c 	state->resume_index = 0;
state              61 source4/winbind/wb_cmd_list_users.c 	state->result = talloc_strdup(state, "");
state              62 source4/winbind/wb_cmd_list_users.c 	if (composite_nomem(state->result, state->ctx)) return result;
state              69 source4/winbind/wb_cmd_list_users.c 		state->domain_name = talloc_strdup(state, domain_name);
state              70 source4/winbind/wb_cmd_list_users.c 		if (composite_nomem(state->domain_name, state->ctx))
state              73 source4/winbind/wb_cmd_list_users.c 		state->domain_name = NULL;
state              76 source4/winbind/wb_cmd_list_users.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              77 source4/winbind/wb_cmd_list_users.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              79 source4/winbind/wb_cmd_list_users.c 	composite_continue(state->ctx, ctx, cmd_list_users_recv_domain, state);
state              85 source4/winbind/wb_cmd_list_users.c 	struct cmd_list_users_state *state = talloc_get_type(
state              92 source4/winbind/wb_cmd_list_users.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              93 source4/winbind/wb_cmd_list_users.c 	if (!composite_is_ok(state->ctx)) return;
state              95 source4/winbind/wb_cmd_list_users.c 	state->domain = domain;
state              99 source4/winbind/wb_cmd_list_users.c 	if (state->domain_name == NULL) {
state             100 source4/winbind/wb_cmd_list_users.c 		state->domain_name = talloc_strdup(state,
state             102 source4/winbind/wb_cmd_list_users.c 		if (composite_nomem(state->domain_name, state->ctx)) return;
state             105 source4/winbind/wb_cmd_list_users.c 	user_list = talloc(state, struct libnet_UserList);
state             106 source4/winbind/wb_cmd_list_users.c 	if (composite_nomem(user_list, state->ctx)) return;
state             108 source4/winbind/wb_cmd_list_users.c 	user_list->in.domain_name = state->domain_name;
state             114 source4/winbind/wb_cmd_list_users.c 	user_list->in.resume_index = state->resume_index;
state             116 source4/winbind/wb_cmd_list_users.c 	ctx = libnet_UserList_send(domain->libnet_ctx, state, user_list, NULL);
state             118 source4/winbind/wb_cmd_list_users.c 	composite_continue(state->ctx, ctx, cmd_list_users_recv_user_list,
state             119 source4/winbind/wb_cmd_list_users.c 			state);
state             124 source4/winbind/wb_cmd_list_users.c 	struct cmd_list_users_state *state = talloc_get_type(
state             132 source4/winbind/wb_cmd_list_users.c 	user_list = talloc(state, struct libnet_UserList);
state             133 source4/winbind/wb_cmd_list_users.c 	if (composite_nomem(user_list, state->ctx)) return;
state             135 source4/winbind/wb_cmd_list_users.c 	status = libnet_UserList_recv(ctx, state, user_list);
state             140 source4/winbind/wb_cmd_list_users.c 		composite_error(state->ctx, status);
state             146 source4/winbind/wb_cmd_list_users.c 		state->result = talloc_asprintf_append_buffer(state->result, "%s,",
state             153 source4/winbind/wb_cmd_list_users.c 		int str_len = strlen(state->result);
state             155 source4/winbind/wb_cmd_list_users.c 		state->result[str_len - 1] = '\0';
state             156 source4/winbind/wb_cmd_list_users.c 		composite_done(state->ctx);
state             165 source4/winbind/wb_cmd_list_users.c 	user_list->in.domain_name = state->domain_name;
state             171 source4/winbind/wb_cmd_list_users.c 	ctx = libnet_UserList_send(state->domain->libnet_ctx, state, user_list,
state             174 source4/winbind/wb_cmd_list_users.c 	composite_continue(state->ctx, ctx, cmd_list_users_recv_user_list,
state             175 source4/winbind/wb_cmd_list_users.c 			state);
state             187 source4/winbind/wb_cmd_list_users.c 		struct cmd_list_users_state *state = talloc_get_type(
state             190 source4/winbind/wb_cmd_list_users.c 		*extra_data_len = strlen(state->result);
state             191 source4/winbind/wb_cmd_list_users.c 		*extra_data = talloc_steal(mem_ctx, state->result);
state              44 source4/winbind/wb_cmd_lookupname.c 	struct cmd_lookupname_state *state;
state              49 source4/winbind/wb_cmd_lookupname.c 	state = talloc(result, struct cmd_lookupname_state);
state              50 source4/winbind/wb_cmd_lookupname.c 	if (state == NULL) goto failed;
state              51 source4/winbind/wb_cmd_lookupname.c 	state->ctx = result;
state              52 source4/winbind/wb_cmd_lookupname.c 	result->private_data = state;
state              54 source4/winbind/wb_cmd_lookupname.c 	state->name = talloc_asprintf(state, "%s\\%s", dom_name, name);
state              55 source4/winbind/wb_cmd_lookupname.c 	if (state->name == NULL) goto failed;
state              57 source4/winbind/wb_cmd_lookupname.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              61 source4/winbind/wb_cmd_lookupname.c 	ctx->async.private_data = state;
state              71 source4/winbind/wb_cmd_lookupname.c 	struct cmd_lookupname_state *state =
state              76 source4/winbind/wb_cmd_lookupname.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              77 source4/winbind/wb_cmd_lookupname.c 	if (!composite_is_ok(state->ctx)) return;
state              79 source4/winbind/wb_cmd_lookupname.c 	ctx = wb_lsa_lookupnames_send(state, domain->libnet_ctx->lsa.pipe,
state              80 source4/winbind/wb_cmd_lookupname.c 				      &domain->libnet_ctx->lsa.handle, 1, &state->name);
state              81 source4/winbind/wb_cmd_lookupname.c 	composite_continue(state->ctx, ctx, lookupname_recv_sids, state);
state              86 source4/winbind/wb_cmd_lookupname.c 	struct cmd_lookupname_state *state =
state              91 source4/winbind/wb_cmd_lookupname.c 	state->ctx->status = wb_lsa_lookupnames_recv(ctx, state, &sids);
state              92 source4/winbind/wb_cmd_lookupname.c 	if (!composite_is_ok(state->ctx)) return;
state              94 source4/winbind/wb_cmd_lookupname.c 	state->result = sids[0];
state              95 source4/winbind/wb_cmd_lookupname.c 	composite_done(state->ctx);
state             102 source4/winbind/wb_cmd_lookupname.c 	struct cmd_lookupname_state *state =
state             106 source4/winbind/wb_cmd_lookupname.c 		*sid = talloc_steal(mem_ctx, state->result);
state             108 source4/winbind/wb_cmd_lookupname.c 	talloc_free(state);
state              43 source4/winbind/wb_cmd_lookupsid.c 	struct cmd_lookupsid_state *state;
state              49 source4/winbind/wb_cmd_lookupsid.c 	state = talloc(result, struct cmd_lookupsid_state);
state              50 source4/winbind/wb_cmd_lookupsid.c 	if (state == NULL) goto failed;
state              51 source4/winbind/wb_cmd_lookupsid.c 	state->ctx = result;
state              52 source4/winbind/wb_cmd_lookupsid.c 	result->private_data = state;
state              54 source4/winbind/wb_cmd_lookupsid.c 	state->sid = dom_sid_dup(state, sid);
state              55 source4/winbind/wb_cmd_lookupsid.c 	if (state->sid == NULL) goto failed;
state              57 source4/winbind/wb_cmd_lookupsid.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              61 source4/winbind/wb_cmd_lookupsid.c 	ctx->async.private_data = state;
state              71 source4/winbind/wb_cmd_lookupsid.c 	struct cmd_lookupsid_state *state =
state              76 source4/winbind/wb_cmd_lookupsid.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              77 source4/winbind/wb_cmd_lookupsid.c 	if (!composite_is_ok(state->ctx)) return;
state              79 source4/winbind/wb_cmd_lookupsid.c 	ctx = wb_lsa_lookupsids_send(state, domain->libnet_ctx->lsa.pipe,
state              80 source4/winbind/wb_cmd_lookupsid.c 				     &domain->libnet_ctx->lsa.handle, 1, &state->sid);
state              81 source4/winbind/wb_cmd_lookupsid.c 	composite_continue(state->ctx, ctx, lookupsid_recv_names, state);
state              86 source4/winbind/wb_cmd_lookupsid.c 	struct cmd_lookupsid_state *state =
state              91 source4/winbind/wb_cmd_lookupsid.c 	state->ctx->status = wb_lsa_lookupsids_recv(ctx, state, &names);
state              92 source4/winbind/wb_cmd_lookupsid.c 	if (!composite_is_ok(state->ctx)) return;
state              94 source4/winbind/wb_cmd_lookupsid.c 	state->result = names[0];
state              95 source4/winbind/wb_cmd_lookupsid.c 	composite_done(state->ctx);
state             102 source4/winbind/wb_cmd_lookupsid.c 	struct cmd_lookupsid_state *state =
state             106 source4/winbind/wb_cmd_lookupsid.c 		*sid = talloc_steal(mem_ctx, state->result);
state             108 source4/winbind/wb_cmd_lookupsid.c 	talloc_free(state);
state              45 source4/winbind/wb_cmd_setpwent.c 	struct cmd_setpwent_state *state;
state              52 source4/winbind/wb_cmd_setpwent.c 	state = talloc(mem_ctx, struct cmd_setpwent_state);
state              53 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(state, result)) return result;
state              55 source4/winbind/wb_cmd_setpwent.c 	state->ctx = result;
state              56 source4/winbind/wb_cmd_setpwent.c 	result->private_data = state;
state              57 source4/winbind/wb_cmd_setpwent.c 	state->service = service;
state              59 source4/winbind/wb_cmd_setpwent.c 	state->result = talloc(state, struct wbsrv_pwent);
state              60 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(state->result, state->ctx)) return result;
state              62 source4/winbind/wb_cmd_setpwent.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              63 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              65 source4/winbind/wb_cmd_setpwent.c 	composite_continue(state->ctx, ctx, cmd_setpwent_recv_domain, state);
state              71 source4/winbind/wb_cmd_setpwent.c 	struct cmd_setpwent_state *state = talloc_get_type(
state              78 source4/winbind/wb_cmd_setpwent.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              79 source4/winbind/wb_cmd_setpwent.c 	if (!composite_is_ok(state->ctx)) return;
state              81 source4/winbind/wb_cmd_setpwent.c 	state->libnet_ctx = domain->libnet_ctx;
state              83 source4/winbind/wb_cmd_setpwent.c 	user_list = talloc(state->result, struct libnet_UserList);
state              84 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(user_list, state->ctx)) return;
state              86 source4/winbind/wb_cmd_setpwent.c 	user_list->in.domain_name = talloc_strdup(state,
state              88 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(user_list->in.domain_name, state->ctx)) return;
state              96 source4/winbind/wb_cmd_setpwent.c 	ctx = libnet_UserList_send(domain->libnet_ctx, state->result, user_list,
state              99 source4/winbind/wb_cmd_setpwent.c 	composite_continue(state->ctx, ctx, cmd_setpwent_recv_user_list, state);
state             104 source4/winbind/wb_cmd_setpwent.c 	struct cmd_setpwent_state *state = talloc_get_type(
state             110 source4/winbind/wb_cmd_setpwent.c 	user_list = talloc(state->result, struct libnet_UserList);
state             111 source4/winbind/wb_cmd_setpwent.c 	if (composite_nomem(user_list, state->ctx)) return;
state             113 source4/winbind/wb_cmd_setpwent.c 	state->ctx->status = libnet_UserList_recv(ctx, state->result,
state             115 source4/winbind/wb_cmd_setpwent.c 	if (!composite_is_ok(state->ctx)) return;
state             117 source4/winbind/wb_cmd_setpwent.c 	state->result->user_list = user_list;
state             118 source4/winbind/wb_cmd_setpwent.c 	state->result->page_index = 0;
state             119 source4/winbind/wb_cmd_setpwent.c 	state->result->libnet_ctx = state->libnet_ctx;
state             121 source4/winbind/wb_cmd_setpwent.c 	composite_done(state->ctx);
state             132 source4/winbind/wb_cmd_setpwent.c 		struct cmd_setpwent_state *state =
state             136 source4/winbind/wb_cmd_setpwent.c 		*pwent = talloc_steal(mem_ctx, state->result);
state              45 source4/winbind/wb_cmd_userdomgroups.c 	struct cmd_userdomgroups_state *state;
state              50 source4/winbind/wb_cmd_userdomgroups.c 	state = talloc(result, struct cmd_userdomgroups_state);
state              51 source4/winbind/wb_cmd_userdomgroups.c 	if (state == NULL) goto failed;
state              52 source4/winbind/wb_cmd_userdomgroups.c 	state->ctx = result;
state              53 source4/winbind/wb_cmd_userdomgroups.c 	result->private_data = state;
state              55 source4/winbind/wb_cmd_userdomgroups.c 	state->dom_sid = dom_sid_dup(state, sid);
state              56 source4/winbind/wb_cmd_userdomgroups.c 	if (state->dom_sid == NULL) goto failed;
state              57 source4/winbind/wb_cmd_userdomgroups.c 	state->dom_sid->num_auths -= 1;
state              59 source4/winbind/wb_cmd_userdomgroups.c 	state->user_rid = sid->sub_auths[sid->num_auths-1];
state              61 source4/winbind/wb_cmd_userdomgroups.c 	ctx = wb_sid2domain_send(state, service, sid);
state              63 source4/winbind/wb_cmd_userdomgroups.c 	composite_continue(state->ctx, ctx, userdomgroups_recv_domain, state);
state              76 source4/winbind/wb_cmd_userdomgroups.c 	struct cmd_userdomgroups_state *state =
state              81 source4/winbind/wb_cmd_userdomgroups.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              82 source4/winbind/wb_cmd_userdomgroups.c 	if (!composite_is_ok(state->ctx)) return;
state              84 source4/winbind/wb_cmd_userdomgroups.c 	ctx = wb_samr_userdomgroups_send(state, domain->libnet_ctx->samr.pipe,
state              86 source4/winbind/wb_cmd_userdomgroups.c 					 state->user_rid);
state              87 source4/winbind/wb_cmd_userdomgroups.c 	composite_continue(state->ctx, ctx, userdomgroups_recv_rids, state);
state              93 source4/winbind/wb_cmd_userdomgroups.c 	struct cmd_userdomgroups_state *state =
state              97 source4/winbind/wb_cmd_userdomgroups.c 	state->ctx->status = wb_samr_userdomgroups_recv(ctx, state,
state              98 source4/winbind/wb_cmd_userdomgroups.c 							&state->num_rids,
state              99 source4/winbind/wb_cmd_userdomgroups.c 							&state->rids);
state             100 source4/winbind/wb_cmd_userdomgroups.c 	if (!composite_is_ok(state->ctx)) return;
state             102 source4/winbind/wb_cmd_userdomgroups.c 	composite_done(state->ctx);
state             109 source4/winbind/wb_cmd_userdomgroups.c 	struct cmd_userdomgroups_state *state =
state             118 source4/winbind/wb_cmd_userdomgroups.c 	*num_sids = state->num_rids;
state             119 source4/winbind/wb_cmd_userdomgroups.c 	*sids = talloc_array(mem_ctx, struct dom_sid *, state->num_rids);
state             125 source4/winbind/wb_cmd_userdomgroups.c 	for (i=0; i<state->num_rids; i++) {
state             126 source4/winbind/wb_cmd_userdomgroups.c 		(*sids)[i] = dom_sid_add_rid((*sids), state->dom_sid,
state             127 source4/winbind/wb_cmd_userdomgroups.c 					     state->rids[i]);
state              57 source4/winbind/wb_cmd_usersids.c 	struct cmd_usersids_state *state;
state              63 source4/winbind/wb_cmd_usersids.c 	state = talloc(result, struct cmd_usersids_state);
state              64 source4/winbind/wb_cmd_usersids.c 	if (state == NULL) goto failed;
state              65 source4/winbind/wb_cmd_usersids.c 	state->ctx = result;
state              66 source4/winbind/wb_cmd_usersids.c 	result->private_data = state;
state              68 source4/winbind/wb_cmd_usersids.c 	state->service = service;
state              69 source4/winbind/wb_cmd_usersids.c 	state->user_sid = dom_sid_dup(state, sid);
state              70 source4/winbind/wb_cmd_usersids.c 	if (state->user_sid == NULL) goto failed;
state              72 source4/winbind/wb_cmd_usersids.c 	ctx = wb_cmd_userdomgroups_send(state, service, sid);
state              76 source4/winbind/wb_cmd_usersids.c 	ctx->async.private_data = state;
state              86 source4/winbind/wb_cmd_usersids.c 	struct cmd_usersids_state *state =
state              90 source4/winbind/wb_cmd_usersids.c 	state->ctx->status = wb_cmd_userdomgroups_recv(ctx, state,
state              91 source4/winbind/wb_cmd_usersids.c 						       &state->num_domgroups,
state              92 source4/winbind/wb_cmd_usersids.c 						       &state->domgroups);
state              93 source4/winbind/wb_cmd_usersids.c 	if (!composite_is_ok(state->ctx)) return;
state              95 source4/winbind/wb_cmd_usersids.c 	ctx = wb_sid2domain_send(state, state->service,
state              96 source4/winbind/wb_cmd_usersids.c 				 state->service->primary_sid);
state              97 source4/winbind/wb_cmd_usersids.c 	composite_continue(state->ctx, ctx, usersids_recv_domain, state);
state             102 source4/winbind/wb_cmd_usersids.c         struct cmd_usersids_state *state =
state             109 source4/winbind/wb_cmd_usersids.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state             110 source4/winbind/wb_cmd_usersids.c 	if (!composite_is_ok(state->ctx)) return;
state             112 source4/winbind/wb_cmd_usersids.c 	state->lsa_sids.num_sids = state->num_domgroups+1;
state             113 source4/winbind/wb_cmd_usersids.c 	state->lsa_sids.sids = talloc_array(state, struct lsa_SidPtr,
state             114 source4/winbind/wb_cmd_usersids.c 					    state->lsa_sids.num_sids);
state             115 source4/winbind/wb_cmd_usersids.c 	if (composite_nomem(state->lsa_sids.sids, state->ctx)) return;
state             117 source4/winbind/wb_cmd_usersids.c 	state->lsa_sids.sids[0].sid = state->user_sid;
state             118 source4/winbind/wb_cmd_usersids.c 	for (i=0; i<state->num_domgroups; i++) {
state             119 source4/winbind/wb_cmd_usersids.c 		state->lsa_sids.sids[i+1].sid = state->domgroups[i];
state             122 source4/winbind/wb_cmd_usersids.c 	state->rids.count = 0;
state             123 source4/winbind/wb_cmd_usersids.c 	state->rids.ids = NULL;
state             125 source4/winbind/wb_cmd_usersids.c 	state->r.in.domain_handle = &domain->libnet_ctx->samr.handle;
state             126 source4/winbind/wb_cmd_usersids.c 	state->r.in.sids = &state->lsa_sids;
state             127 source4/winbind/wb_cmd_usersids.c 	state->r.out.rids = &state->rids;
state             129 source4/winbind/wb_cmd_usersids.c 	req = dcerpc_samr_GetAliasMembership_send(domain->libnet_ctx->samr.pipe, state,
state             130 source4/winbind/wb_cmd_usersids.c 						  &state->r);
state             131 source4/winbind/wb_cmd_usersids.c 	composite_continue_rpc(state->ctx, req, usersids_recv_aliases, state);
state             136 source4/winbind/wb_cmd_usersids.c 	struct cmd_usersids_state *state =
state             141 source4/winbind/wb_cmd_usersids.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             142 source4/winbind/wb_cmd_usersids.c 	if (!composite_is_ok(state->ctx)) return;
state             143 source4/winbind/wb_cmd_usersids.c 	state->ctx->status = state->r.out.result;
state             144 source4/winbind/wb_cmd_usersids.c 	if (!composite_is_ok(state->ctx)) return;
state             146 source4/winbind/wb_cmd_usersids.c 	state->num_sids = 1 + state->num_domgroups + state->r.out.rids->count;
state             147 source4/winbind/wb_cmd_usersids.c 	state->sids = talloc_array(state, struct dom_sid *, state->num_sids);
state             148 source4/winbind/wb_cmd_usersids.c 	if (composite_nomem(state->sids, state->ctx)) return;
state             150 source4/winbind/wb_cmd_usersids.c 	state->sids[0] = talloc_steal(state->sids, state->user_sid);
state             152 source4/winbind/wb_cmd_usersids.c 	for (i=0; i<state->num_domgroups; i++) {
state             153 source4/winbind/wb_cmd_usersids.c 		state->sids[1+i] =
state             154 source4/winbind/wb_cmd_usersids.c 			talloc_steal(state->sids, state->domgroups[i]);
state             157 source4/winbind/wb_cmd_usersids.c 	for (i=0; i<state->r.out.rids->count; i++) {
state             158 source4/winbind/wb_cmd_usersids.c 		state->sids[1+state->num_domgroups+i] =	dom_sid_add_rid(
state             159 source4/winbind/wb_cmd_usersids.c 			state->sids, state->service->primary_sid,
state             160 source4/winbind/wb_cmd_usersids.c 			state->r.out.rids->ids[i]);
state             162 source4/winbind/wb_cmd_usersids.c 		if (composite_nomem(state->sids[1+state->num_domgroups+i],
state             163 source4/winbind/wb_cmd_usersids.c 				    state->ctx)) return;
state             166 source4/winbind/wb_cmd_usersids.c 	composite_done(state->ctx);
state             175 source4/winbind/wb_cmd_usersids.c 		struct cmd_usersids_state *state =
state             178 source4/winbind/wb_cmd_usersids.c 		*num_sids = state->num_sids;
state             179 source4/winbind/wb_cmd_usersids.c 		*sids = talloc_steal(mem_ctx, state->sids);
state              53 source4/winbind/wb_connect_lsa.c 	struct init_lsa_state *state;
state              58 source4/winbind/wb_connect_lsa.c 	state = talloc(result, struct init_lsa_state);
state              59 source4/winbind/wb_connect_lsa.c 	if (state == NULL) goto failed;
state              60 source4/winbind/wb_connect_lsa.c 	state->ctx = result;
state              61 source4/winbind/wb_connect_lsa.c 	result->private_data = state;
state              70 source4/winbind/wb_connect_lsa.c 	composite_continue(state->ctx, ctx, init_lsa_recv_pipe, state);
state              81 source4/winbind/wb_connect_lsa.c 	struct init_lsa_state *state =
state              85 source4/winbind/wb_connect_lsa.c 	state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state,
state              86 source4/winbind/wb_connect_lsa.c 								   &state->lsa_pipe);
state              87 source4/winbind/wb_connect_lsa.c 	if (!composite_is_ok(state->ctx)) return;
state              89 source4/winbind/wb_connect_lsa.c 	state->handle = talloc(state, struct policy_handle);
state              90 source4/winbind/wb_connect_lsa.c 	if (composite_nomem(state->handle, state->ctx)) return;
state              92 source4/winbind/wb_connect_lsa.c 	state->openpolicy.in.system_name =
state              93 source4/winbind/wb_connect_lsa.c 		talloc_asprintf(state, "\\\\%s",
state              94 source4/winbind/wb_connect_lsa.c 				dcerpc_server_name(state->lsa_pipe));
state              95 source4/winbind/wb_connect_lsa.c 	ZERO_STRUCT(state->objectattr);
state              96 source4/winbind/wb_connect_lsa.c 	state->openpolicy.in.attr = &state->objectattr;
state              97 source4/winbind/wb_connect_lsa.c 	state->openpolicy.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state              98 source4/winbind/wb_connect_lsa.c 	state->openpolicy.out.handle = state->handle;
state             100 source4/winbind/wb_connect_lsa.c 	req = dcerpc_lsa_OpenPolicy2_send(state->lsa_pipe, state,
state             101 source4/winbind/wb_connect_lsa.c 					  &state->openpolicy);
state             102 source4/winbind/wb_connect_lsa.c 	composite_continue_rpc(state->ctx, req, init_lsa_recv_openpol, state);
state             107 source4/winbind/wb_connect_lsa.c 	struct init_lsa_state *state =
state             111 source4/winbind/wb_connect_lsa.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             112 source4/winbind/wb_connect_lsa.c 	if (!composite_is_ok(state->ctx)) return;
state             113 source4/winbind/wb_connect_lsa.c 	state->ctx->status = state->openpolicy.out.result;
state             114 source4/winbind/wb_connect_lsa.c 	if (!composite_is_ok(state->ctx)) return;
state             116 source4/winbind/wb_connect_lsa.c 	composite_done(state->ctx);
state             126 source4/winbind/wb_connect_lsa.c 		struct init_lsa_state *state =
state             129 source4/winbind/wb_connect_lsa.c 		*lsa_pipe = talloc_steal(mem_ctx, state->lsa_pipe);
state             130 source4/winbind/wb_connect_lsa.c 		*lsa_policy = talloc_steal(mem_ctx, state->handle);
state              55 source4/winbind/wb_connect_sam.c 	struct connect_samr_state *state;
state              60 source4/winbind/wb_connect_sam.c 	state = talloc(result, struct connect_samr_state);
state              61 source4/winbind/wb_connect_sam.c 	if (state == NULL) goto failed;
state              62 source4/winbind/wb_connect_sam.c 	state->ctx = result;
state              63 source4/winbind/wb_connect_sam.c 	result->private_data = state;
state              65 source4/winbind/wb_connect_sam.c 	state->sid = dom_sid_dup(state, domain->info->sid);
state              66 source4/winbind/wb_connect_sam.c 	if (state->sid == NULL) goto failed;
state              75 source4/winbind/wb_connect_sam.c 	composite_continue(state->ctx, ctx, connect_samr_recv_pipe, state);
state              86 source4/winbind/wb_connect_sam.c 	struct connect_samr_state *state =
state              90 source4/winbind/wb_connect_sam.c 	state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state, 
state              91 source4/winbind/wb_connect_sam.c 								   &state->samr_pipe);
state              92 source4/winbind/wb_connect_sam.c 	if (!composite_is_ok(state->ctx)) return;
state              94 source4/winbind/wb_connect_sam.c 	state->connect_handle = talloc(state, struct policy_handle);
state              95 source4/winbind/wb_connect_sam.c 	if (composite_nomem(state->connect_handle, state->ctx)) return;
state              97 source4/winbind/wb_connect_sam.c 	state->c.in.system_name =
state              98 source4/winbind/wb_connect_sam.c 		talloc_asprintf(state, "\\\\%s",
state              99 source4/winbind/wb_connect_sam.c 				dcerpc_server_name(state->samr_pipe));
state             100 source4/winbind/wb_connect_sam.c 	state->c.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             101 source4/winbind/wb_connect_sam.c 	state->c.out.connect_handle = state->connect_handle;
state             103 source4/winbind/wb_connect_sam.c 	req = dcerpc_samr_Connect2_send(state->samr_pipe, state, &state->c);
state             104 source4/winbind/wb_connect_sam.c 	composite_continue_rpc(state->ctx, req, connect_samr_recv_conn, state);
state             110 source4/winbind/wb_connect_sam.c 	struct connect_samr_state *state =
state             114 source4/winbind/wb_connect_sam.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             115 source4/winbind/wb_connect_sam.c 	if (!composite_is_ok(state->ctx)) return;
state             116 source4/winbind/wb_connect_sam.c 	state->ctx->status = state->c.out.result;
state             117 source4/winbind/wb_connect_sam.c 	if (!composite_is_ok(state->ctx)) return;
state             119 source4/winbind/wb_connect_sam.c 	state->domain_handle = talloc(state, struct policy_handle);
state             120 source4/winbind/wb_connect_sam.c 	if (composite_nomem(state->domain_handle, state->ctx)) return;
state             122 source4/winbind/wb_connect_sam.c 	state->o.in.connect_handle = state->connect_handle;
state             123 source4/winbind/wb_connect_sam.c 	state->o.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             124 source4/winbind/wb_connect_sam.c 	state->o.in.sid = state->sid;
state             125 source4/winbind/wb_connect_sam.c 	state->o.out.domain_handle = state->domain_handle;
state             127 source4/winbind/wb_connect_sam.c 	req = dcerpc_samr_OpenDomain_send(state->samr_pipe, state, &state->o);
state             128 source4/winbind/wb_connect_sam.c 	composite_continue_rpc(state->ctx, req,
state             129 source4/winbind/wb_connect_sam.c 			       connect_samr_recv_open, state);
state             134 source4/winbind/wb_connect_sam.c 	struct connect_samr_state *state =
state             138 source4/winbind/wb_connect_sam.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             139 source4/winbind/wb_connect_sam.c 	if (!composite_is_ok(state->ctx)) return;
state             140 source4/winbind/wb_connect_sam.c 	state->ctx->status = state->o.out.result;
state             141 source4/winbind/wb_connect_sam.c 	if (!composite_is_ok(state->ctx)) return;
state             143 source4/winbind/wb_connect_sam.c 	composite_done(state->ctx);
state             154 source4/winbind/wb_connect_sam.c 		struct connect_samr_state *state =
state             157 source4/winbind/wb_connect_sam.c 		*samr_pipe = talloc_steal(mem_ctx, state->samr_pipe);
state             158 source4/winbind/wb_connect_sam.c 		*connect_handle = *state->connect_handle;
state             159 source4/winbind/wb_connect_sam.c 		*domain_handle = *state->domain_handle;
state              48 source4/winbind/wb_dom_info.c 	struct get_dom_info_state *state;
state              53 source4/winbind/wb_dom_info.c 	state = talloc(result, struct get_dom_info_state);
state              54 source4/winbind/wb_dom_info.c 	if (state == NULL) goto failed;
state              55 source4/winbind/wb_dom_info.c 	state->ctx = result;
state              56 source4/winbind/wb_dom_info.c 	result->private_data = state;
state              58 source4/winbind/wb_dom_info.c 	state->info = talloc_zero(state, struct wb_dom_info);
state              59 source4/winbind/wb_dom_info.c 	if (state->info == NULL) goto failed;
state              61 source4/winbind/wb_dom_info.c 	state->info->name = talloc_strdup(state->info, domain_name);
state              62 source4/winbind/wb_dom_info.c 	if (state->info->name == NULL) goto failed;
state              64 source4/winbind/wb_dom_info.c 	state->info->sid = dom_sid_dup(state->info, sid);
state              65 source4/winbind/wb_dom_info.c 	if (state->info->sid == NULL) goto failed;
state              80 source4/winbind/wb_dom_info.c 	composite_continue(state->ctx, ctx, get_dom_info_recv_addrs, state);
state              90 source4/winbind/wb_dom_info.c 	struct get_dom_info_state *state =
state              94 source4/winbind/wb_dom_info.c 	state->ctx->status = finddcs_recv(ctx, state->info,
state              95 source4/winbind/wb_dom_info.c 					  &state->info->num_dcs,
state              96 source4/winbind/wb_dom_info.c 					  &state->info->dcs);
state              97 source4/winbind/wb_dom_info.c 	if (!composite_is_ok(state->ctx)) return;
state              99 source4/winbind/wb_dom_info.c 	composite_done(state->ctx);
state             108 source4/winbind/wb_dom_info.c 		struct get_dom_info_state *state =
state             111 source4/winbind/wb_dom_info.c 		*result = talloc_steal(mem_ctx, state->info);
state              54 source4/winbind/wb_dom_info_trusted.c 	struct trusted_dom_info_state *state;
state              59 source4/winbind/wb_dom_info_trusted.c 	state = talloc(result, struct trusted_dom_info_state);
state              60 source4/winbind/wb_dom_info_trusted.c 	if (state == NULL) goto failed;
state              61 source4/winbind/wb_dom_info_trusted.c 	state->ctx = result;
state              62 source4/winbind/wb_dom_info_trusted.c 	result->private_data = state;
state              64 source4/winbind/wb_dom_info_trusted.c 	state->info = talloc_zero(state, struct wb_dom_info);
state              65 source4/winbind/wb_dom_info_trusted.c 	if (state->info == NULL) goto failed;
state              67 source4/winbind/wb_dom_info_trusted.c 	state->service = service;
state              69 source4/winbind/wb_dom_info_trusted.c 	state->info->sid = dom_sid_dup(state->info, sid);
state              70 source4/winbind/wb_dom_info_trusted.c 	if (state->info->sid == NULL) goto failed;
state              72 source4/winbind/wb_dom_info_trusted.c 	state->info->name = talloc_strdup(state->info, domain_name);
state              73 source4/winbind/wb_dom_info_trusted.c 	if (state->info->name == NULL) goto failed;
state              75 source4/winbind/wb_dom_info_trusted.c 	ctx = wb_sid2domain_send(state, service, service->primary_sid);
state              79 source4/winbind/wb_dom_info_trusted.c 	ctx->async.private_data = state;
state              89 source4/winbind/wb_dom_info_trusted.c 	struct trusted_dom_info_state *state =
state              94 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status = wb_sid2domain_recv(ctx, &state->my_domain);
state              95 source4/winbind/wb_dom_info_trusted.c 	if (!composite_is_ok(state->ctx)) return;
state              97 source4/winbind/wb_dom_info_trusted.c 	state->d.in.server_unc =
state              98 source4/winbind/wb_dom_info_trusted.c 		talloc_asprintf(state, "\\\\%s",
state              99 source4/winbind/wb_dom_info_trusted.c 				dcerpc_server_name(state->my_domain->netlogon_pipe));
state             100 source4/winbind/wb_dom_info_trusted.c 	if (composite_nomem(state->d.in.server_unc,
state             101 source4/winbind/wb_dom_info_trusted.c 			    state->ctx)) return;
state             103 source4/winbind/wb_dom_info_trusted.c 	state->d.in.domain_name = state->info->name;
state             104 source4/winbind/wb_dom_info_trusted.c 	state->d.in.domain_guid = NULL;
state             105 source4/winbind/wb_dom_info_trusted.c 	state->d.in.site_guid = NULL;
state             106 source4/winbind/wb_dom_info_trusted.c 	state->d.in.flags = DS_RETURN_DNS_NAME;
state             107 source4/winbind/wb_dom_info_trusted.c 	state->d.out.info = talloc(state, struct netr_DsRGetDCNameInfo *);
state             108 source4/winbind/wb_dom_info_trusted.c 	if (composite_nomem(state->d.out.info, state->ctx)) return;
state             110 source4/winbind/wb_dom_info_trusted.c 	req = dcerpc_netr_DsRGetDCName_send(state->my_domain->netlogon_pipe,
state             111 source4/winbind/wb_dom_info_trusted.c 					    state, &state->d);
state             112 source4/winbind/wb_dom_info_trusted.c 	composite_continue_rpc(state->ctx, req, trusted_dom_info_recv_dsr,
state             113 source4/winbind/wb_dom_info_trusted.c 			       state);
state             122 source4/winbind/wb_dom_info_trusted.c 	struct trusted_dom_info_state *state =
state             126 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             127 source4/winbind/wb_dom_info_trusted.c 	if (!NT_STATUS_IS_OK(state->ctx->status)) {
state             129 source4/winbind/wb_dom_info_trusted.c 			  nt_errstr(state->ctx->status)));
state             133 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status =
state             134 source4/winbind/wb_dom_info_trusted.c 		werror_to_ntstatus(state->d.out.result);
state             135 source4/winbind/wb_dom_info_trusted.c 	if (!NT_STATUS_IS_OK(state->ctx->status)) {
state             137 source4/winbind/wb_dom_info_trusted.c 			  nt_errstr(state->ctx->status)));
state             142 source4/winbind/wb_dom_info_trusted.c 	state->info->num_dcs = 1;
state             143 source4/winbind/wb_dom_info_trusted.c 	state->info->dcs = talloc(state->info, struct nbt_dc_name);
state             144 source4/winbind/wb_dom_info_trusted.c 	state->info->dcs[0].name = talloc_steal(state->info,
state             145 source4/winbind/wb_dom_info_trusted.c 					    (*state->d.out.info)->dc_unc);
state             146 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++;
state             147 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++;
state             149 source4/winbind/wb_dom_info_trusted.c 	state->info->dcs[0].address = talloc_steal(state->info,
state             150 source4/winbind/wb_dom_info_trusted.c 					       (*state->d.out.info)->dc_address);
state             151 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].address == '\\') state->info->dcs[0].address++;
state             152 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].address == '\\') state->info->dcs[0].address++;
state             154 source4/winbind/wb_dom_info_trusted.c 	state->info->dns_name = talloc_steal(state->info,
state             155 source4/winbind/wb_dom_info_trusted.c 					     (*state->d.out.info)->domain_name);
state             157 source4/winbind/wb_dom_info_trusted.c 	composite_done(state->ctx);
state             162 source4/winbind/wb_dom_info_trusted.c 	state->g.in.logon_server = talloc_asprintf(
state             163 source4/winbind/wb_dom_info_trusted.c 		state, "\\\\%s",
state             164 source4/winbind/wb_dom_info_trusted.c 		dcerpc_server_name(state->my_domain->netlogon_pipe));
state             165 source4/winbind/wb_dom_info_trusted.c 	state->g.in.domainname = state->info->name;
state             166 source4/winbind/wb_dom_info_trusted.c 	state->g.out.dcname = talloc(state, const char *);
state             168 source4/winbind/wb_dom_info_trusted.c 	req = dcerpc_netr_GetAnyDCName_send(state->my_domain->netlogon_pipe,
state             169 source4/winbind/wb_dom_info_trusted.c 					    state, &state->g);
state             170 source4/winbind/wb_dom_info_trusted.c 	if (composite_nomem(req, state->ctx)) return;
state             172 source4/winbind/wb_dom_info_trusted.c 	composite_continue_rpc(state->ctx, req, trusted_dom_info_recv_dcname,
state             173 source4/winbind/wb_dom_info_trusted.c 			       state);
state             178 source4/winbind/wb_dom_info_trusted.c 	struct trusted_dom_info_state *state =
state             184 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             185 source4/winbind/wb_dom_info_trusted.c 	if (!composite_is_ok(state->ctx)) return;
state             186 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status = werror_to_ntstatus(state->g.out.result);
state             187 source4/winbind/wb_dom_info_trusted.c 	if (!composite_is_ok(state->ctx)) return;
state             190 source4/winbind/wb_dom_info_trusted.c 	state->info->num_dcs = 1;
state             191 source4/winbind/wb_dom_info_trusted.c 	state->info->dcs = talloc(state->info, struct nbt_dc_name);
state             192 source4/winbind/wb_dom_info_trusted.c 	state->info->dcs[0].name = talloc_steal(state->info,
state             193 source4/winbind/wb_dom_info_trusted.c 					    *(state->g.out.dcname));
state             194 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++;
state             195 source4/winbind/wb_dom_info_trusted.c 	if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++;
state             197 source4/winbind/wb_dom_info_trusted.c 	make_nbt_name(&name, state->info->dcs[0].name, 0x20);
state             198 source4/winbind/wb_dom_info_trusted.c 	ctx = resolve_name_send(lp_resolve_context(state->service->task->lp_ctx), 
state             199 source4/winbind/wb_dom_info_trusted.c 				&name, state->service->task->event_ctx);
state             201 source4/winbind/wb_dom_info_trusted.c 	composite_continue(state->ctx, ctx, trusted_dom_info_recv_dcaddr,
state             202 source4/winbind/wb_dom_info_trusted.c 			   state);
state             207 source4/winbind/wb_dom_info_trusted.c 	struct trusted_dom_info_state *state =
state             211 source4/winbind/wb_dom_info_trusted.c 	state->ctx->status = resolve_name_recv(ctx, state->info,
state             212 source4/winbind/wb_dom_info_trusted.c 					       &state->info->dcs[0].address);
state             213 source4/winbind/wb_dom_info_trusted.c 	if (!composite_is_ok(state->ctx)) return;
state             215 source4/winbind/wb_dom_info_trusted.c 	composite_done(state->ctx);
state             224 source4/winbind/wb_dom_info_trusted.c 		struct trusted_dom_info_state *state =
state             227 source4/winbind/wb_dom_info_trusted.c 		*result = talloc_steal(mem_ctx, state->info);
state              42 source4/winbind/wb_gid2sid.c 	struct gid2sid_state *state;
state              51 source4/winbind/wb_gid2sid.c 	state = talloc(result, struct gid2sid_state);
state              52 source4/winbind/wb_gid2sid.c 	if (composite_nomem(state, result)) return result;
state              54 source4/winbind/wb_gid2sid.c 	state->ctx = result;
state              55 source4/winbind/wb_gid2sid.c 	result->private_data = state;
state              56 source4/winbind/wb_gid2sid.c 	state->service = service;
state              71 source4/winbind/wb_gid2sid.c 	composite_continue(result, ctx, gid2sid_recv_sid, state);
state              77 source4/winbind/wb_gid2sid.c 	struct gid2sid_state *state = talloc_get_type(ctx->async.private_data,
state              80 source4/winbind/wb_gid2sid.c 	state->ctx->status = wb_xids2sids_recv(ctx, &ids);
state              81 source4/winbind/wb_gid2sid.c 	if (!composite_is_ok(state->ctx)) return;
state              84 source4/winbind/wb_gid2sid.c 		composite_error(state->ctx, ids->status);
state              88 source4/winbind/wb_gid2sid.c 	state->sid = ids->sid;
state              89 source4/winbind/wb_gid2sid.c 	composite_done(state->ctx);
state             100 source4/winbind/wb_gid2sid.c 		struct gid2sid_state *state =
state             103 source4/winbind/wb_gid2sid.c 		*sid = talloc_steal(mem_ctx, state->sid);
state              90 source4/winbind/wb_init_domain.c 		char *s = talloc_asprintf(state, "ncacn_np:%s", state->domain->dc_name);
state              92 source4/winbind/wb_init_domain.c 		status = dcerpc_parse_binding(state, s, &binding);
state             100 source4/winbind/wb_init_domain.c 	binding->target_hostname = state->domain->dc_name;
state             101 source4/winbind/wb_init_domain.c 	binding->host = state->domain->dc_address;
state             104 source4/winbind/wb_init_domain.c 	status = dcerpc_epm_map_binding(binding, binding, table, state->service->task->event_ctx,
state             105 source4/winbind/wb_init_domain.c 					state->service->task->lp_ctx);
state             118 source4/winbind/wb_init_domain.c 	struct init_domain_state *state;
state             123 source4/winbind/wb_init_domain.c 	state = talloc_zero(result, struct init_domain_state);
state             124 source4/winbind/wb_init_domain.c 	if (state == NULL) goto failed;
state             125 source4/winbind/wb_init_domain.c 	state->ctx = result;
state             126 source4/winbind/wb_init_domain.c 	result->private_data = state;
state             128 source4/winbind/wb_init_domain.c 	state->service = service;
state             130 source4/winbind/wb_init_domain.c 	state->domain = talloc(state, struct wbsrv_domain);
state             131 source4/winbind/wb_init_domain.c 	if (state->domain == NULL) goto failed;
state             133 source4/winbind/wb_init_domain.c 	state->domain->info = talloc_reference(state->domain, dom_info);
state             134 source4/winbind/wb_init_domain.c 	if (state->domain->info == NULL) goto failed;
state             144 source4/winbind/wb_init_domain.c 	state->domain->dc_name = dom_info->dcs[0].name;
state             145 source4/winbind/wb_init_domain.c 	state->domain->dc_address = dom_info->dcs[0].address;
state             147 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx = libnet_context_init(service->task->event_ctx, 
state             151 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->cred = cli_credentials_init(state->domain);
state             152 source4/winbind/wb_init_domain.c 	if (state->domain->libnet_ctx->cred == NULL) goto failed;
state             154 source4/winbind/wb_init_domain.c 	cli_credentials_set_conf(state->domain->libnet_ctx->cred, service->task->lp_ctx);
state             157 source4/winbind/wb_init_domain.c 	state->ctx->status =
state             158 source4/winbind/wb_init_domain.c 		cli_credentials_set_machine_account(state->domain->libnet_ctx->cred, state->domain->libnet_ctx->lp_ctx);
state             159 source4/winbind/wb_init_domain.c 	if (!NT_STATUS_IS_OK(state->ctx->status)) goto failed;
state             161 source4/winbind/wb_init_domain.c 	state->domain->netlogon_binding = init_domain_binding(state, &ndr_table_netlogon);
state             163 source4/winbind/wb_init_domain.c 	state->domain->netlogon_pipe = NULL;
state             165 source4/winbind/wb_init_domain.c 	if ((!cli_credentials_is_anonymous(state->domain->libnet_ctx->cred)) &&
state             168 source4/winbind/wb_init_domain.c 	    (dom_sid_equal(state->domain->info->sid,
state             169 source4/winbind/wb_init_domain.c 			   state->service->primary_sid))) {
state             170 source4/winbind/wb_init_domain.c 		state->domain->netlogon_binding->flags |= DCERPC_SCHANNEL;
state             174 source4/winbind/wb_init_domain.c 			state->domain->netlogon_binding->flags |= (DCERPC_SIGN | DCERPC_SEAL );
state             176 source4/winbind/wb_init_domain.c 			state->domain->netlogon_binding->flags |= (DCERPC_SIGN);
state             182 source4/winbind/wb_init_domain.c 	ctx = dcerpc_pipe_connect_b_send(state, state->domain->netlogon_binding, 
state             184 source4/winbind/wb_init_domain.c 					 state->domain->libnet_ctx->cred,
state             188 source4/winbind/wb_init_domain.c 	if (composite_nomem(ctx, state->ctx)) {
state             192 source4/winbind/wb_init_domain.c 	composite_continue(state->ctx, ctx, init_domain_recv_netlogonpipe,
state             193 source4/winbind/wb_init_domain.c 			   state);
state             204 source4/winbind/wb_init_domain.c 	struct init_domain_state *state =
state             208 source4/winbind/wb_init_domain.c 	state->ctx->status = dcerpc_pipe_connect_b_recv(ctx, state->domain, 
state             209 source4/winbind/wb_init_domain.c 						   &state->domain->netlogon_pipe);
state             211 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) {
state             214 source4/winbind/wb_init_domain.c 	talloc_steal(state->domain->netlogon_pipe, state->domain->netlogon_binding);
state             216 source4/winbind/wb_init_domain.c 	state->domain->lsa_binding = init_domain_binding(state, &ndr_table_lsarpc);
state             219 source4/winbind/wb_init_domain.c 	if (lp_winbind_sealed_pipes(state->service->task->lp_ctx)) {
state             220 source4/winbind/wb_init_domain.c 		state->domain->lsa_binding->flags |= (DCERPC_SIGN | DCERPC_SEAL );
state             222 source4/winbind/wb_init_domain.c 		state->domain->lsa_binding->flags |= (DCERPC_SIGN);
state             225 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->lsa.pipe = NULL;
state             229 source4/winbind/wb_init_domain.c 	ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe,
state             230 source4/winbind/wb_init_domain.c 						    state->domain->lsa_binding,
state             232 source4/winbind/wb_init_domain.c 						    state->domain->libnet_ctx->cred,
state             233 source4/winbind/wb_init_domain.c 						    state->domain->libnet_ctx->lp_ctx
state             235 source4/winbind/wb_init_domain.c 	composite_continue(state->ctx, ctx, init_domain_recv_lsa_pipe, state);
state             244 source4/winbind/wb_init_domain.c 	state->ctx->status = NT_STATUS_OK;
state             245 source4/winbind/wb_init_domain.c 	if (state->domain->netlogon_binding->flags & DCERPC_SCHANNEL 
state             256 source4/winbind/wb_init_domain.c 		ctx = dcerpc_secondary_auth_connection_send(state->domain->netlogon_pipe,
state             259 source4/winbind/wb_init_domain.c 							    state->domain->libnet_ctx->cred,
state             260 source4/winbind/wb_init_domain.c 							    state->domain->libnet_ctx->lp_ctx);
state             261 source4/winbind/wb_init_domain.c 		composite_continue(state->ctx, ctx, continuation, state);		
state             273 source4/winbind/wb_init_domain.c 	struct init_domain_state *state =
state             277 source4/winbind/wb_init_domain.c 	state->ctx->status = dcerpc_secondary_auth_connection_recv(ctx, state->domain,
state             278 source4/winbind/wb_init_domain.c 								   &state->domain->libnet_ctx->lsa.pipe);
state             279 source4/winbind/wb_init_domain.c 	if (NT_STATUS_EQUAL(state->ctx->status, NT_STATUS_LOGON_FAILURE)) {
state             280 source4/winbind/wb_init_domain.c 		if (retry_with_schannel(state, state->domain->lsa_binding, 
state             286 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             288 source4/winbind/wb_init_domain.c 	talloc_steal(state->domain->libnet_ctx, state->domain->libnet_ctx->lsa.pipe);
state             289 source4/winbind/wb_init_domain.c 	talloc_steal(state->domain->libnet_ctx->lsa.pipe, state->domain->lsa_binding);
state             290 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->lsa.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             291 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->lsa.name = state->domain->info->name;
state             293 source4/winbind/wb_init_domain.c 	ZERO_STRUCT(state->domain->libnet_ctx->lsa.handle);
state             294 source4/winbind/wb_init_domain.c 	state->lsa_openpolicy.in.system_name =
state             295 source4/winbind/wb_init_domain.c 		talloc_asprintf(state, "\\\\%s",
state             296 source4/winbind/wb_init_domain.c 				dcerpc_server_name(state->domain->libnet_ctx->lsa.pipe));
state             297 source4/winbind/wb_init_domain.c 	ZERO_STRUCT(state->objectattr);
state             298 source4/winbind/wb_init_domain.c 	state->lsa_openpolicy.in.attr = &state->objectattr;
state             299 source4/winbind/wb_init_domain.c 	state->lsa_openpolicy.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             300 source4/winbind/wb_init_domain.c 	state->lsa_openpolicy.out.handle = &state->domain->libnet_ctx->lsa.handle;
state             302 source4/winbind/wb_init_domain.c 	req = dcerpc_lsa_OpenPolicy2_send(state->domain->libnet_ctx->lsa.pipe, state,
state             303 source4/winbind/wb_init_domain.c 					  &state->lsa_openpolicy);
state             305 source4/winbind/wb_init_domain.c 	composite_continue_rpc(state->ctx, req, init_domain_recv_lsa_policy, state);
state             313 source4/winbind/wb_init_domain.c 	struct init_domain_state *state =
state             317 source4/winbind/wb_init_domain.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             318 source4/winbind/wb_init_domain.c 	if ((!NT_STATUS_IS_OK(state->ctx->status)
state             319 source4/winbind/wb_init_domain.c 	      || !NT_STATUS_IS_OK(state->lsa_openpolicy.out.result))) {
state             320 source4/winbind/wb_init_domain.c 		if (retry_with_schannel(state, state->domain->lsa_binding, 
state             326 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             327 source4/winbind/wb_init_domain.c 	state->ctx->status = state->lsa_openpolicy.out.result;
state             328 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             330 source4/winbind/wb_init_domain.c 	state->info = talloc_zero(state->ctx, union lsa_PolicyInformation);
state             331 source4/winbind/wb_init_domain.c 	if (composite_nomem(state->info, state->ctx)) return;
state             333 source4/winbind/wb_init_domain.c 	state->queryinfo.in.handle = &state->domain->libnet_ctx->lsa.handle;
state             334 source4/winbind/wb_init_domain.c 	state->queryinfo.in.level = LSA_POLICY_INFO_ACCOUNT_DOMAIN;
state             335 source4/winbind/wb_init_domain.c 	state->queryinfo.out.info = &state->info;
state             337 source4/winbind/wb_init_domain.c 	req = dcerpc_lsa_QueryInfoPolicy_send(state->domain->libnet_ctx->lsa.pipe, state,
state             338 source4/winbind/wb_init_domain.c 					      &state->queryinfo);
state             339 source4/winbind/wb_init_domain.c 	composite_continue_rpc(state->ctx, req,
state             340 source4/winbind/wb_init_domain.c 			       init_domain_recv_queryinfo, state);
state             345 source4/winbind/wb_init_domain.c 	struct init_domain_state *state =
state             350 source4/winbind/wb_init_domain.c 	state->ctx->status = dcerpc_ndr_request_recv(req);
state             351 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             352 source4/winbind/wb_init_domain.c 	state->ctx->status = state->queryinfo.out.result;
state             353 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             355 source4/winbind/wb_init_domain.c 	dominfo = &(*state->queryinfo.out.info)->account_domain;
state             357 source4/winbind/wb_init_domain.c 	if (strcasecmp(state->domain->info->name, dominfo->name.string) != 0) {
state             359 source4/winbind/wb_init_domain.c 			  state->domain->info->name,
state             360 source4/winbind/wb_init_domain.c 			  dcerpc_server_name(state->domain->libnet_ctx->lsa.pipe),
state             362 source4/winbind/wb_init_domain.c 		composite_error(state->ctx, NT_STATUS_INVALID_DOMAIN_STATE);
state             366 source4/winbind/wb_init_domain.c 	if (!dom_sid_equal(state->domain->info->sid, dominfo->sid)) {
state             368 source4/winbind/wb_init_domain.c 			  dom_sid_string(state, state->domain->info->sid),
state             369 source4/winbind/wb_init_domain.c 			  dcerpc_server_name(state->domain->libnet_ctx->lsa.pipe),
state             370 source4/winbind/wb_init_domain.c 			  dom_sid_string(state, dominfo->sid)));
state             371 source4/winbind/wb_init_domain.c 		composite_error(state->ctx, NT_STATUS_INVALID_DOMAIN_STATE);
state             375 source4/winbind/wb_init_domain.c 	state->domain->samr_binding = init_domain_binding(state, &ndr_table_samr);
state             379 source4/winbind/wb_init_domain.c 	state->domain->samr_binding->flags = state->domain->lsa_binding->flags;
state             381 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->samr.pipe = NULL;
state             383 source4/winbind/wb_init_domain.c 	ctx = wb_connect_samr_send(state, state->domain);
state             384 source4/winbind/wb_init_domain.c 	composite_continue(state->ctx, ctx, init_domain_recv_samr, state);
state             391 source4/winbind/wb_init_domain.c 	struct init_domain_state *state =
state             395 source4/winbind/wb_init_domain.c 	state->ctx->status = wb_connect_samr_recv(
state             396 source4/winbind/wb_init_domain.c 		ctx, state->domain,
state             397 source4/winbind/wb_init_domain.c 		&state->domain->libnet_ctx->samr.pipe,
state             398 source4/winbind/wb_init_domain.c 		&state->domain->libnet_ctx->samr.connect_handle,
state             399 source4/winbind/wb_init_domain.c 		&state->domain->libnet_ctx->samr.handle);
state             400 source4/winbind/wb_init_domain.c 	if (!composite_is_ok(state->ctx)) return;
state             402 source4/winbind/wb_init_domain.c 	talloc_steal(state->domain->libnet_ctx->samr.pipe, state->domain->samr_binding);
state             403 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->samr.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
state             404 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->samr.name = state->domain->info->name;
state             405 source4/winbind/wb_init_domain.c 	state->domain->libnet_ctx->samr.sid = dom_sid_dup(
state             406 source4/winbind/wb_init_domain.c 						state->domain->libnet_ctx,
state             407 source4/winbind/wb_init_domain.c 						state->domain->info->sid);
state             409 source4/winbind/wb_init_domain.c 	composite_done(state->ctx);
state             418 source4/winbind/wb_init_domain.c 		struct init_domain_state *state =
state             421 source4/winbind/wb_init_domain.c 		*result = talloc_steal(mem_ctx, state->domain);
state              43 source4/winbind/wb_name2domain.c 	struct name2domain_state *state;
state              52 source4/winbind/wb_name2domain.c 	state = talloc(result, struct name2domain_state);
state              53 source4/winbind/wb_name2domain.c 	if (composite_nomem(state, result)) return result;
state              54 source4/winbind/wb_name2domain.c 	state->ctx = result;
state              55 source4/winbind/wb_name2domain.c 	result->private_data = state;
state              56 source4/winbind/wb_name2domain.c 	state->service = service;
state              58 source4/winbind/wb_name2domain.c 	ok = wb_samba3_split_username(state, service->task->lp_ctx, name, &user_dom, &user_name);
state              60 source4/winbind/wb_name2domain.c 		composite_error(state->ctx, NT_STATUS_OBJECT_NAME_INVALID);
state              64 source4/winbind/wb_name2domain.c 	ctx = wb_cmd_lookupname_send(state, service, user_dom, user_name);
state              65 source4/winbind/wb_name2domain.c 	if (composite_nomem(ctx, state->ctx)) return result;
state              67 source4/winbind/wb_name2domain.c 	composite_continue(result, ctx, name2domain_recv_sid, state);
state              73 source4/winbind/wb_name2domain.c 	struct name2domain_state *state =
state              80 source4/winbind/wb_name2domain.c 	state->ctx->status = wb_cmd_lookupname_recv(ctx, state, &sid);
state              81 source4/winbind/wb_name2domain.c 	if(!composite_is_ok(state->ctx)) return;
state              83 source4/winbind/wb_name2domain.c 	ctx = wb_sid2domain_send(state, state->service, sid->sid);
state              85 source4/winbind/wb_name2domain.c 	composite_continue(state->ctx, ctx, name2domain_recv_domain, state);
state              90 source4/winbind/wb_name2domain.c 	struct name2domain_state *state =
state              97 source4/winbind/wb_name2domain.c 	state->ctx->status = wb_sid2domain_recv(ctx, &domain);
state              98 source4/winbind/wb_name2domain.c 	if(!composite_is_ok(state->ctx)) return;
state             100 source4/winbind/wb_name2domain.c 	state->domain = domain;
state             102 source4/winbind/wb_name2domain.c 	composite_done(state->ctx);
state             113 source4/winbind/wb_name2domain.c 		struct name2domain_state *state =
state             116 source4/winbind/wb_name2domain.c 		*result = state->domain;
state              71 source4/winbind/wb_pam_auth.c 	struct pam_auth_crap_state *state;
state              78 source4/winbind/wb_pam_auth.c 	state = talloc(result, struct pam_auth_crap_state);
state              79 source4/winbind/wb_pam_auth.c 	if (state == NULL) goto failed;
state              80 source4/winbind/wb_pam_auth.c 	state->ctx = result;
state              81 source4/winbind/wb_pam_auth.c 	state->lp_ctx = service->task->lp_ctx;
state              82 source4/winbind/wb_pam_auth.c 	result->private_data = state;
state              84 source4/winbind/wb_pam_auth.c 	state->req = talloc(state, struct winbind_SamLogon);
state              86 source4/winbind/wb_pam_auth.c 	state->req->in.logon_level = 2;
state              87 source4/winbind/wb_pam_auth.c 	state->req->in.validation_level = 3;
state              88 source4/winbind/wb_pam_auth.c 	ninfo = state->req->in.logon.network = talloc(state, struct netr_NetworkInfo);
state              91 source4/winbind/wb_pam_auth.c 	ninfo->identity_info.account_name.string =  talloc_strdup(state, user);
state              92 source4/winbind/wb_pam_auth.c 	ninfo->identity_info.domain_name.string =  talloc_strdup(state, domain);
state              96 source4/winbind/wb_pam_auth.c 	ninfo->identity_info.workstation.string = talloc_strdup(state, workstation);
state             115 source4/winbind/wb_pam_auth.c 	state->unix_username = NULL;
state             117 source4/winbind/wb_pam_auth.c 	ctx = wb_sam_logon_send(mem_ctx, service, state->req);
state             120 source4/winbind/wb_pam_auth.c 	composite_continue(result, ctx, pam_auth_crap_recv_logon, state);
state             138 source4/winbind/wb_pam_auth.c 	struct pam_auth_crap_state *state =
state             142 source4/winbind/wb_pam_auth.c 	state->ctx->status = wb_sam_logon_recv(ctx, state, state->req);
state             143 source4/winbind/wb_pam_auth.c 	if (!composite_is_ok(state->ctx)) return;
state             146 source4/winbind/wb_pam_auth.c 		&tmp_blob, state, lp_iconv_convenience(state->lp_ctx), 
state             147 source4/winbind/wb_pam_auth.c 		state->req->out.validation.sam3,
state             150 source4/winbind/wb_pam_auth.c 		state->ctx->status = ndr_map_error2ntstatus(ndr_err);
state             151 source4/winbind/wb_pam_auth.c 		if (!composite_is_ok(state->ctx)) return;
state             157 source4/winbind/wb_pam_auth.c 	state->info3 = data_blob_talloc(state, NULL, tmp_blob.length+4);
state             158 source4/winbind/wb_pam_auth.c 	if (composite_nomem(state->info3.data, state->ctx)) return;
state             160 source4/winbind/wb_pam_auth.c 	SIVAL(state->info3.data, 0, 1);
state             161 source4/winbind/wb_pam_auth.c 	memcpy(state->info3.data+4, tmp_blob.data, tmp_blob.length);
state             163 source4/winbind/wb_pam_auth.c 	base = &state->req->out.validation.sam3->base;
state             165 source4/winbind/wb_pam_auth.c 	state->user_session_key = base->key;
state             166 source4/winbind/wb_pam_auth.c 	state->lm_key = base->LMSessKey;
state             172 source4/winbind/wb_pam_auth.c 		state->user_name = base->account_name.string;
state             173 source4/winbind/wb_pam_auth.c 		talloc_steal(state, base->account_name.string);
state             176 source4/winbind/wb_pam_auth.c 		state->domain_name = base->domain.string;
state             177 source4/winbind/wb_pam_auth.c 		talloc_steal(state, base->domain.string);
state             180 source4/winbind/wb_pam_auth.c 	state->unix_username = talloc_asprintf(state, "%s%s%s", 
state             181 source4/winbind/wb_pam_auth.c 					       state->domain_name,
state             182 source4/winbind/wb_pam_auth.c 					       lp_winbind_separator(state->lp_ctx),
state             183 source4/winbind/wb_pam_auth.c 					       state->user_name);
state             184 source4/winbind/wb_pam_auth.c 	if (composite_nomem(state->unix_username, state->ctx)) return;
state             186 source4/winbind/wb_pam_auth.c 	composite_done(state->ctx);
state             198 source4/winbind/wb_pam_auth.c 	struct pam_auth_crap_state *state =
state             202 source4/winbind/wb_pam_auth.c 		info3->length = state->info3.length;
state             203 source4/winbind/wb_pam_auth.c 		info3->data = talloc_steal(mem_ctx, state->info3.data);
state             204 source4/winbind/wb_pam_auth.c 		*user_session_key = state->user_session_key;
state             205 source4/winbind/wb_pam_auth.c 		*lm_key = state->lm_key;
state             206 source4/winbind/wb_pam_auth.c 		*unix_username = talloc_steal(mem_ctx, state->unix_username);
state             208 source4/winbind/wb_pam_auth.c 	talloc_free(state);
state             265 source4/winbind/wb_pam_auth.c        struct pam_auth_crap_state *state =
state             268 source4/winbind/wb_pam_auth.c        talloc_free(state);
state              65 source4/winbind/wb_sid2domain.c 	struct sid2domain_state *state;
state              70 source4/winbind/wb_sid2domain.c 	state = talloc(result, struct sid2domain_state);
state              71 source4/winbind/wb_sid2domain.c 	if (state == NULL) goto failed;
state              72 source4/winbind/wb_sid2domain.c 	state->ctx = result;
state              73 source4/winbind/wb_sid2domain.c 	result->private_data = state;
state              75 source4/winbind/wb_sid2domain.c 	state->service = service;
state              76 source4/winbind/wb_sid2domain.c 	state->sid = dom_sid_dup(state, sid);
state              77 source4/winbind/wb_sid2domain.c 	if (state->sid == NULL) goto failed;
state              79 source4/winbind/wb_sid2domain.c 	state->domain = find_domain_from_sid(service, sid);
state              80 source4/winbind/wb_sid2domain.c 	if (state->domain != NULL) {
state              88 source4/winbind/wb_sid2domain.c 		ctx = wb_get_dom_info_send(state, service, lp_workgroup(service->task->lp_ctx),
state              92 source4/winbind/wb_sid2domain.c 		ctx->async.private_data = state;
state              96 source4/winbind/wb_sid2domain.c 	ctx = wb_cmd_lookupsid_send(state, service, state->sid);
state              98 source4/winbind/wb_sid2domain.c 	composite_continue(result, ctx, sid2domain_recv_name, state);
state             110 source4/winbind/wb_sid2domain.c 	struct sid2domain_state *state =
state             115 source4/winbind/wb_sid2domain.c 	state->ctx->status = wb_get_dom_info_recv(ctx, state, &info);
state             116 source4/winbind/wb_sid2domain.c 	if (!composite_is_ok(state->ctx)) return;
state             118 source4/winbind/wb_sid2domain.c 	ctx = wb_init_domain_send(state, state->service, info);
state             120 source4/winbind/wb_sid2domain.c 	composite_continue(state->ctx, ctx, sid2domain_recv_init, state);
state             125 source4/winbind/wb_sid2domain.c 	struct sid2domain_state *state =
state             130 source4/winbind/wb_sid2domain.c 	state->ctx->status = wb_cmd_lookupsid_recv(ctx, state, &name);
state             131 source4/winbind/wb_sid2domain.c 	if (!composite_is_ok(state->ctx)) return;
state             134 source4/winbind/wb_sid2domain.c 		composite_error(state->ctx, NT_STATUS_NO_SUCH_DOMAIN);
state             139 source4/winbind/wb_sid2domain.c 		state->sid->num_auths -= 1;
state             142 source4/winbind/wb_sid2domain.c 	ctx = wb_trusted_dom_info_send(state, state->service, name->domain,
state             143 source4/winbind/wb_sid2domain.c 				       state->sid);
state             145 source4/winbind/wb_sid2domain.c 	composite_continue(state->ctx, ctx, sid2domain_recv_trusted_dom_info,
state             146 source4/winbind/wb_sid2domain.c 			   state);
state             151 source4/winbind/wb_sid2domain.c 	struct sid2domain_state *state =
state             156 source4/winbind/wb_sid2domain.c 	state->ctx->status = wb_trusted_dom_info_recv(ctx, state, &info);
state             157 source4/winbind/wb_sid2domain.c 	if (!composite_is_ok(state->ctx)) return;
state             159 source4/winbind/wb_sid2domain.c 	ctx = wb_init_domain_send(state, state->service, info);
state             161 source4/winbind/wb_sid2domain.c 	composite_continue(state->ctx, ctx, sid2domain_recv_init, state);
state             166 source4/winbind/wb_sid2domain.c 	struct sid2domain_state *state =
state             171 source4/winbind/wb_sid2domain.c 	state->ctx->status = wb_init_domain_recv(ctx, state,
state             172 source4/winbind/wb_sid2domain.c 						 &state->domain);
state             173 source4/winbind/wb_sid2domain.c 	if (!composite_is_ok(state->ctx)) {
state             178 source4/winbind/wb_sid2domain.c 	existing = find_domain_from_sid(state->service, state->sid);
state             181 source4/winbind/wb_sid2domain.c 		talloc_free(state->domain);
state             182 source4/winbind/wb_sid2domain.c 		state->domain = existing;
state             185 source4/winbind/wb_sid2domain.c 	talloc_steal(state->service, state->domain);
state             186 source4/winbind/wb_sid2domain.c 	DLIST_ADD(state->service->domains, state->domain);
state             188 source4/winbind/wb_sid2domain.c 	composite_done(state->ctx);
state             196 source4/winbind/wb_sid2domain.c 		struct sid2domain_state *state =
state             199 source4/winbind/wb_sid2domain.c 		*result = state->domain;
state              42 source4/winbind/wb_sid2gid.c 	struct sid2gid_state *state;
state              50 source4/winbind/wb_sid2gid.c 	state = talloc(result, struct sid2gid_state);
state              51 source4/winbind/wb_sid2gid.c 	if(composite_nomem(state, result)) return result;
state              53 source4/winbind/wb_sid2gid.c 	state->ctx = result;
state              54 source4/winbind/wb_sid2gid.c 	result->private_data = state;
state              55 source4/winbind/wb_sid2gid.c 	state->service = service;
state              66 source4/winbind/wb_sid2gid.c 	composite_continue(result, ctx, sid2gid_recv_gid, state);
state              72 source4/winbind/wb_sid2gid.c 	struct sid2gid_state *state = talloc_get_type(ctx->async.private_data,
state              77 source4/winbind/wb_sid2gid.c 	state->ctx->status = wb_sids2xids_recv(ctx, &ids);
state              78 source4/winbind/wb_sid2gid.c 	if (!composite_is_ok(state->ctx)) return;
state              81 source4/winbind/wb_sid2gid.c 		composite_error(state->ctx, ids->status);
state              87 source4/winbind/wb_sid2gid.c 		state->gid = ids->unixid->id;
state              88 source4/winbind/wb_sid2gid.c 		composite_done(state->ctx);
state              90 source4/winbind/wb_sid2gid.c 		composite_error(state->ctx, NT_STATUS_INVALID_SID);
state             101 source4/winbind/wb_sid2gid.c 		struct sid2gid_state *state =
state             104 source4/winbind/wb_sid2gid.c 		*gid = state->gid;
state              42 source4/winbind/wb_sid2uid.c 	struct sid2uid_state *state;
state              50 source4/winbind/wb_sid2uid.c 	state = talloc(result, struct sid2uid_state);
state              51 source4/winbind/wb_sid2uid.c 	if (composite_nomem(state, result)) return result;
state              53 source4/winbind/wb_sid2uid.c 	state->ctx = result;
state              54 source4/winbind/wb_sid2uid.c 	result->private_data = state;
state              55 source4/winbind/wb_sid2uid.c 	state->service = service;
state              66 source4/winbind/wb_sid2uid.c 	composite_continue(result, ctx, sid2uid_recv_uid, state);
state              72 source4/winbind/wb_sid2uid.c 	struct sid2uid_state *state = talloc_get_type(ctx->async.private_data,
state              77 source4/winbind/wb_sid2uid.c 	state->ctx->status = wb_sids2xids_recv(ctx, &ids);
state              78 source4/winbind/wb_sid2uid.c 	if (!composite_is_ok(state->ctx)) return;
state              81 source4/winbind/wb_sid2uid.c 		composite_error(state->ctx, ids->status);
state              87 source4/winbind/wb_sid2uid.c 		state->uid = ids->unixid->id;
state              88 source4/winbind/wb_sid2uid.c 		composite_done(state->ctx);
state              90 source4/winbind/wb_sid2uid.c 		composite_error(state->ctx, NT_STATUS_INVALID_SID);
state             101 source4/winbind/wb_sid2uid.c 		struct sid2uid_state *state =
state             104 source4/winbind/wb_sid2uid.c 		*uid = state->uid;
state              42 source4/winbind/wb_sids2xids.c 	struct sids2xids_state *state;
state              49 source4/winbind/wb_sids2xids.c 	state = talloc(result, struct sids2xids_state);
state              50 source4/winbind/wb_sids2xids.c 	if (composite_nomem(state, result)) return result;
state              52 source4/winbind/wb_sids2xids.c 	state->ctx = result;
state              53 source4/winbind/wb_sids2xids.c 	result->private_data = state;
state              54 source4/winbind/wb_sids2xids.c 	state->service = service;
state              55 source4/winbind/wb_sids2xids.c 	state->count = count;
state              56 source4/winbind/wb_sids2xids.c 	state->ids = ids;
state              58 source4/winbind/wb_sids2xids.c 	state->ctx->status = idmap_sids_to_xids(service->idmap_ctx, mem_ctx,
state              59 source4/winbind/wb_sids2xids.c 						count, state->ids);
state              60 source4/winbind/wb_sids2xids.c 	if (!composite_is_ok(state->ctx)) return result;
state              62 source4/winbind/wb_sids2xids.c 	composite_done(state->ctx);
state              70 source4/winbind/wb_sids2xids.c 	struct sids2xids_state *state =	talloc_get_type(ctx->private_data,
state              75 source4/winbind/wb_sids2xids.c 	*ids = state->ids;
state              42 source4/winbind/wb_uid2sid.c 	struct uid2sid_state *state;
state              51 source4/winbind/wb_uid2sid.c 	state = talloc(result, struct uid2sid_state);
state              52 source4/winbind/wb_uid2sid.c 	if (composite_nomem(state, result)) return result;
state              54 source4/winbind/wb_uid2sid.c 	state->ctx = result;
state              55 source4/winbind/wb_uid2sid.c 	result->private_data = state;
state              56 source4/winbind/wb_uid2sid.c 	state->service = service;
state              71 source4/winbind/wb_uid2sid.c 	composite_continue(result, ctx, uid2sid_recv_sid, state);
state              77 source4/winbind/wb_uid2sid.c 	struct uid2sid_state *state = talloc_get_type(ctx->async.private_data,
state              81 source4/winbind/wb_uid2sid.c 	state->ctx->status = wb_xids2sids_recv(ctx, &ids);
state              82 source4/winbind/wb_uid2sid.c 	if (!composite_is_ok(state->ctx)) return;
state              85 source4/winbind/wb_uid2sid.c 		composite_error(state->ctx, ids->status);
state              89 source4/winbind/wb_uid2sid.c 	state->sid = ids->sid;
state              91 source4/winbind/wb_uid2sid.c 	composite_done(state->ctx);
state             102 source4/winbind/wb_uid2sid.c 		struct uid2sid_state *state =
state             105 source4/winbind/wb_uid2sid.c 		*sid = talloc_steal(mem_ctx, state->sid);
state              42 source4/winbind/wb_xids2sids.c 	struct xids2sids_state *state;
state              49 source4/winbind/wb_xids2sids.c 	state = talloc(mem_ctx, struct xids2sids_state);
state              50 source4/winbind/wb_xids2sids.c 	if (composite_nomem(state, result)) return result;
state              52 source4/winbind/wb_xids2sids.c 	state->ctx = result;
state              53 source4/winbind/wb_xids2sids.c 	result->private_data = state;
state              54 source4/winbind/wb_xids2sids.c 	state->service = service;
state              55 source4/winbind/wb_xids2sids.c 	state->count = count;
state              56 source4/winbind/wb_xids2sids.c 	state->ids = ids;
state              58 source4/winbind/wb_xids2sids.c 	state->ctx->status = idmap_xids_to_sids(service->idmap_ctx, mem_ctx,
state              59 source4/winbind/wb_xids2sids.c 					        count, state->ids);
state              60 source4/winbind/wb_xids2sids.c 	if (!composite_is_ok(state->ctx)) return result;
state              62 source4/winbind/wb_xids2sids.c 	composite_done(state->ctx);
state              70 source4/winbind/wb_xids2sids.c 	struct xids2sids_state *state =	talloc_get_type(ctx->private_data,
state              75 source4/winbind/wb_xids2sids.c 	*ids = state->ids;
state              59 source4/wrepl_server/wrepl_apply_records.c #define R_IS_ACTIVE(r) ((r)->state == WREPL_STATE_ACTIVE)
state              61 source4/wrepl_server/wrepl_apply_records.c #define R_IS_RELEASED(r) ((r)->state == WREPL_STATE_RELEASED)
state              63 source4/wrepl_server/wrepl_apply_records.c #define R_IS_TOMBSTONE(r) ((r)->state == WREPL_STATE_TOMBSTONE)
state             682 source4/wrepl_server/wrepl_apply_records.c 	rec->state	= replica->state;
state             727 source4/wrepl_server/wrepl_apply_records.c 	rec->state	= replica->state;
state             830 source4/wrepl_server/wrepl_apply_records.c 	merge->state		= replica->state;
state             896 source4/wrepl_server/wrepl_apply_records.c 	struct r_do_challenge_state *state = talloc_get_type(ireq->async.private_data,
state             901 source4/wrepl_server/wrepl_apply_records.c 	talloc_free(state);
state             912 source4/wrepl_server/wrepl_apply_records.c 		 nbt_name_string(state, &state->replica.name)));
state             914 source4/wrepl_server/wrepl_apply_records.c 	nbt_servers = irpc_servers_byname(state->msg_ctx, state, "nbt_server");
state             919 source4/wrepl_server/wrepl_apply_records.c 	r.in.name	= state->replica.name;
state             920 source4/wrepl_server/wrepl_apply_records.c 	r.in.num_addrs	= state->r.out.num_addrs;
state             921 source4/wrepl_server/wrepl_apply_records.c 	r.in.addrs	= talloc_array(state, struct nbtd_proxy_wins_addr, r.in.num_addrs);
state             925 source4/wrepl_server/wrepl_apply_records.c 		r.in.addrs[i].addr = state->r.out.addrs[i].addr;
state             928 source4/wrepl_server/wrepl_apply_records.c 	ireq = IRPC_CALL_SEND(state->msg_ctx, nbt_servers[0],
state             930 source4/wrepl_server/wrepl_apply_records.c 			      &r, state);
state             934 source4/wrepl_server/wrepl_apply_records.c 	ireq->async.private_data= state;
state             957 source4/wrepl_server/wrepl_apply_records.c 	struct r_do_challenge_state *state = talloc_get_type(ireq->async.private_data,
state             968 source4/wrepl_server/wrepl_apply_records.c 		 nbt_name_string(state, &state->replica.name), nt_errstr(status)));
state             972 source4/wrepl_server/wrepl_apply_records.c 		r_do_replace(state->partner, state, state->rec, &state->owner, &state->replica);
state             973 source4/wrepl_server/wrepl_apply_records.c 		talloc_free(state);
state             977 source4/wrepl_server/wrepl_apply_records.c 	for (i=0; i < state->replica.num_addresses; i++) {
state             980 source4/wrepl_server/wrepl_apply_records.c 		for (j=0; j < state->r.out.num_addrs; j++) {
state             981 source4/wrepl_server/wrepl_apply_records.c 			if (strcmp(state->replica.addresses[i].address, state->r.out.addrs[j].addr) == 0) {
state             993 source4/wrepl_server/wrepl_apply_records.c 		r_not_replace(state->partner, state, state->rec, &state->owner, &state->replica);
state             994 source4/wrepl_server/wrepl_apply_records.c 		talloc_free(state);
state             998 source4/wrepl_server/wrepl_apply_records.c 	num_rec_addrs = winsdb_addr_list_length(state->rec->addresses);
state            1002 source4/wrepl_server/wrepl_apply_records.c 		for (j=0; j < state->r.out.num_addrs; j++) {
state            1003 source4/wrepl_server/wrepl_apply_records.c 			if (strcmp(state->rec->addresses[i]->address, state->r.out.addrs[j].addr) == 0) {
state            1015 source4/wrepl_server/wrepl_apply_records.c 		status = r_do_late_release_demand(state);
state            1021 source4/wrepl_server/wrepl_apply_records.c 			talloc_free(state);
state            1026 source4/wrepl_server/wrepl_apply_records.c 	r_do_mhomed_merge(state->partner, state, state->rec, &state->owner, &state->replica);
state            1027 source4/wrepl_server/wrepl_apply_records.c 	talloc_free(state);
state            1037 source4/wrepl_server/wrepl_apply_records.c 	struct r_do_challenge_state *state;
state            1045 source4/wrepl_server/wrepl_apply_records.c 	state = talloc_zero(mem_ctx, struct r_do_challenge_state);
state            1046 source4/wrepl_server/wrepl_apply_records.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state            1047 source4/wrepl_server/wrepl_apply_records.c 	state->msg_ctx	= partner->service->task->msg_ctx;
state            1048 source4/wrepl_server/wrepl_apply_records.c 	state->partner	= partner;
state            1049 source4/wrepl_server/wrepl_apply_records.c 	state->rec	= talloc_steal(state, rec);
state            1050 source4/wrepl_server/wrepl_apply_records.c 	state->owner	= *owner;
state            1051 source4/wrepl_server/wrepl_apply_records.c 	state->replica	= *replica;
state            1053 source4/wrepl_server/wrepl_apply_records.c 	state->replica.name = *state->rec->name;
state            1054 source4/wrepl_server/wrepl_apply_records.c 	talloc_steal(state, replica->owner);
state            1055 source4/wrepl_server/wrepl_apply_records.c 	talloc_steal(state, replica->addresses);
state            1057 source4/wrepl_server/wrepl_apply_records.c 	nbt_servers = irpc_servers_byname(state->msg_ctx, state, "nbt_server");
state            1062 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.name	= *rec->name;
state            1063 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.num_addrs	= winsdb_addr_list_length(rec->addresses);
state            1064 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.addrs	= talloc_array(state, struct nbtd_proxy_wins_addr, state->r.in.num_addrs);
state            1065 source4/wrepl_server/wrepl_apply_records.c 	NT_STATUS_HAVE_NO_MEMORY(state->r.in.addrs);
state            1067 source4/wrepl_server/wrepl_apply_records.c 	addrs			= winsdb_addr_string_list(state->r.in.addrs, rec->addresses);
state            1069 source4/wrepl_server/wrepl_apply_records.c 	for (i=0; i < state->r.in.num_addrs; i++) {
state            1070 source4/wrepl_server/wrepl_apply_records.c 		state->r.in.addrs[i].addr = addrs[i];
state            1073 source4/wrepl_server/wrepl_apply_records.c 	ireq = IRPC_CALL_SEND(state->msg_ctx, nbt_servers[0],
state            1075 source4/wrepl_server/wrepl_apply_records.c 			      &state->r, state);
state            1079 source4/wrepl_server/wrepl_apply_records.c 	ireq->async.private_data= state;
state            1081 source4/wrepl_server/wrepl_apply_records.c 	talloc_steal(partner, state);
state            1093 source4/wrepl_server/wrepl_apply_records.c 	struct r_do_release_demand_state *state = talloc_get_type(ireq->async.private_data,
state            1098 source4/wrepl_server/wrepl_apply_records.c 	talloc_free(state);
state            1112 source4/wrepl_server/wrepl_apply_records.c 	struct r_do_release_demand_state *state;
state            1128 source4/wrepl_server/wrepl_apply_records.c 	state = talloc_zero(mem_ctx, struct r_do_release_demand_state);
state            1129 source4/wrepl_server/wrepl_apply_records.c 	NT_STATUS_HAVE_NO_MEMORY(state);
state            1130 source4/wrepl_server/wrepl_apply_records.c 	state->msg_ctx	= partner->service->task->msg_ctx;
state            1132 source4/wrepl_server/wrepl_apply_records.c 	nbt_servers = irpc_servers_byname(state->msg_ctx, state, "nbt_server");
state            1137 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.name	= *rec->name;
state            1138 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.num_addrs	= winsdb_addr_list_length(addresses);
state            1139 source4/wrepl_server/wrepl_apply_records.c 	state->r.in.addrs	= talloc_array(state, struct nbtd_proxy_wins_addr,
state            1140 source4/wrepl_server/wrepl_apply_records.c 					       state->r.in.num_addrs);
state            1141 source4/wrepl_server/wrepl_apply_records.c 	NT_STATUS_HAVE_NO_MEMORY(state->r.in.addrs);
state            1143 source4/wrepl_server/wrepl_apply_records.c 	addrs			= winsdb_addr_string_list(state->r.in.addrs, addresses);
state            1145 source4/wrepl_server/wrepl_apply_records.c 	for (i=0; i < state->r.in.num_addrs; i++) {
state            1146 source4/wrepl_server/wrepl_apply_records.c 		state->r.in.addrs[i].addr = addrs[i];
state            1149 source4/wrepl_server/wrepl_apply_records.c 	ireq = IRPC_CALL_SEND(state->msg_ctx, nbt_servers[0],
state            1151 source4/wrepl_server/wrepl_apply_records.c 			      &state->r, state);
state            1155 source4/wrepl_server/wrepl_apply_records.c 	ireq->async.private_data= state;
state            1157 source4/wrepl_server/wrepl_apply_records.c 	talloc_steal(partner, state);
state            1204 source4/wrepl_server/wrepl_apply_records.c 	merge->state		= replica->state;
state             160 source4/wrepl_server/wrepl_in_call.c 	name->flags		= WREPL_NAME_FLAGS(rec->type, rec->state, rec->node, rec->is_static);
state             292 source4/wrepl_server/wrepl_in_call.c 		if (rec->state == WREPL_STATE_ACTIVE || rec->state == WREPL_STATE_TOMBSTONE) {
state              58 source4/wrepl_server/wrepl_out_helpers.c 	status = wrepl_connect_recv(state->c_req);
state              61 source4/wrepl_server/wrepl_out_helpers.c 	state->req = wrepl_associate_send(state->wreplconn->sock, &state->assoc_io);
state              62 source4/wrepl_server/wrepl_out_helpers.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state              64 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.fn		= wreplsrv_out_connect_handler_req;
state              65 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.private_data	= state;
state              67 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_OUT_CONNECT_STAGE_WAIT_ASSOC_CTX;
state              76 source4/wrepl_server/wrepl_out_helpers.c 	status = wrepl_associate_recv(state->req, &state->assoc_io);
state              79 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn->assoc_ctx.peer_ctx = state->assoc_io.out.assoc_ctx;
state              80 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn->assoc_ctx.peer_major = state->assoc_io.out.major_version;
state              82 source4/wrepl_server/wrepl_out_helpers.c 	if (state->type == WINSREPL_PARTNER_PUSH) {
state              83 source4/wrepl_server/wrepl_out_helpers.c 		if (state->wreplconn->assoc_ctx.peer_major >= 5) {
state              84 source4/wrepl_server/wrepl_out_helpers.c 			state->wreplconn->partner->push.wreplconn = state->wreplconn;
state              85 source4/wrepl_server/wrepl_out_helpers.c 			talloc_steal(state->wreplconn->partner, state->wreplconn);
state              87 source4/wrepl_server/wrepl_out_helpers.c 			state->type = WINSREPL_PARTNER_NONE;
state              89 source4/wrepl_server/wrepl_out_helpers.c 	} else if (state->type == WINSREPL_PARTNER_PULL) {
state              90 source4/wrepl_server/wrepl_out_helpers.c 		state->wreplconn->partner->pull.wreplconn = state->wreplconn;
state              91 source4/wrepl_server/wrepl_out_helpers.c 		talloc_steal(state->wreplconn->partner, state->wreplconn);
state              94 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_OUT_CONNECT_STAGE_DONE;
state             101 source4/wrepl_server/wrepl_out_helpers.c 	struct composite_context *c = state->c;
state             103 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->stage) {
state             105 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_out_connect_wait_socket(state);
state             108 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_out_connect_wait_assoc_ctx(state);
state             109 source4/wrepl_server/wrepl_out_helpers.c 		c->state  = COMPOSITE_STATE_DONE;
state             116 source4/wrepl_server/wrepl_out_helpers.c 		c->state = COMPOSITE_STATE_ERROR;
state             119 source4/wrepl_server/wrepl_out_helpers.c 	if (c->state >= COMPOSITE_STATE_DONE && c->async.fn) {
state             126 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_out_connect_state *state = talloc_get_type(creq->async.private_data,
state             128 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_out_connect_handler(state);
state             134 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_out_connect_state *state = talloc_get_type(req->async.private_data,
state             136 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_out_connect_handler(state);
state             146 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_out_connect_state *state = NULL;
state             153 source4/wrepl_server/wrepl_out_helpers.c 	state = talloc_zero(c, struct wreplsrv_out_connect_state);
state             154 source4/wrepl_server/wrepl_out_helpers.c 	if (!state) goto failed;
state             155 source4/wrepl_server/wrepl_out_helpers.c 	state->c	= c;
state             156 source4/wrepl_server/wrepl_out_helpers.c 	state->type	= type;
state             158 source4/wrepl_server/wrepl_out_helpers.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             160 source4/wrepl_server/wrepl_out_helpers.c 	c->private_data	= state;
state             175 source4/wrepl_server/wrepl_out_helpers.c 			state->stage	= WREPLSRV_OUT_CONNECT_STAGE_DONE;
state             176 source4/wrepl_server/wrepl_out_helpers.c 			state->wreplconn= wreplconn;
state             180 source4/wrepl_server/wrepl_out_helpers.c 			state->stage	= WREPLSRV_OUT_CONNECT_STAGE_DONE;
state             181 source4/wrepl_server/wrepl_out_helpers.c 			state->wreplconn= NULL;
state             190 source4/wrepl_server/wrepl_out_helpers.c 	wreplconn = talloc_zero(state, struct wreplsrv_out_connection);
state             198 source4/wrepl_server/wrepl_out_helpers.c 	state->stage	= WREPLSRV_OUT_CONNECT_STAGE_WAIT_SOCKET;
state             199 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn= wreplconn;
state             200 source4/wrepl_server/wrepl_out_helpers.c 	state->c_req	= wrepl_connect_send(wreplconn->sock,
state             203 source4/wrepl_server/wrepl_out_helpers.c 	if (!state->c_req) goto failed;
state             205 source4/wrepl_server/wrepl_out_helpers.c 	state->c_req->async.fn			= wreplsrv_out_connect_handler_creq;
state             206 source4/wrepl_server/wrepl_out_helpers.c 	state->c_req->async.private_data	= state;
state             222 source4/wrepl_server/wrepl_out_helpers.c 		struct wreplsrv_out_connect_state *state = talloc_get_type(c->private_data,
state             224 source4/wrepl_server/wrepl_out_helpers.c 		if (state->wreplconn) {
state             225 source4/wrepl_server/wrepl_out_helpers.c 			*wreplconn = talloc_reference(mem_ctx, state->wreplconn);
state             271 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_out_connect_recv(state->creq, state, &state->wreplconn);
state             274 source4/wrepl_server/wrepl_out_helpers.c 	state->table_io.in.assoc_ctx = state->wreplconn->assoc_ctx.peer_ctx;
state             275 source4/wrepl_server/wrepl_out_helpers.c 	state->req = wrepl_pull_table_send(state->wreplconn->sock, &state->table_io);
state             276 source4/wrepl_server/wrepl_out_helpers.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             278 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.fn		= wreplsrv_pull_table_handler_req;
state             279 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.private_data	= state;
state             281 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PULL_TABLE_STAGE_WAIT_TABLE_REPLY;
state             290 source4/wrepl_server/wrepl_out_helpers.c 	status = wrepl_pull_table_recv(state->req, state, &state->table_io);
state             293 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PULL_TABLE_STAGE_DONE;
state             300 source4/wrepl_server/wrepl_out_helpers.c 	struct composite_context *c = state->c;
state             302 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->stage) {
state             304 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_table_wait_connection(state);
state             307 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_table_wait_table_reply(state);
state             308 source4/wrepl_server/wrepl_out_helpers.c 		c->state  = COMPOSITE_STATE_DONE;
state             315 source4/wrepl_server/wrepl_out_helpers.c 		c->state = COMPOSITE_STATE_ERROR;
state             318 source4/wrepl_server/wrepl_out_helpers.c 	if (c->state >= COMPOSITE_STATE_DONE && c->async.fn) {
state             325 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_table_state *state = talloc_get_type(creq->async.private_data,
state             327 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_table_handler(state);
state             333 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_table_state *state = talloc_get_type(req->async.private_data,
state             335 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_table_handler(state);
state             343 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_table_state *state = NULL;
state             348 source4/wrepl_server/wrepl_out_helpers.c 	state = talloc_zero(c, struct wreplsrv_pull_table_state);
state             349 source4/wrepl_server/wrepl_out_helpers.c 	if (!state) goto failed;
state             350 source4/wrepl_server/wrepl_out_helpers.c 	state->c	= c;
state             351 source4/wrepl_server/wrepl_out_helpers.c 	state->io	= io;
state             353 source4/wrepl_server/wrepl_out_helpers.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             355 source4/wrepl_server/wrepl_out_helpers.c 	c->private_data	= state;
state             358 source4/wrepl_server/wrepl_out_helpers.c 		state->table_io.out.num_partners	= io->in.num_owners;
state             359 source4/wrepl_server/wrepl_out_helpers.c 		state->table_io.out.partners		= io->in.owners;
state             360 source4/wrepl_server/wrepl_out_helpers.c 		state->stage				= WREPLSRV_PULL_TABLE_STAGE_DONE;
state             365 source4/wrepl_server/wrepl_out_helpers.c 	state->stage    = WREPLSRV_PULL_TABLE_STAGE_WAIT_CONNECTION;
state             366 source4/wrepl_server/wrepl_out_helpers.c 	state->creq	= wreplsrv_out_connect_send(io->in.partner, WINSREPL_PARTNER_PULL, NULL);
state             367 source4/wrepl_server/wrepl_out_helpers.c 	if (!state->creq) goto failed;
state             369 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.fn		= wreplsrv_pull_table_handler_creq;
state             370 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.private_data	= state;
state             386 source4/wrepl_server/wrepl_out_helpers.c 		struct wreplsrv_pull_table_state *state = talloc_get_type(c->private_data,
state             388 source4/wrepl_server/wrepl_out_helpers.c 		io->out.num_owners	= state->table_io.out.num_partners;
state             389 source4/wrepl_server/wrepl_out_helpers.c 		io->out.owners		= talloc_reference(mem_ctx, state->table_io.out.partners);
state             430 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_out_connect_recv(state->creq, state, &state->wreplconn);
state             433 source4/wrepl_server/wrepl_out_helpers.c 	state->pull_io.in.assoc_ctx	= state->wreplconn->assoc_ctx.peer_ctx;
state             434 source4/wrepl_server/wrepl_out_helpers.c 	state->pull_io.in.partner	= state->io->in.owner;
state             435 source4/wrepl_server/wrepl_out_helpers.c 	state->req = wrepl_pull_names_send(state->wreplconn->sock, &state->pull_io);
state             436 source4/wrepl_server/wrepl_out_helpers.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             438 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.fn		= wreplsrv_pull_names_handler_req;
state             439 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.private_data	= state;
state             441 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PULL_NAMES_STAGE_WAIT_SEND_REPLY;
state             450 source4/wrepl_server/wrepl_out_helpers.c 	status = wrepl_pull_names_recv(state->req, state, &state->pull_io);
state             453 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PULL_NAMES_STAGE_DONE;
state             460 source4/wrepl_server/wrepl_out_helpers.c 	struct composite_context *c = state->c;
state             462 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->stage) {
state             464 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_names_wait_connection(state);
state             467 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_names_wait_send_reply(state);
state             468 source4/wrepl_server/wrepl_out_helpers.c 		c->state  = COMPOSITE_STATE_DONE;
state             475 source4/wrepl_server/wrepl_out_helpers.c 		c->state = COMPOSITE_STATE_ERROR;
state             478 source4/wrepl_server/wrepl_out_helpers.c 	if (c->state >= COMPOSITE_STATE_DONE && c->async.fn) {
state             485 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_names_state *state = talloc_get_type(creq->async.private_data,
state             487 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_names_handler(state);
state             493 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_names_state *state = talloc_get_type(req->async.private_data,
state             495 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_names_handler(state);
state             503 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_names_state *state = NULL;
state             511 source4/wrepl_server/wrepl_out_helpers.c 	state = talloc_zero(c, struct wreplsrv_pull_names_state);
state             512 source4/wrepl_server/wrepl_out_helpers.c 	if (!state) goto failed;
state             513 source4/wrepl_server/wrepl_out_helpers.c 	state->c	= c;
state             514 source4/wrepl_server/wrepl_out_helpers.c 	state->io	= io;
state             516 source4/wrepl_server/wrepl_out_helpers.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             518 source4/wrepl_server/wrepl_out_helpers.c 	c->private_data	= state;
state             520 source4/wrepl_server/wrepl_out_helpers.c 	state->stage	= WREPLSRV_PULL_NAMES_STAGE_WAIT_CONNECTION;
state             521 source4/wrepl_server/wrepl_out_helpers.c 	state->creq	= wreplsrv_out_connect_send(io->in.partner, partner_type, io->in.wreplconn);
state             522 source4/wrepl_server/wrepl_out_helpers.c 	if (!state->creq) goto failed;
state             524 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.fn		= wreplsrv_pull_names_handler_creq;
state             525 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.private_data	= state;
state             541 source4/wrepl_server/wrepl_out_helpers.c 		struct wreplsrv_pull_names_state *state = talloc_get_type(c->private_data,
state             543 source4/wrepl_server/wrepl_out_helpers.c 		io->out.num_names	= state->pull_io.out.num_names;
state             544 source4/wrepl_server/wrepl_out_helpers.c 		io->out.names		= talloc_reference(mem_ctx, state->pull_io.out.names);
state             582 source4/wrepl_server/wrepl_out_helpers.c 	for (i=state->current; i < state->table_io.out.num_owners; i++) {
state             583 source4/wrepl_server/wrepl_out_helpers.c 		current_owner = wreplsrv_find_owner(state->io->in.partner->service,
state             584 source4/wrepl_server/wrepl_out_helpers.c 						    state->io->in.partner->pull.table,
state             585 source4/wrepl_server/wrepl_out_helpers.c 						    state->table_io.out.owners[i].address);
state             587 source4/wrepl_server/wrepl_out_helpers.c 		local_owner = wreplsrv_find_owner(state->io->in.partner->service,
state             588 source4/wrepl_server/wrepl_out_helpers.c 						  state->io->in.partner->service->table,
state             589 source4/wrepl_server/wrepl_out_helpers.c 						  state->table_io.out.owners[i].address);
state             616 source4/wrepl_server/wrepl_out_helpers.c 	state->current = i;
state             619 source4/wrepl_server/wrepl_out_helpers.c 		state->names_io.in.partner		= state->io->in.partner;
state             620 source4/wrepl_server/wrepl_out_helpers.c 		state->names_io.in.wreplconn		= state->io->in.wreplconn;
state             621 source4/wrepl_server/wrepl_out_helpers.c 		state->names_io.in.owner		= current_owner->owner;
state             622 source4/wrepl_server/wrepl_out_helpers.c 		state->names_io.in.owner.min_version	= old_max_version + 1;
state             623 source4/wrepl_server/wrepl_out_helpers.c 		state->creq = wreplsrv_pull_names_send(state, &state->names_io);
state             624 source4/wrepl_server/wrepl_out_helpers.c 		NT_STATUS_HAVE_NO_MEMORY(state->creq);
state             626 source4/wrepl_server/wrepl_out_helpers.c 		state->creq->async.fn		= wreplsrv_pull_cycle_handler_creq;
state             627 source4/wrepl_server/wrepl_out_helpers.c 		state->creq->async.private_data	= state;
state             639 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_cycle_next_owner_do_work(state);
state             641 source4/wrepl_server/wrepl_out_helpers.c 		state->stage = WREPLSRV_PULL_CYCLE_STAGE_DONE;
state             643 source4/wrepl_server/wrepl_out_helpers.c 		state->stage = WREPLSRV_PULL_CYCLE_STAGE_WAIT_SEND_REPLIES;
state             647 source4/wrepl_server/wrepl_out_helpers.c 	if (state->stage == WREPLSRV_PULL_CYCLE_STAGE_DONE && state->io->in.wreplconn) {
state             648 source4/wrepl_server/wrepl_out_helpers.c 		state->assoc_stop_io.in.assoc_ctx	= state->io->in.wreplconn->assoc_ctx.peer_ctx;
state             649 source4/wrepl_server/wrepl_out_helpers.c 		state->assoc_stop_io.in.reason		= 0;
state             650 source4/wrepl_server/wrepl_out_helpers.c 		state->req = wrepl_associate_stop_send(state->io->in.wreplconn->sock, &state->assoc_stop_io);
state             651 source4/wrepl_server/wrepl_out_helpers.c 		NT_STATUS_HAVE_NO_MEMORY(state->req);
state             653 source4/wrepl_server/wrepl_out_helpers.c 		state->req->async.fn		= wreplsrv_pull_cycle_handler_req;
state             654 source4/wrepl_server/wrepl_out_helpers.c 		state->req->async.private_data	= state;
state             656 source4/wrepl_server/wrepl_out_helpers.c 		state->stage = WREPLSRV_PULL_CYCLE_STAGE_WAIT_STOP_ASSOC;
state             667 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_table_recv(state->creq, state, &state->table_io);
state             671 source4/wrepl_server/wrepl_out_helpers.c 	for (i=0; i < state->table_io.out.num_owners; i++) {
state             672 source4/wrepl_server/wrepl_out_helpers.c 		status = wreplsrv_add_table(state->io->in.partner->service,
state             673 source4/wrepl_server/wrepl_out_helpers.c 					    state->io->in.partner, 
state             674 source4/wrepl_server/wrepl_out_helpers.c 					    &state->io->in.partner->pull.table,
state             675 source4/wrepl_server/wrepl_out_helpers.c 					    state->table_io.out.owners[i].address,
state             676 source4/wrepl_server/wrepl_out_helpers.c 					    state->table_io.out.owners[i].max_version);
state             680 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_cycle_next_owner_wrapper(state);
state             690 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_apply_records(state->io->in.partner,
state             691 source4/wrepl_server/wrepl_out_helpers.c 					&state->names_io.in.owner,
state             692 source4/wrepl_server/wrepl_out_helpers.c 					state->names_io.out.num_names,
state             693 source4/wrepl_server/wrepl_out_helpers.c 					state->names_io.out.names);
state             696 source4/wrepl_server/wrepl_out_helpers.c 	talloc_free(state->names_io.out.names);
state             697 source4/wrepl_server/wrepl_out_helpers.c 	ZERO_STRUCT(state->names_io);
state             706 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_names_recv(state->creq, state, &state->names_io);
state             714 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_cycle_apply_records(state);
state             717 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_pull_cycle_next_owner_wrapper(state);
state             727 source4/wrepl_server/wrepl_out_helpers.c 	status = wrepl_associate_stop_recv(state->req, &state->assoc_stop_io);
state             730 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PULL_CYCLE_STAGE_DONE;
state             737 source4/wrepl_server/wrepl_out_helpers.c 	struct composite_context *c = state->c;
state             739 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->stage) {
state             741 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_cycle_wait_table_reply(state);
state             744 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_cycle_wait_send_replies(state);
state             747 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_pull_cycle_wait_stop_assoc(state);
state             753 source4/wrepl_server/wrepl_out_helpers.c 	if (state->stage == WREPLSRV_PULL_CYCLE_STAGE_DONE) {
state             754 source4/wrepl_server/wrepl_out_helpers.c 		c->state  = COMPOSITE_STATE_DONE;
state             758 source4/wrepl_server/wrepl_out_helpers.c 		c->state = COMPOSITE_STATE_ERROR;
state             761 source4/wrepl_server/wrepl_out_helpers.c 	if (c->state >= COMPOSITE_STATE_DONE && c->async.fn) {
state             768 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_cycle_state *state = talloc_get_type(creq->async.private_data,
state             770 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_cycle_handler(state);
state             776 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_cycle_state *state = talloc_get_type(req->async.private_data,
state             778 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_pull_cycle_handler(state);
state             786 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_pull_cycle_state *state = NULL;
state             791 source4/wrepl_server/wrepl_out_helpers.c 	state = talloc_zero(c, struct wreplsrv_pull_cycle_state);
state             792 source4/wrepl_server/wrepl_out_helpers.c 	if (!state) goto failed;
state             793 source4/wrepl_server/wrepl_out_helpers.c 	state->c	= c;
state             794 source4/wrepl_server/wrepl_out_helpers.c 	state->io	= io;
state             796 source4/wrepl_server/wrepl_out_helpers.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state             798 source4/wrepl_server/wrepl_out_helpers.c 	c->private_data	= state;
state             800 source4/wrepl_server/wrepl_out_helpers.c 	state->stage	= WREPLSRV_PULL_CYCLE_STAGE_WAIT_TABLE_REPLY;
state             801 source4/wrepl_server/wrepl_out_helpers.c 	state->table_io.in.partner	= io->in.partner;
state             802 source4/wrepl_server/wrepl_out_helpers.c 	state->table_io.in.num_owners	= io->in.num_owners;
state             803 source4/wrepl_server/wrepl_out_helpers.c 	state->table_io.in.owners	= io->in.owners;
state             804 source4/wrepl_server/wrepl_out_helpers.c 	state->creq = wreplsrv_pull_table_send(state, &state->table_io);
state             805 source4/wrepl_server/wrepl_out_helpers.c 	if (!state->creq) goto failed;
state             807 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.fn		= wreplsrv_pull_cycle_handler_creq;
state             808 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.private_data	= state;
state             851 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_service *service = state->io->in.partner->service;
state             852 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_packet *req = &state->req_packet;
state             853 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_replication *repl_out = &state->req_packet.message.replication;
state             854 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_table *table_out = &state->req_packet.message.replication.info.table;
state             863 source4/wrepl_server/wrepl_out_helpers.c 	req->assoc_ctx	= state->wreplconn->assoc_ctx.peer_ctx;
state             866 source4/wrepl_server/wrepl_out_helpers.c 	repl_out->command = state->command;
state             868 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_fill_wrepl_table(service, state, table_out,
state             869 source4/wrepl_server/wrepl_out_helpers.c 					   service->wins_db->local_owner, state->full_table);
state             873 source4/wrepl_server/wrepl_out_helpers.c 	state->req = wrepl_request_send(state->wreplconn->sock, req, NULL);
state             874 source4/wrepl_server/wrepl_out_helpers.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             884 source4/wrepl_server/wrepl_out_helpers.c 	sock = state->wreplconn->sock->sock;
state             885 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn->sock->sock = NULL;
state             886 source4/wrepl_server/wrepl_out_helpers.c 	talloc_steal(state, sock);
state             894 source4/wrepl_server/wrepl_out_helpers.c 	packet = state->wreplconn->sock->packet;
state             895 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn->sock->packet = NULL;
state             896 source4/wrepl_server/wrepl_out_helpers.c 	talloc_steal(state, packet);
state             902 source4/wrepl_server/wrepl_out_helpers.c 	fde_flags = event_get_fd_flags(state->wreplconn->sock->event.fde);
state             907 source4/wrepl_server/wrepl_out_helpers.c 	talloc_free(state->wreplconn->sock);
state             908 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn->sock = NULL;
state             917 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_in_connection_merge(state->io->in.partner,
state             923 source4/wrepl_server/wrepl_out_helpers.c 	wrepl_in->assoc_ctx.peer_ctx	= state->wreplconn->assoc_ctx.peer_ctx;
state             927 source4/wrepl_server/wrepl_out_helpers.c 	talloc_free(state->wreplconn);
state             928 source4/wrepl_server/wrepl_out_helpers.c 	state->wreplconn = NULL;
state             930 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PUSH_NOTIFY_STAGE_DONE;
state             937 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_service *service = state->io->in.partner->service;
state             938 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_packet *req = &state->req_packet;
state             939 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_replication *repl_out = &state->req_packet.message.replication;
state             940 source4/wrepl_server/wrepl_out_helpers.c 	struct wrepl_table *table_out = &state->req_packet.message.replication.info.table;
state             944 source4/wrepl_server/wrepl_out_helpers.c 	req->assoc_ctx	= state->wreplconn->assoc_ctx.peer_ctx;
state             947 source4/wrepl_server/wrepl_out_helpers.c 	repl_out->command = state->command;
state             949 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_fill_wrepl_table(service, state, table_out,
state             950 source4/wrepl_server/wrepl_out_helpers.c 					   service->wins_db->local_owner, state->full_table);
state             954 source4/wrepl_server/wrepl_out_helpers.c 	state->ctrl.send_only		= true;
state             956 source4/wrepl_server/wrepl_out_helpers.c 	state->req = wrepl_request_send(state->wreplconn->sock, req, &state->ctrl);
state             957 source4/wrepl_server/wrepl_out_helpers.c 	NT_STATUS_HAVE_NO_MEMORY(state->req);
state             959 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.fn		= wreplsrv_push_notify_handler_req;
state             960 source4/wrepl_server/wrepl_out_helpers.c 	state->req->async.private_data	= state;
state             962 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PUSH_NOTIFY_STAGE_WAIT_INFORM;
state             971 source4/wrepl_server/wrepl_out_helpers.c 	status = wreplsrv_out_connect_recv(state->creq, state, &state->wreplconn);
state             975 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->command) {
state             977 source4/wrepl_server/wrepl_out_helpers.c 		if (state->wreplconn->assoc_ctx.peer_major < 5) {
state             978 source4/wrepl_server/wrepl_out_helpers.c 			state->command = WREPL_REPL_UPDATE;
state             982 source4/wrepl_server/wrepl_out_helpers.c 		if (state->wreplconn->assoc_ctx.peer_major < 5) {
state             983 source4/wrepl_server/wrepl_out_helpers.c 			state->command = WREPL_REPL_UPDATE2;
state             990 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->command) {
state             992 source4/wrepl_server/wrepl_out_helpers.c 		state->full_table = true;
state             993 source4/wrepl_server/wrepl_out_helpers.c 		return wreplsrv_push_notify_update(state);
state             995 source4/wrepl_server/wrepl_out_helpers.c 		state->full_table = false;
state             996 source4/wrepl_server/wrepl_out_helpers.c 		return wreplsrv_push_notify_update(state);
state             998 source4/wrepl_server/wrepl_out_helpers.c 		state->full_table = true;
state             999 source4/wrepl_server/wrepl_out_helpers.c 		return wreplsrv_push_notify_inform(state);
state            1001 source4/wrepl_server/wrepl_out_helpers.c 		state->full_table = false;
state            1002 source4/wrepl_server/wrepl_out_helpers.c 		return wreplsrv_push_notify_inform(state);
state            1014 source4/wrepl_server/wrepl_out_helpers.c 	status =  wrepl_request_recv(state->req, state, NULL);
state            1017 source4/wrepl_server/wrepl_out_helpers.c 	state->stage = WREPLSRV_PUSH_NOTIFY_STAGE_DONE;
state            1023 source4/wrepl_server/wrepl_out_helpers.c 	struct composite_context *c = state->c;
state            1025 source4/wrepl_server/wrepl_out_helpers.c 	switch (state->stage) {
state            1027 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_push_notify_wait_connect(state);
state            1030 source4/wrepl_server/wrepl_out_helpers.c 		c->status = wreplsrv_push_notify_wait_inform(state);
state            1036 source4/wrepl_server/wrepl_out_helpers.c 	if (state->stage == WREPLSRV_PUSH_NOTIFY_STAGE_DONE) {
state            1037 source4/wrepl_server/wrepl_out_helpers.c 		c->state  = COMPOSITE_STATE_DONE;
state            1041 source4/wrepl_server/wrepl_out_helpers.c 		c->state = COMPOSITE_STATE_ERROR;
state            1044 source4/wrepl_server/wrepl_out_helpers.c 	if (c->state >= COMPOSITE_STATE_DONE && c->async.fn) {
state            1051 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_push_notify_state *state = talloc_get_type(creq->async.private_data,
state            1053 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_push_notify_handler(state);
state            1059 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_push_notify_state *state = talloc_get_type(req->async.private_data,
state            1061 source4/wrepl_server/wrepl_out_helpers.c 	wreplsrv_push_notify_handler(state);
state            1069 source4/wrepl_server/wrepl_out_helpers.c 	struct wreplsrv_push_notify_state *state = NULL;
state            1075 source4/wrepl_server/wrepl_out_helpers.c 	state = talloc_zero(c, struct wreplsrv_push_notify_state);
state            1076 source4/wrepl_server/wrepl_out_helpers.c 	if (!state) goto failed;
state            1077 source4/wrepl_server/wrepl_out_helpers.c 	state->c	= c;
state            1078 source4/wrepl_server/wrepl_out_helpers.c 	state->io	= io;
state            1084 source4/wrepl_server/wrepl_out_helpers.c 			state->command	= WREPL_REPL_INFORM2;
state            1086 source4/wrepl_server/wrepl_out_helpers.c 			state->command	= WREPL_REPL_INFORM;
state            1092 source4/wrepl_server/wrepl_out_helpers.c 			state->command	= WREPL_REPL_UPDATE2;
state            1094 source4/wrepl_server/wrepl_out_helpers.c 			state->command	= WREPL_REPL_UPDATE;
state            1098 source4/wrepl_server/wrepl_out_helpers.c 	c->state	= COMPOSITE_STATE_IN_PROGRESS;
state            1100 source4/wrepl_server/wrepl_out_helpers.c 	c->private_data	= state;
state            1102 source4/wrepl_server/wrepl_out_helpers.c 	state->stage	= WREPLSRV_PUSH_NOTIFY_STAGE_WAIT_CONNECT;
state            1103 source4/wrepl_server/wrepl_out_helpers.c 	state->creq	= wreplsrv_out_connect_send(io->in.partner, partner_type, NULL);
state            1104 source4/wrepl_server/wrepl_out_helpers.c 	if (!state->creq) goto failed;
state            1106 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.fn		= wreplsrv_push_notify_handler_creq;
state            1107 source4/wrepl_server/wrepl_out_helpers.c 	state->creq->async.private_data	= state;
state             103 source4/wrepl_server/wrepl_scavenging.c 		switch (rec->state) {
state             119 source4/wrepl_server/wrepl_scavenging.c 				rec->state	= WREPL_STATE_RELEASED;
state             135 source4/wrepl_server/wrepl_scavenging.c 				rec->state	= WREPL_STATE_ACTIVE;
state             146 source4/wrepl_server/wrepl_scavenging.c 			rec->state	= WREPL_STATE_TOMBSTONE;
state             157 source4/wrepl_server/wrepl_scavenging.c 			rec->state	= WREPL_STATE_TOMBSTONE;
state             254 source4/wrepl_server/wrepl_scavenging.c 		switch (rec->state) {
state             263 source4/wrepl_server/wrepl_scavenging.c 			rec->state	= WREPL_STATE_TOMBSTONE;
state             374 source4/wrepl_server/wrepl_scavenging.c 		rec->state	= WREPL_STATE_TOMBSTONE;
state             460 source4/wrepl_server/wrepl_scavenging.c 		if (rec->state != WREPL_STATE_ACTIVE) {