*/
/**
* @file fs/fs_pseudonym.c
- * @brief pseudonym functions
+ * @brief pseudonym functions; these functions are about namespaces
+ * managed by other users; we might want to eliminate this
+ * entire API and instead manage pseudonyms only via GNS
* @author Christian Grothoff
*/
#include "platform.h"
*/
struct GNUNET_FS_Pseudonym_DiscoveryHandle *
GNUNET_FS_pseudonym_discovery_callback_register (const struct
- GNUNET_CONFIGURATION_Handle *cfg,
- GNUNET_FS_PseudonymIterator iterator,
- void *iterator_cls)
+ GNUNET_CONFIGURATION_Handle *cfg,
+ GNUNET_FS_PseudonymIterator iterator,
+ void *iterator_cls)
{
struct GNUNET_FS_Pseudonym_DiscoveryHandle *dh;
{
idx = i;
if (sizeof (struct GNUNET_CRYPTO_EccPublicKey) !=
- GNUNET_DISK_file_write (fh, pseudonym, sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
+ GNUNET_DISK_file_write (fh, pseudonym,
+ sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
LOG_STRERROR_FILE (GNUNET_ERROR_TYPE_WARNING, "write", fn);
}
GNUNET_DISK_file_close (fh);
*/
int
GNUNET_FS_pseudonym_name_to_id (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *ns_uname,
- struct GNUNET_CRYPTO_EccPublicKey *pseudonym)
+ const char *ns_uname,
+ struct GNUNET_CRYPTO_EccPublicKey *pseudonym)
{
size_t slen;
uint64_t len;
return GNUNET_SYSERR;
}
if (sizeof (struct GNUNET_CRYPTO_EccPublicKey) !=
- GNUNET_DISK_file_read (fh, pseudonym, sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
+ GNUNET_DISK_file_read (fh, pseudonym,
+ sizeof (struct GNUNET_CRYPTO_EccPublicKey)))
{
GNUNET_DISK_file_close (fh);
return GNUNET_SYSERR;
}
-
/**
* struct used to list the pseudonym
*/
*/
int
GNUNET_FS_pseudonym_list_all (const struct GNUNET_CONFIGURATION_Handle *cfg,
- GNUNET_FS_PseudonymIterator iterator,
- void *iterator_cls)
+ GNUNET_FS_PseudonymIterator iterator,
+ void *iterator_cls)
{
struct ListPseudonymClosure cls;
char *fn;
*/
int
GNUNET_FS_pseudonym_rank (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const struct GNUNET_CRYPTO_EccPublicKey *pseudonym,
- int32_t delta)
+ const struct GNUNET_CRYPTO_EccPublicKey *pseudonym,
+ int32_t delta)
{
struct GNUNET_CONTAINER_MetaData *meta;
int ret;
}
-
-/* end of pseudonym.c */
+/* end of fs_pseudonym.c */