aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-03-10 11:44:24 +0100
committerCampus <campus@ntop.org>2016-03-10 11:44:24 +0100
commit7ae06a114df358010c27cdf5819d1abdadd099fb (patch)
tree527d6fc3e841f7a9719c1c56117dd9690dc9645a /src/include/ndpi_api.h
parent8321b2fa66bb58fa85c36586b21deae8449d6465 (diff)
added check_punycode_string for issue https://github.com/ntop/nDPI/issues/157
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index fd1f5bb83..a459f63f6 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -33,6 +33,14 @@ extern "C" {
#endif
/**
+ * This function check if a string is encoded with punycode
+
+ * ( https://tools.ietf.org/html/rfc3492 )
+ * @return 1 if the string is punycoded; else 0
+ */
+ int check_punycode_string(char * buff , int len);
+
+ /**
* This function returns the size of the flow struct
* @return the size of the flow struct
*/