aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/namestore.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-03-09 14:14:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-03-09 14:14:01 +0000
commit5e828dc0248330d772913795257b3fda14fe9552 (patch)
tree362ecdb95dcb89c56a7f20d31b06efa7351fe8ba /src/namestore/namestore.h
parent780fdda9a42441ecf36482461ebd35e4ec5c7510 (diff)
downloadgnunet-5e828dc0248330d772913795257b3fda14fe9552.tar.gz
gnunet-5e828dc0248330d772913795257b3fda14fe9552.zip
- changes to signing verfifying: includes block expiration
Diffstat (limited to 'src/namestore/namestore.h')
-rw-r--r--src/namestore/namestore.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/namestore/namestore.h b/src/namestore/namestore.h
index e0550b499..48e021f6d 100644
--- a/src/namestore/namestore.h
+++ b/src/namestore/namestore.h
@@ -47,9 +47,10 @@
47#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448 47#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448
48 48
49/** 49/**
50 * Create a signature based on name and records 50 * Sign name and records
51 * 51 *
52 * @param key the private key 52 * @param key the private key
53 * @param expire block expiration
53 * @param name the name 54 * @param name the name
54 * @param rd record data 55 * @param rd record data
55 * @param rd_count number of records 56 * @param rd_count number of records
@@ -58,9 +59,10 @@
58 */ 59 */
59struct GNUNET_CRYPTO_RsaSignature * 60struct GNUNET_CRYPTO_RsaSignature *
60GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_RsaPrivateKey *key, 61GNUNET_NAMESTORE_create_signature (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
61 const char *name, 62 struct GNUNET_TIME_Absolute expire,
62 const struct GNUNET_NAMESTORE_RecordData *rd, 63 const char *name,
63 unsigned int rd_count); 64 const struct GNUNET_NAMESTORE_RecordData *rd,
65 unsigned int rd_count);
64 66
65/** 67/**
66 * Compares if two records are equal 68 * Compares if two records are equal