f36c6944321e289c42c0349bb99c764782ee7bdc
[awesomized/libmemcached] / memcached / sasl_defs.h
1 #ifndef SASL_DEFS_H
2 #define SASL_DEFS_H 1
3
4 // Longest one I could find was ``9798-U-RSA-SHA1-ENC''
5 #define MAX_SASL_MECH_LEN 32
6
7 #if defined(HAVE_SASL_SASL_H) && defined(ENABLE_SASL)
8
9 #include <sasl/sasl.h>
10 void init_sasl(void);
11
12 extern char my_sasl_hostname[1025];
13
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 */