Merge in more updates for docs (we are just going to check them all in so that users...
[m6w6/libmemcached] / docs / man / memcached_destroy_sasl_auth_data.3
1 .TH "MEMCACHED_DESTROY_SASL_AUTH_DATA" "3" "April 07, 2011" "0.47" "libmemcached"
2 .SH NAME
3 memcached_destroy_sasl_auth_data \- libmemcached Documentation
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .\" Man page generated from reStructeredText.
32 .
33 .sp
34 SASL support
35 .SH LIBRARY
36 .sp
37 C Client Library for memcached (libmemcached, \-lmemcached)
38 .SH SYNOPSIS
39 .sp
40 .nf
41 .ft C
42 #include <libmemcached/memcached.h>
43
44 void memcached_set_sasl_callbacks(memcached_st *ptr,
45 const sasl_callback_t *callbacks)
46
47 const sasl_callback_t *memcached_get_sasl_callbacks(memcached_st *ptr)
48
49 memcached_return memcached_set_sasl_auth_data(memcached_st *ptr,
50 const char *username,
51 const char *password)
52 memcached_return memcached_destroy_sasl_auth_data(memcached_st *ptr)
53 .ft P
54 .fi
55 .SH DESCRIPTION
56 .sp
57 libmemcached(3) allows you to plug in your own callbacks function used by
58 libsasl to perform SASL authentication.
59 .sp
60 Please note that SASL requires the memcached binary protocol, and you have
61 to specify the callbacks before you connect to the server.
62 .sp
63 memcached_set_sasl_auth_data() is a helper function for you defining
64 the basic functionality for you, but it will store the username and password
65 in memory. If you choose to use this method you have to call
66 memcached_destroy_sasl_auth_data before calling memcached_free to avoid
67 a memory leak. You should NOT call memcached_destroy_sasl_auth_data if you
68 specify your own callback function with memcached_set_sasl_callbacks().
69 .sp
70 You as a client user have to initialize libsasl by using sasl_client_init
71 before enabling it in libmemcached, and you have to shut down libsasl by
72 calling sasl_done() when you are done using SASL from libmemcached.
73 .SH RETURN
74 .sp
75 memcached_get_sasl_callbacks() returns the callbacks currently used
76 by this memcached handle.
77 memcached_get_sasl_set_auth_data() returns MEMCACHED_SUCCESS upon success.
78 .SH HOME
79 .sp
80 To find out more information please check:
81 \fI\%http://libmemcached.org/\fP
82 .SH AUTHOR
83 .sp
84 Trond Norbye, <\fI\%trond.norbye@gmail.com\fP>
85 .SH SEE ALSO
86 .sp
87 memcached(1) libmemcached(3)
88 .SH AUTHOR
89 Brian Aker
90 .SH COPYRIGHT
91 2011, Brian Aker
92 .\" Generated by docutils manpage writer.
93 .\"
94 .