annotate src/auth/auth-client-interface.h @ 9266:cd29b745c8dd HEAD

configure: clock_gettime()'s -lrt adding dropped everything else from $LIBS.
author Timo Sirainen <tss@iki.fi>
date Mon, 27 Jul 2009 06:32:42 -0400
parents 1c91fa0d804b
children 05eec45994d9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6410
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 4846
diff changeset
1 #ifndef AUTH_CLIENT_INTERFACE_H
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 4846
diff changeset
2 #define AUTH_CLIENT_INTERFACE_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
2776
150f8151c971 Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents: 2736
diff changeset
4 /* Major version changes are not backwards compatible,
150f8151c971 Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents: 2736
diff changeset
5 minor version numbers can be ignored. */
150f8151c971 Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents: 2736
diff changeset
6 #define AUTH_CLIENT_PROTOCOL_MAJOR_VERSION 1
150f8151c971 Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents: 2736
diff changeset
7 #define AUTH_CLIENT_PROTOCOL_MINOR_VERSION 0
150f8151c971 Added VERSION command and checking to authentication protocol.
Timo Sirainen <tss@iki.fi>
parents: 2736
diff changeset
8
2736
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
9 #define AUTH_CLIENT_MAX_LINE_LENGTH 8192
9155
1c91fa0d804b login client idle timeout should be larger than auth request timeout, not vice versa.
Timo Sirainen <tss@iki.fi>
parents: 6410
diff changeset
10 /* Use a bit smaller than login process timeout */
1c91fa0d804b login client idle timeout should be larger than auth request timeout, not vice versa.
Timo Sirainen <tss@iki.fi>
parents: 6410
diff changeset
11 #define AUTH_REQUEST_TIMEOUT (3*60 - 30)
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
12
2736
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
13 enum mech_security_flags {
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
14 /* Don't advertise this as available SASL mechanism (eg. APOP) */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
15 MECH_SEC_PRIVATE = 0x0001,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
16 /* Anonymous authentication */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
17 MECH_SEC_ANONYMOUS = 0x0002,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
18 /* Transfers plaintext passwords */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
19 MECH_SEC_PLAINTEXT = 0x0004,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
20 /* Subject to passive (dictionary) attack */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
21 MECH_SEC_DICTIONARY = 0x0008,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
22 /* Subject to active (non-dictionary) attack */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
23 MECH_SEC_ACTIVE = 0x0010,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
24 /* Provides forward secrecy between sessions */
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
25 MECH_SEC_FORWARD_SECRECY = 0x0020,
0f31778d3c34 Changed dovecot-auth protocol to ASCII based. Should be easier now to write
Timo Sirainen <tss@iki.fi>
parents: 2535
diff changeset
26 /* Provides mutual authentication */
4048
9e2a96d7e9ae More comma removals
Timo Sirainen <tss@iki.fi>
parents: 2776
diff changeset
27 MECH_SEC_MUTUAL_AUTH = 0x0040
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
28 };
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
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
30 #endif