Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (21 sloc) 0.693 kB
f1307c4 @dustin SASL auth support.
dustin authored
1 #ifndef SASL_DEFS_H
2 #define SASL_DEFS_H 1
3
3705435 @dustin Enforce some hard limits on SASL mechanism length.
dustin authored
4 // Longest one I could find was ``9798-U-RSA-SHA1-ENC''
5 #define MAX_SASL_MECH_LEN 32
6
f1307c4 @dustin SASL auth support.
dustin authored
7 #if defined(HAVE_SASL_SASL_H) && defined(ENABLE_SASL)
8
9 #include <sasl/sasl.h>
10 void init_sasl(void);
11
b0a858c @dustin Specify hostname in sasl_server_new.
dustin authored
12 extern char my_sasl_hostname[1025];
13
f1307c4 @dustin SASL auth support.
dustin authored
14 #else /* End of SASL support */
15
16 typedef void* sasl_conn_t;
17
18 #define init_sasl() {}
19 #define sasl_dispose(x) {}
20 #define sasl_server_new(a, b, c, d, e, f, g, h) 1
21 #define sasl_listmech(a, b, c, d, e, f, g, h) 1
22 #define sasl_server_start(a, b, c, d, e, f) 1
23 #define sasl_server_step(a, b, c, d, e) 1
24 #define sasl_getprop(a, b, c) {}
25
26 #define SASL_OK 0
27 #define SASL_CONTINUE -1
28
29 #endif /* sasl compat */
30
31 #endif /* SASL_DEFS_H */
Something went wrong with that request. Please try again.