diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-07 12:45:04 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-07 12:45:04 +0000 |
commit | ab3c2a6c36e4f0f78ccd082b731262d637d819d3 (patch) | |
tree | c7cede937bba981ae118ba4112be5d05ec5a7a73 /src/namestore/namestore_api.c | |
parent | cf9c46282c0a339cb08c145340f22f31be6519da (diff) | |
download | gnunet-ab3c2a6c36e4f0f78ccd082b731262d637d819d3.tar.gz gnunet-ab3c2a6c36e4f0f78ccd082b731262d637d819d3.zip |
namestore api change: include block expiration time in record create
Diffstat (limited to 'src/namestore/namestore_api.c')
-rw-r--r-- | src/namestore/namestore_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c index 87894cee3..9cdc70454 100644 --- a/src/namestore/namestore_api.c +++ b/src/namestore/namestore_api.c | |||
@@ -1095,6 +1095,7 @@ GNUNET_NAMESTORE_verify_signature (const struct GNUNET_CRYPTO_RsaPublicKeyBinary | |||
1095 | * | 1095 | * |
1096 | * @param h handle to the namestore | 1096 | * @param h handle to the namestore |
1097 | * @param pkey private key of the zone | 1097 | * @param pkey private key of the zone |
1098 | * @param expire block expiration time | ||
1098 | * @param name name that is being mapped (at most 255 characters long) | 1099 | * @param name name that is being mapped (at most 255 characters long) |
1099 | * @param rd record data to store | 1100 | * @param rd record data to store |
1100 | * @param cont continuation to call when done | 1101 | * @param cont continuation to call when done |
@@ -1104,6 +1105,7 @@ GNUNET_NAMESTORE_verify_signature (const struct GNUNET_CRYPTO_RsaPublicKeyBinary | |||
1104 | struct GNUNET_NAMESTORE_QueueEntry * | 1105 | struct GNUNET_NAMESTORE_QueueEntry * |
1105 | GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h, | 1106 | GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h, |
1106 | const struct GNUNET_CRYPTO_RsaPrivateKey *pkey, | 1107 | const struct GNUNET_CRYPTO_RsaPrivateKey *pkey, |
1108 | const struct GNUNET_TIME_Absolute expire, | ||
1107 | const char *name, | 1109 | const char *name, |
1108 | const struct GNUNET_NAMESTORE_RecordData *rd, | 1110 | const struct GNUNET_NAMESTORE_RecordData *rd, |
1109 | GNUNET_NAMESTORE_ContinuationWithStatus cont, | 1111 | GNUNET_NAMESTORE_ContinuationWithStatus cont, |
@@ -1169,6 +1171,7 @@ GNUNET_NAMESTORE_record_create (struct GNUNET_NAMESTORE_Handle *h, | |||
1169 | msg->rd_count = htons (1); | 1171 | msg->rd_count = htons (1); |
1170 | msg->rd_len = htons (rd_ser_len); | 1172 | msg->rd_len = htons (rd_ser_len); |
1171 | msg->pkey_len = htons (key_len); | 1173 | msg->pkey_len = htons (key_len); |
1174 | msg->expire = GNUNET_TIME_absolute_hton(expire); | ||
1172 | memcpy (pkey_tmp, pkey_enc, key_len); | 1175 | memcpy (pkey_tmp, pkey_enc, key_len); |
1173 | memcpy (name_tmp, name, name_len); | 1176 | memcpy (name_tmp, name, name_len); |
1174 | memcpy (rd_tmp, rd_ser, rd_ser_len); | 1177 | memcpy (rd_tmp, rd_ser, rd_ser_len); |