mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-18 11:45:08 +08:00
Check client topic inputs for valid UTF-8.
This commit is contained in:
@@ -106,6 +106,11 @@ int topic_matches_sub(const char *sub, const char *topic, bool *result)
|
||||
return mosquitto_topic_matches_sub(sub, topic, result);
|
||||
}
|
||||
|
||||
int validate_utf8(const char *str, int len)
|
||||
{
|
||||
return mosquitto_validate_utf8(str, len);
|
||||
}
|
||||
|
||||
int subscribe_simple(
|
||||
struct mosquitto_message **messages,
|
||||
int msg_count,
|
||||
|
||||
@@ -41,6 +41,7 @@ mosqpp_EXPORT int lib_version(int *major, int *minor, int *revision);
|
||||
mosqpp_EXPORT int lib_init();
|
||||
mosqpp_EXPORT int lib_cleanup();
|
||||
mosqpp_EXPORT int topic_matches_sub(const char *sub, const char *topic, bool *result);
|
||||
mosqpp_EXPORT int validate_utf8(const char *str, int len);
|
||||
mosqpp_EXPORT int subscribe_simple(
|
||||
struct mosquitto_message **messages,
|
||||
int msg_count,
|
||||
|
||||
Reference in New Issue
Block a user