Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/auth/auth-master-connection.h @ 6410:e4eb71ae8e96 HEAD
Changed .h ifdef/defines to use <NAME>_H format.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 11:31:27 +0300 |
parents | b2921478f94f |
children | 08d31d752893 |
rev | line source |
---|---|
6410
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
5038
diff
changeset
|
1 #ifndef AUTH_MASTER_CONNECTION_H |
e4eb71ae8e96
Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents:
5038
diff
changeset
|
2 #define AUTH_MASTER_CONNECTION_H |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 |
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
4 struct auth_master_connection { |
3308
3f090bcaffcc
Allow multiple master connections for a single listener.
Timo Sirainen <tss@iki.fi>
parents:
3307
diff
changeset
|
5 struct auth_master_listener *listener; |
5038
b2921478f94f
Several fixes to handling deinitialization without crashing.
Timo Sirainen <tss@iki.fi>
parents:
3879
diff
changeset
|
6 int refcount; |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 |
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
8 int fd; |
2736
0f31778d3c34
Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents:
2236
diff
changeset
|
9 struct istream *input; |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
10 struct ostream *output; |
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
11 struct io *io; |
2075
5138b14889a6
dovecot-auth can now be run by itself, it listens in UNIX sockets specified
Timo Sirainen <tss@iki.fi>
parents:
1702
diff
changeset
|
12 |
2776
150f8151c971
Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents:
2736
diff
changeset
|
13 unsigned int version_received:1; |
2075
5138b14889a6
dovecot-auth can now be run by itself, it listens in UNIX sockets specified
Timo Sirainen <tss@iki.fi>
parents:
1702
diff
changeset
|
14 unsigned int destroyed:1; |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 }; |
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
16 |
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
17 struct auth_master_connection * |
3308
3f090bcaffcc
Allow multiple master connections for a single listener.
Timo Sirainen <tss@iki.fi>
parents:
3307
diff
changeset
|
18 auth_master_connection_create(struct auth_master_listener *listener, int fd); |
3879
928229f8b3e6
deinit, unref, destroy, close, free, etc. functions now take a pointer to
Timo Sirainen <tss@iki.fi>
parents:
3308
diff
changeset
|
19 void auth_master_connection_destroy(struct auth_master_connection **conn); |
3307
38754475d3b6
Exit only if all master connections are lost, not only if one of them is.
Timo Sirainen <tss@iki.fi>
parents:
3166
diff
changeset
|
20 |
5038
b2921478f94f
Several fixes to handling deinitialization without crashing.
Timo Sirainen <tss@iki.fi>
parents:
3879
diff
changeset
|
21 void auth_master_connection_ref(struct auth_master_connection *conn); |
b2921478f94f
Several fixes to handling deinitialization without crashing.
Timo Sirainen <tss@iki.fi>
parents:
3879
diff
changeset
|
22 void auth_master_connection_unref(struct auth_master_connection **conn); |
b2921478f94f
Several fixes to handling deinitialization without crashing.
Timo Sirainen <tss@iki.fi>
parents:
3879
diff
changeset
|
23 |
2075
5138b14889a6
dovecot-auth can now be run by itself, it listens in UNIX sockets specified
Timo Sirainen <tss@iki.fi>
parents:
1702
diff
changeset
|
24 void auth_master_connection_send_handshake(struct auth_master_connection *conn); |
3307
38754475d3b6
Exit only if all master connections are lost, not only if one of them is.
Timo Sirainen <tss@iki.fi>
parents:
3166
diff
changeset
|
25 void auth_master_connections_send_handshake(void); |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
26 |
3074 | 27 void auth_master_request_callback(const char *reply, void *context); |
28 | |
1702
43815588dd6b
Moved client side code for auth process handling to lib-auth. Some other login process cleanups.
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
29 #endif |