Lines Matching refs:auth_iovec
114 if (b->auth_index >= ELEMENTSOF(b->auth_iovec)) in bus_socket_auth_needs_write()
117 for (i = b->auth_index; i < ELEMENTSOF(b->auth_iovec); i++) { in bus_socket_auth_needs_write()
118 struct iovec *j = b->auth_iovec + i; in bus_socket_auth_needs_write()
137 …k = writev(b->output_fd, b->auth_iovec + b->auth_index, ELEMENTSOF(b->auth_iovec) - b->auth_index); in bus_socket_write_auth()
140 .msg_iov = b->auth_iovec + b->auth_index, in bus_socket_write_auth()
141 .msg_iovlen = ELEMENTSOF(b->auth_iovec) - b->auth_index, in bus_socket_write_auth()
147 …k = writev(b->output_fd, b->auth_iovec + b->auth_index, ELEMENTSOF(b->auth_iovec) - b->auth_index); in bus_socket_write_auth()
154 iovec_advance(b->auth_iovec, &b->auth_index, (size_t) k); in bus_socket_write_auth()
350 p = malloc(b->auth_iovec[0].iov_len + l); in bus_socket_auth_write()
354 memcpy_safe(p, b->auth_iovec[0].iov_base, b->auth_iovec[0].iov_len); in bus_socket_auth_write()
355 memcpy(p + b->auth_iovec[0].iov_len, t, l); in bus_socket_auth_write()
357 b->auth_iovec[0].iov_base = p; in bus_socket_auth_write()
358 b->auth_iovec[0].iov_len += l; in bus_socket_auth_write()
668 … b->auth_iovec[i++] = IOVEC_MAKE((char*) sasl_auth_anonymous, sizeof(sasl_auth_anonymous) - 1); in bus_socket_start_auth_client()
670 … b->auth_iovec[i++] = IOVEC_MAKE((char*) sasl_auth_external, sizeof(sasl_auth_external) - 1); in bus_socket_start_auth_client()
673 b->auth_iovec[i++] = IOVEC_MAKE_STRING(sasl_negotiate_unix_fd); in bus_socket_start_auth_client()
675 b->auth_iovec[i++] = IOVEC_MAKE_STRING(sasl_begin); in bus_socket_start_auth_client()