diff options
Diffstat (limited to 'src/gnunet_chat_util.h')
-rw-r--r-- | src/gnunet_chat_util.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/gnunet_chat_util.h b/src/gnunet_chat_util.h index d9ff947..1ffa01a 100644 --- a/src/gnunet_chat_util.h +++ b/src/gnunet_chat_util.h | |||
@@ -27,14 +27,31 @@ | |||
27 | 27 | ||
28 | #include <gnunet/platform.h> | 28 | #include <gnunet/platform.h> |
29 | #include <gnunet/gnunet_common.h> | 29 | #include <gnunet/gnunet_common.h> |
30 | #include <gnunet/gnunet_crypto_lib.h> | ||
31 | #include <gnunet/gnunet_disk_lib.h> | ||
30 | #include <gnunet/gnunet_messenger_service.h> | 32 | #include <gnunet/gnunet_messenger_service.h> |
31 | #include <gnunet/gnunet_util_lib.h> | 33 | #include <gnunet/gnunet_util_lib.h> |
32 | 34 | ||
33 | void | 35 | void |
34 | util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, | 36 | util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, |
35 | struct GNUNET_ShortHashCode* shorthash); | 37 | struct GNUNET_ShortHashCode *shorthash); |
36 | 38 | ||
37 | void | 39 | void |
38 | util_set_name_field (const char *name, char** field); | 40 | util_set_name_field (const char *name, char **field); |
41 | |||
42 | int | ||
43 | util_hash_file (const char *filename, struct GNUNET_HashCode *hash); | ||
44 | |||
45 | int | ||
46 | util_encrypt_file (const char *filename, | ||
47 | const struct GNUNET_CRYPTO_SymmetricSessionKey *key); | ||
48 | |||
49 | int | ||
50 | util_decrypt_file (const char *filename, | ||
51 | const struct GNUNET_CRYPTO_SymmetricSessionKey *key); | ||
52 | |||
53 | int | ||
54 | util_get_filename (const char *directory, const struct GNUNET_HashCode *hash, | ||
55 | char **filename); | ||
39 | 56 | ||
40 | #endif /* GNUNET_CHAT_UTIL_H_ */ | 57 | #endif /* GNUNET_CHAT_UTIL_H_ */ |