summaryrefslogtreecommitdiff
path: root/src/networking.c
diff options
context:
space:
mode:
authorMadelyn Olson <matolson@amazon.com>2019-02-26 01:23:11 +0000
committerMadelyn Olson <matolson@amazon.com>2019-12-17 06:59:59 +0000
commit034dcf185cfaa844154e422d26a9ec7afa314189 (patch)
treeee8a6afeea783d2b3d6fe6e59e33b9ecfa102cc8 /src/networking.c
parente9b99c78dfd338ecf3c5b7b69318c10ce9dead03 (diff)
downloadredis-034dcf185cfaa844154e422d26a9ec7afa314189.tar.gz
Add module APIs for custom authentication
Diffstat (limited to 'src/networking.c')
-rw-r--r--src/networking.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/networking.c b/src/networking.c
index 901ce0a7b..37f8fa9b7 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -154,6 +154,9 @@ client *createClient(connection *conn) {
c->peerid = NULL;
c->client_list_node = NULL;
c->client_tracking_redirection = 0;
+ c->auth_callback = NULL;
+ c->auth_callback_privdata = NULL;
+ c->auth_module = NULL;
listSetFreeMethod(c->pubsub_patterns,decrRefCountVoid);
listSetMatchMethod(c->pubsub_patterns,listMatchObjects);
if (conn) linkClient(c);
@@ -1051,6 +1054,9 @@ void freeClient(client *c) {
c);
}
+ /* Notify module system that this client auth status changed. */
+ moduleNotifyUserChanged(c);
+
/* If it is our master that's beging disconnected we should make sure
* to cache the state to try a partial resynchronization later.
*