2 * Copyright (C) 2006-2010 Brian Aker
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
8 * Summary: interface for memcached server
9 * Description: main include file for libmemcached
12 #ifndef LIBMEMCACHED_MEMCACHED_SASL_H
13 #define LIBMEMCACHED_MEMCACHED_SASL_H
15 #ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
16 #include <sasl/sasl.h>
23 void memcached_set_sasl_callbacks(memcached_st
*ptr
,
24 const sasl_callback_t
*callbacks
);
27 memcached_return_t
memcached_set_sasl_auth_data(memcached_st
*ptr
,
29 const char *password
);
32 memcached_return_t
memcached_destroy_sasl_auth_data(memcached_st
*ptr
);
36 const sasl_callback_t
*memcached_get_sasl_callbacks(memcached_st
*ptr
);
39 memcached_return_t
memcached_clone_sasl(memcached_st
*clone
, const memcached_st
*source
);
42 memcached_return_t
memcached_sasl_authenticate_connection(memcached_server_st
*server
);
48 #endif /* LIBMEMCACHED_WITH_SASL_SUPPORT */
50 struct memcached_sasl_st
{
51 #ifdef LIBMEMCACHED_WITH_SASL_SUPPORT
52 const sasl_callback_t
*callbacks
;
54 const void *callbacks
;
57 ** Did we allocate data inside the callbacks, or did the user
65 #endif /* LIBMEMCACHED_MEMCACHED_SASL_H */