public
Description: Memcached -- you all use it. Get it here.
Homepage: http://memcached.org/
Clone URL: git://github.com/dustin/memcached.git
Trond Norbye (author)
Wed Nov 04 02:46:29 -0800 2009
dustin (committer)
Wed Nov 04 10:32:00 -0800 2009
memcached / sasl_defs.c
100644 21 lines (18 sloc) 0.449 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "memcached.h"
#include <stdio.h>
#include <stdlib.h>
 
static sasl_callback_t sasl_callbacks[] = {
    {
        SASL_CB_LIST_END, NULL, NULL
    }
};
 
void init_sasl(void) {
    if (sasl_server_init(sasl_callbacks, "memcached") != SASL_OK) {
        fprintf(stderr, "Error initializing sasl.\n");
        exit(EXIT_FAILURE);
    } else {
        if (settings.verbose) {
            fprintf(stderr, "Initialized SASL.\n");
        }
    }
}