diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-20 15:26:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-20 15:26:03 +0000 |
commit | d544e81283a24082e6423c8f4377939f6fefa780 (patch) | |
tree | ab8aaf264cdd6d27853ff15a2f7542c801acf721 /src/include/gnunet_tun_lib.h | |
parent | a0a09022f0d0df917465b8e71753a69f066058d3 (diff) | |
download | gnunet-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.h | 12 |
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 * | |||
887 | GNUNET_TUN_ipv4policy2regex (const char *policy); | 887 | GNUNET_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 | */ | ||
898 | void | ||
899 | GNUNET_TUN_service_name_to_hash (const char *service_name, | ||
900 | struct GNUNET_HashCode *hc); | ||
901 | |||
890 | #endif | 902 | #endif |