#ifndef LOGIN_CLIENT_H
#define LOGIN_CLIENT_H
+/* This login-client API is used by the untrusted pre-login processes (e.g.
+ login-common). It connects to the post-login process (e.g. imap), which uses
+ login-server API to handle the login request. */
+
#include "net.h"
struct master_service;
#ifndef LOGIN_SERVER_AUTH_H
#define LOGIN_SERVER_AUTH_H
+/* Used for connecting to auth process via auth-master socket and sending
+ REQUEST commands to finish login requests. FIXME: This should be moved
+ to lib-auth/auth-master. */
+
struct login_request;
typedef void
#ifndef LOGIN_SERVER_H
#define LOGIN_SERVER_H
+/* This login-server API is used by post-login processes (e.g. imap) to accept
+ a login request sent by the pre-login processes via login-client API. */
+
#include "login-client.h"
#define LOGIN_SERVER_POSTLOGIN_TIMEOUT_DEFAULT 60