From 7ae06a114df358010c27cdf5819d1abdadd099fb Mon Sep 17 00:00:00 2001 From: Campus Date: Thu, 10 Mar 2016 11:44:24 +0100 Subject: added check_punycode_string for issue https://github.com/ntop/nDPI/issues/157 --- src/include/ndpi_api.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include') 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 @@ -32,6 +32,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 -- cgit v1.2.3