Add http origin checking to built in websockets.

This commit is contained in:
Roger A. Light
2022-12-03 22:13:40 +00:00
parent 1e0a07ba5a
commit 5c0cfade12
6 changed files with 110 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ enum mosq_err_t {
/* 28, 29, 30 - was internal only, moved to MQTT v5 section. */
MOSQ_ERR_ALREADY_EXISTS = 31,
MOSQ_ERR_PLUGIN_IGNORE = 32,
MOSQ_ERR_HTTP_BAD_ORIGIN = 33,
/* MQTT v5 direct equivalents 128-255 */
MOSQ_ERR_UNSPECIFIED = 128,