aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-20 15:26:03 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-20 15:26:03 +0000
commitd544e81283a24082e6423c8f4377939f6fefa780 (patch)
treeab8aaf264cdd6d27853ff15a2f7542c801acf721 /src/include/gnunet_tun_lib.h
parenta0a09022f0d0df917465b8e71753a69f066058d3 (diff)
downloadgnunet-d544e81283a24082e6423c8f4377939f6fefa780.tar.gz
gnunet-d544e81283a24082e6423c8f4377939f6fefa780.zip
-use the same hash function to map service name to hash, not once strlen and then strlen+1
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index 87b60a479..7d1e7cfed 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -887,4 +887,16 @@ char *
887GNUNET_TUN_ipv4policy2regex (const char *policy); 887GNUNET_TUN_ipv4policy2regex (const char *policy);
888 888
889 889
890/**
891 * Hash the service name of a hosted service to the
892 * hash code that is used to identify the service on
893 * the network.
894 *
895 * @param service_name a string
896 * @param hc corresponding hash
897 */
898void
899GNUNET_TUN_service_name_to_hash (const char *service_name,
900 struct GNUNET_HashCode *hc);
901
890#endif 902#endif