diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /src/auth/auth-client-connection.h | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/auth/auth-client-connection.h')
-rw-r--r-- | src/auth/auth-client-connection.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/auth/auth-client-connection.h b/src/auth/auth-client-connection.h new file mode 100644 index 0000000..7b10f76 --- /dev/null +++ b/src/auth/auth-client-connection.h @@ -0,0 +1,37 @@ +#ifndef AUTH_CLIENT_CONNECTION_H +#define AUTH_CLIENT_CONNECTION_H + +#include "master-auth.h" + +struct auth_client_connection { + struct auth_client_connection *prev, *next; + struct auth *auth; + struct event *event; + int refcount; + + int fd; + struct io *io; + struct istream *input; + struct ostream *output; + + unsigned int version_minor; + unsigned int pid; + unsigned int connect_uid; + uint8_t cookie[MASTER_AUTH_COOKIE_SIZE]; + struct auth_request_handler *request_handler; + + bool login_requests:1; + bool version_received:1; + bool token_auth:1; +}; + +void auth_client_connection_create(struct auth *auth, int fd, + bool login_requests, bool token_auth); +void auth_client_connection_destroy(struct auth_client_connection **conn); + +struct auth_client_connection * +auth_client_connection_lookup(unsigned int pid); + +void auth_client_connections_destroy_all(void); + +#endif |