diff options
author | Dustin Sallings <dustin@spy.net> | 2009-05-10 00:50:47 -0700 |
---|---|---|
committer | Trond Norbye <Trond.Norbye@sun.com> | 2009-10-25 21:19:14 +0100 |
commit | f1307c4d9cadb94076a99cc2f88a00f7e0b4161f (patch) | |
tree | 2f7f1096abce3f8c986854b3681770dc8f6d7da4 /sasl_defs.h | |
parent | da3d85a5d0fa9aaf927371ed70dce2366956a173 (diff) | |
download | memcached-f1307c4d9cadb94076a99cc2f88a00f7e0b4161f.tar.gz |
SASL auth support.
Diffstat (limited to 'sasl_defs.h')
-rw-r--r-- | sasl_defs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sasl_defs.h b/sasl_defs.h new file mode 100644 index 0000000..39c3cbf --- /dev/null +++ b/sasl_defs.h @@ -0,0 +1,26 @@ +#ifndef SASL_DEFS_H +#define SASL_DEFS_H 1 + +#if defined(HAVE_SASL_SASL_H) && defined(ENABLE_SASL) + +#include <sasl/sasl.h> +void init_sasl(void); + +#else /* End of SASL support */ + +typedef void* sasl_conn_t; + +#define init_sasl() {} +#define sasl_dispose(x) {} +#define sasl_server_new(a, b, c, d, e, f, g, h) 1 +#define sasl_listmech(a, b, c, d, e, f, g, h) 1 +#define sasl_server_start(a, b, c, d, e, f) 1 +#define sasl_server_step(a, b, c, d, e) 1 +#define sasl_getprop(a, b, c) {} + +#define SASL_OK 0 +#define SASL_CONTINUE -1 + +#endif /* sasl compat */ + +#endif /* SASL_DEFS_H */ |