d8b15a877b2567df35a0fed1ad31a1adc15e827a
[awesomized/libmemcached] / docs / source / libmemcached / memcached_set_encoding_key.rst
1 ==================
2 Set encryption key
3 ==================
4
5 .. index:: object: memcached_st
6
7 --------
8 SYNOPSIS
9 --------
10
11 #include <libmemcached/memcached.h>
12
13 .. function:: void memcached_set_encoding_key (memcached_st *ptr, const char *string, const size_t string_length)
14
15 Compile and link with -lmemcached
16
17 -----------
18 DESCRIPTION
19 -----------
20
21
22 :func:`memcached_set_encoding_key` sets the key that will be used to encrypt and decrypt data as it is sent and received from the server.
23
24 Currently only AES is is supported.
25
26
27 ------
28 RETURN
29 ------
30
31
32 A value of type :type:`memcached_return_t` is returned On success that value
33 will be `MEMCACHED_SUCCESS`. Use :func:`memcached_strerror` to
34 translate this value to a printable string.
35
36
37
38 --------
39 SEE ALSO
40 --------
41
42 .. only:: man
43
44 :manpage:`memcached(1)` :manpage:`libmemcached(3)` :manpage:`memcached_strerror(3)`