aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_uri.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-05 15:04:48 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-05 15:04:48 +0000
commitf0e8d8a426ab418be6aa37411e94c716e461bc75 (patch)
tree8490d2cda04bd5fd8fe2e81e1a5aa4ba027e3e75 /src/fs/fs_uri.c
parentc068395ea77dbb8c9d1a63f549d9c0e0c7f148f5 (diff)
downloadgnunet-f0e8d8a426ab418be6aa37411e94c716e461bc75.tar.gz
gnunet-f0e8d8a426ab418be6aa37411e94c716e461bc75.zip
-doxygen, remove GNUNET_FS_uri_sks_to_string_fancy (dead)
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r--src/fs/fs_uri.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c
index e35287bef..23a368261 100644
--- a/src/fs/fs_uri.c
+++ b/src/fs/fs_uri.c
@@ -1352,38 +1352,10 @@ GNUNET_FS_uri_sks_get_content_id (const struct GNUNET_FS_Uri *uri)
1352 1352
1353 1353
1354/** 1354/**
1355 * Convert namespace URI to a human readable format
1356 * (using the namespace description, if available).
1357 *
1358 * @param cfg configuration to use
1359 * @param uri SKS uri to convert
1360 * @return NULL on error (not an SKS URI)
1361 */
1362char *
1363GNUNET_FS_uri_sks_to_string_fancy (struct GNUNET_CONFIGURATION_Handle *cfg,
1364 const struct GNUNET_FS_Uri *uri)
1365{
1366 char *ret;
1367 char *name;
1368 char *unique_name;
1369
1370 if (uri->type != GNUNET_FS_URI_SKS)
1371 return NULL;
1372 (void) GNUNET_FS_pseudonym_get_info (cfg, &uri->data.sks.ns,
1373 NULL, NULL, &name, NULL);
1374 unique_name = GNUNET_FS_pseudonym_name_uniquify (cfg, &uri->data.sks.ns, name, NULL);
1375 GNUNET_free (name);
1376 GNUNET_asprintf (&ret, "%s: %s", unique_name, uri->data.sks.identifier);
1377 GNUNET_free (unique_name);
1378 return ret;
1379}
1380
1381
1382/**
1383 * Is this a keyword URI? 1355 * Is this a keyword URI?
1384 * 1356 *
1385 * @param uri the uri 1357 * @param uri the uri
1386 * @return GNUNET_YES if this is a KSK uri 1358 * @return #GNUNET_YES if this is a KSK uri
1387 */ 1359 */
1388int 1360int
1389GNUNET_FS_uri_test_ksk (const struct GNUNET_FS_Uri *uri) 1361GNUNET_FS_uri_test_ksk (const struct GNUNET_FS_Uri *uri)