diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-05-06 18:42:45 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-05-06 18:42:45 +0200 |
commit | 1847e16524eb9fe5171612b43cf1d063d0f25dfc (patch) | |
tree | 99e4bce838d7c1588cc0133462055db3e5f72f9d /src/namestore/namestore_api.c | |
parent | 3a110bca6e72f1ad21eab00b0ad64630c0bd2fa2 (diff) | |
download | gnunet-1847e16524eb9fe5171612b43cf1d063d0f25dfc.tar.gz gnunet-1847e16524eb9fe5171612b43cf1d063d0f25dfc.zip |
deprecate ill-defined set_nick API
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r-- | src/namestore/namestore_api.c | 37 |
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 | */ | ||
1076 | struct GNUNET_NAMESTORE_QueueEntry * | ||
1077 | GNUNET_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 |