login-proxy.h revision f30577ff7cf29858f1878abe963b4f40a436434f
#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 *
/* Free the proxy. This should be called if authentication fails. */
/* 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);
void login_proxy_deinit(void);
#endif