Skip to content

Commit

Permalink
Temporarily disable all extended AUTH.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Jan 25, 2019
1 parent 219f47b commit 5e7f43c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/handle_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and the Eclipse Distribution License is available at
#include "mqtt_protocol.h"
#include "packet_mosq.h"
#include "property_mosq.h"
#include "send_mosq.h"


int handle__auth(struct mosquitto_db *db, struct mosquitto *context)
Expand All @@ -46,5 +47,7 @@ int handle__auth(struct mosquitto_db *db, struct mosquitto *context)
mosquitto_property_free_all(&properties); /* FIXME - TEMPORARY UNTIL PROPERTIES PROCESSED */
}

return MOSQ_ERR_SUCCESS;
/* FIXME - Extended auth not currently supported */
send__disconnect(context, MQTT_RC_NOT_AUTHORIZED, NULL);
return 1;
}

0 comments on commit 5e7f43c

Please sign in to comment.