HEX
Server: LiteSpeed
System: Linux ha007.mymail.zone 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User: s1047229 (1385)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/include/dovecot/login-server-auth.h
#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
login_server_auth_request_callback_t(const char *const *auth_args,
				     const char *errormsg, void *context);

struct login_server_auth *
login_server_auth_init(const char *auth_socket_path, bool request_auth_token);
void login_server_auth_deinit(struct login_server_auth **auth);
void login_server_auth_disconnect(struct login_server_auth *auth);

/* Set timeout for requests. */
void login_server_auth_set_timeout(struct login_server_auth *auth,
				   unsigned int msecs);

/* req has been sent by login process. this function finishes authentication
   by performing verifying from auth that req is valid and doing the userdb
   lookup. */
void login_server_auth_request(struct login_server_auth *auth,
			       const struct login_request *req,
			       login_server_auth_request_callback_t *callback,
			       void *context);
unsigned int login_server_auth_request_count(struct login_server_auth *auth);

#endif