summaryrefslogtreecommitdiff
path: root/memcached.h
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-05-10 00:50:47 -0700
committerTrond Norbye <Trond.Norbye@sun.com>2009-10-25 21:19:14 +0100
commitf1307c4d9cadb94076a99cc2f88a00f7e0b4161f (patch)
tree2f7f1096abce3f8c986854b3681770dc8f6d7da4 /memcached.h
parentda3d85a5d0fa9aaf927371ed70dce2366956a173 (diff)
downloadmemcached-f1307c4d9cadb94076a99cc2f88a00f7e0b4161f.tar.gz
SASL auth support.
Diffstat (limited to 'memcached.h')
-rw-r--r--memcached.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/memcached.h b/memcached.h
index a52e0bd..9b49012 100644
--- a/memcached.h
+++ b/memcached.h
@@ -18,10 +18,13 @@
#include <stdbool.h>
#include <stdint.h>
#include <pthread.h>
+#include <unistd.h>
#include "protocol_binary.h"
#include "cache.h"
+#include "sasl_defs.h"
+
/** Maximum length of a key. */
#define KEY_MAX_LENGTH 250
@@ -155,7 +158,9 @@ enum bin_substates {
bin_reading_stat,
bin_reading_del_header,
bin_reading_incr_header,
- bin_read_flush_exptime
+ bin_read_flush_exptime,
+ bin_reading_sasl_auth,
+ bin_reading_sasl_auth_data
};
enum protocol {
@@ -268,6 +273,7 @@ struct settings {
enum protocol binding_protocol;
int backlog;
int item_size_max; /* Maximum item size, and upper end for slabs */
+ bool sasl; /* SASL on/off */
};
extern struct stats stats;
@@ -324,6 +330,7 @@ typedef struct {
typedef struct conn conn;
struct conn {
int sfd;
+ sasl_conn_t *sasl_conn;
enum conn_states state;
enum bin_substates substate;
struct event event;