login-proxy.h revision 68a4946b12583b88fa802e52ebee45cd96056772
#ifndef LOGIN_PROXY_H
#define LOGIN_PROXY_H
struct login_proxy;
/* Called when new input comes from proxy. */
void *context);
/* Create a proxy to given host. Returns NULL if failed. Given callback is
called when new input is available from proxy. */
struct login_proxy *
#ifdef CONTEXT_TYPE_SAFETY
#else
#endif
/* Free the proxy. This should be called if authentication fails. */
connection. */
/* Detach proxy from client. This is done after the authentication is
successful and all that is left is the dummy proxying. */
struct ostream *client_output);
/* Return number of active detached login proxies */
unsigned int login_proxy_get_count(void) ATTR_PURE;
void login_proxy_deinit(void);
#endif