diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lib-master/master-login-auth.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-master/master-login-auth.h')
-rw-r--r-- | src/lib-master/master-login-auth.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib-master/master-login-auth.h b/src/lib-master/master-login-auth.h new file mode 100644 index 0000000..d08732b --- /dev/null +++ b/src/lib-master/master-login-auth.h @@ -0,0 +1,28 @@ +#ifndef MASTER_LOGIN_AUTH_H +#define MASTER_LOGIN_AUTH_H + +struct master_auth_request; + +typedef void +master_login_auth_request_callback_t(const char *const *auth_args, + const char *errormsg, void *context); + +struct master_login_auth * +master_login_auth_init(const char *auth_socket_path, bool request_auth_token); +void master_login_auth_deinit(struct master_login_auth **auth); +void master_login_auth_disconnect(struct master_login_auth *auth); + +/* Set timeout for requests. */ +void master_login_auth_set_timeout(struct master_login_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 master_login_auth_request(struct master_login_auth *auth, + const struct master_auth_request *req, + master_login_auth_request_callback_t *callback, + void *context); +unsigned int master_login_auth_request_count(struct master_login_auth *auth); + +#endif |