aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r--src/namestore/namestore_api.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 156c115d2..2a085cf04 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -1064,43 +1064,6 @@ GNUNET_NAMESTORE_records_store (
1064 1064
1065 1065
1066/** 1066/**
1067 * Set the desired nick name for a zone
1068 *
1069 * @param h handle to the namestore
1070 * @param pkey private key of the zone
1071 * @param nick the nick name to set
1072 * @param cont continuation to call when done
1073 * @param cont_cls closure for @a cont
1074 * @return handle to abort the request
1075 */
1076struct GNUNET_NAMESTORE_QueueEntry *
1077GNUNET_NAMESTORE_set_nick (struct GNUNET_NAMESTORE_Handle *h,
1078 const struct GNUNET_CRYPTO_EcdsaPrivateKey *pkey,
1079 const char *nick,
1080 GNUNET_NAMESTORE_ContinuationWithStatus cont,
1081 void *cont_cls)
1082{
1083 struct GNUNET_GNSRECORD_Data rd;
1084
1085 if (NULL == h->mq)
1086 return NULL;
1087 memset (&rd, 0, sizeof(rd));
1088 rd.data = nick;
1089 rd.data_size = strlen (nick) + 1;
1090 rd.record_type = GNUNET_GNSRECORD_TYPE_NICK;
1091 rd.expiration_time = GNUNET_TIME_UNIT_FOREVER_ABS.abs_value_us;
1092 rd.flags |= GNUNET_GNSRECORD_RF_PRIVATE;
1093 return GNUNET_NAMESTORE_records_store (h,
1094 pkey,
1095 GNUNET_GNS_EMPTY_LABEL_AT,
1096 1,
1097 &rd,
1098 cont,
1099 cont_cls);
1100}
1101
1102
1103/**
1104 * Lookup an item in the namestore. 1067 * Lookup an item in the namestore.
1105 * 1068 *
1106 * @param h handle to the namestore 1069 * @param h handle to the namestore