added check_punycode_string for issue https://github.com/ntop/nDPI/issues/157

This commit is contained in:
Campus
2016-03-10 11:44:24 +01:00
parent 8321b2fa66
commit 7ae06a114d
3 changed files with 52 additions and 17 deletions
+8
View File
@@ -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