Home | History | Annotate | Download | only in dropbear

Lines Matching refs:ChanSess

46 int x11req(struct ChanSess * chansess) {
51 if (chansess->x11listener != NULL) {
55 chansess->x11singleconn = buf_getbool(ses.payload);
56 chansess->x11authprot = buf_getstring(ses.payload, NULL);
57 chansess->x11authcookie = buf_getstring(ses.payload, NULL);
58 chansess->x11screennum = buf_getint(ses.payload);
67 chansess->x11port = bindport(fd);
68 if (chansess->x11port < 0) {
83 chansess->x11listener = new_listener( &fd, 1, 0, chansess, x11accept, NULL);
84 if (chansess->x11listener == NULL) {
92 m_free(chansess->x11authprot);
93 m_free(chansess->x11authcookie);
107 struct ChanSess * chansess = (struct ChanSess *)(listener->typedata);
117 if (chansess->x11singleconn) {
118 x11cleanup(chansess);
129 void x11setauth(struct ChanSess *chansess) {
135 if (chansess->x11listener == NULL) {
141 chansess->x11port - X11BASEPORT, chansess->x11screennum);
151 chansess->x11port - X11BASEPORT, chansess->x11screennum);
161 display, chansess->x11authprot, chansess->x11authcookie);
168 void x11cleanup(struct ChanSess *chansess) {
170 m_free(chansess->x11authprot);
171 m_free(chansess->x11authcookie);
173 TRACE(("chansess %s", chansess))
174 if (chansess->x11listener != NULL) {
175 remove_listener(chansess->x11listener);
176 chansess->x11listener = NULL;