1MEMCACHED_DESTROY_SASL_AUTH_DATA(3l)ibmemcacheMdEMCACHED_DESTROY_SASL_AUTH_DATA(3)
2
3
4

NAME

6       memcached_destroy_sasl_auth_data - libmemcached Documentation
7

SYNOPSIS

9       #include <libmemcached/memcached_pool.h>
10
11       void  memcached_set_sasl_callbacks(memcached_st *ptr,  const sasl_call‐
12       back_t *callbacks)
13
14       const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st *ptr)
15
16       memcached_return_t      memcached_set_sasl_auth_data(memcached_st *ptr,
17       const char *username, const char *password)
18
19       memcached_return_t memcached_destroy_sasl_auth_data(memcached_st *ptr)
20
21       Compile and link with -lmemcached
22

DESCRIPTION

24       libmemcached(3)  allows you to plug in your own callbacks function used
25       by libsasl to perform SASL authentication.
26
27       Please note that SASL requires the memcached binary protocol,  and  you
28       have to specify the callbacks before you connect to the server.
29
30       memcached_set_sasl_auth_data()  is a helper function defining the basic
31       functionality for you, but it will store the username and  password  in
32       memory.   If   you   choose  to  use  this  method  you  have  to  call
33       memcached_destroy_sasl_auth_data before calling memcached_free to avoid
34       a  memory leak. You should NOT call memcached_destroy_sasl_auth_data if
35       you     specify     your      own      callback      function      with
36       memcached_set_sasl_callbacks().
37

RETURN

39       memcached_get_sasl_callbacks()  returns the callbacks currently used by
40       this  memcached  handle.  memcached_set_sasl_auth_data()  returns  MEM‐
41       CACHED_SUCCESS upon success.
42

HOME

44       To find out more information please check: http://libmemcached.org/
45

AUTHOR

47       Brian Aker, <brian@tangent.org>
48
49       Trond Norbye, <trond.norbye@gmail.com>
50

SEE ALSO

52       memcached(1) libmemcached(3) memcached_strerror(3)
53

AUTHOR

55       Brian Aker
56
58       2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
59
60
61
62
631.0.18                         February 09,M2E0M1C4ACHED_DESTROY_SASL_AUTH_DATA(3)
Impressum