projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
808ef8a
)
-fixing some testcase builds
author
Christian Grothoff
<christian@grothoff.org>
Tue, 19 Jun 2012 22:23:33 +0000
(22:23 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 19 Jun 2012 22:23:33 +0000
(22:23 +0000)
src/gns/test_gns_dht_delegated_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_delegated_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_get_authority.c
patch
|
blob
|
history
src/gns/test_gns_simple_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_mx_lookup.c
patch
|
blob
|
history
src/gns/test_gns_simple_shorten.c
patch
|
blob
|
history
src/gns/test_gns_simple_zkey_lookup.c
patch
|
blob
|
history
diff --git
a/src/gns/test_gns_dht_delegated_lookup.c
b/src/gns/test_gns_dht_delegated_lookup.c
index 07fa9f2461578f4c52eea715699167a143cd5400..e7f2ea06056fc52492a630b65146527c891faab3 100644
(file)
--- a/
src/gns/test_gns_dht_delegated_lookup.c
+++ b/
src/gns/test_gns_dht_delegated_lookup.c
@@
-213,7
+213,7
@@
put_dht(void *cls, int32_t success, const char *emsg)
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
@@
-258,7
+258,7
@@
put_dht(void *cls, int32_t success, const char *emsg)
GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
rd_payload_length,
(char*)nrb,
GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
rd_payload_length,
(char*)nrb,
-
rd.expiration
,
+
GNUNET_TIME_UNIT_FOREVER_ABS
,
DHT_OPERATION_TIMEOUT,
NULL,
NULL);
DHT_OPERATION_TIMEOUT,
NULL,
NULL);
@@
-317,7
+317,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
struct GNUNET_NAMESTORE_RecordData rd;
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
struct GNUNET_NAMESTORE_RecordData rd;
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &bob_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
rd.data = &bob_hash;
rd.record_type = GNUNET_GNS_RECORD_PKEY;
diff --git
a/src/gns/test_gns_simple_delegated_lookup.c
b/src/gns/test_gns_simple_delegated_lookup.c
index 9e5226285c39f29a40885ecd256f21172bbc677a..c8066fb0c7f5bdbba44004eae4a3faa6a80866e5 100644
(file)
--- a/
src/gns/test_gns_simple_delegated_lookup.c
+++ b/
src/gns/test_gns_simple_delegated_lookup.c
@@
-208,6
+208,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_CRYPTO_ShortHashCode bob_hash;
struct GNUNET_CRYPTO_RsaSignature *sig;
char* alice_keyfile;
struct GNUNET_CRYPTO_ShortHashCode bob_hash;
struct GNUNET_CRYPTO_RsaSignature *sig;
char* alice_keyfile;
+ struct GNUNET_TIME_Absolute et;
cfg = _cfg;
cfg = _cfg;
@@
-240,7
+241,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
@@
-263,11
+264,11
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
GNUNET_TIME_UNIT_FOREVER_ABS,
TEST_RECORD_NAME,
&rd, 1);
GNUNET_TIME_UNIT_FOREVER_ABS,
TEST_RECORD_NAME,
&rd, 1);
-
+ et.abs_value = rd.expiration_time;
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
-
rd.expiration
,
+
et
,
1,
&rd,
sig,
1,
&rd,
sig,
diff --git
a/src/gns/test_gns_simple_get_authority.c
b/src/gns/test_gns_simple_get_authority.c
index dbecb7dfd7ddad597dcf1bcefdb2ca584fd7319c..76a4c4534ffb12ce553fb0ce5be17f0bf4abd02d 100644
(file)
--- a/
src/gns/test_gns_simple_get_authority.c
+++ b/
src/gns/test_gns_simple_get_authority.c
@@
-236,7
+236,7
@@
do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
diff --git
a/src/gns/test_gns_simple_lookup.c
b/src/gns/test_gns_simple_lookup.c
index a1d6b02aec71389a9a0c1b0d01c65c1a60dd6d48..bd6501b241fcc25144466678c3a293dbca04ef09 100644
(file)
--- a/
src/gns/test_gns_simple_lookup.c
+++ b/
src/gns/test_gns_simple_lookup.c
@@
-222,7
+222,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
rd.data_size = sizeof(struct in_addr);
rd.data = web;
diff --git
a/src/gns/test_gns_simple_mx_lookup.c
b/src/gns/test_gns_simple_mx_lookup.c
index c6ec1d6842bc66cc35cd6c63a176bda932dec332..38026fdcca541253eca19b0850913f4260926d59 100644
(file)
--- a/
src/gns/test_gns_simple_mx_lookup.c
+++ b/
src/gns/test_gns_simple_mx_lookup.c
@@
-225,6
+225,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_CRYPTO_ShortHashCode bob_hash;
struct GNUNET_CRYPTO_RsaSignature *sig;
char* alice_keyfile;
struct GNUNET_CRYPTO_ShortHashCode bob_hash;
struct GNUNET_CRYPTO_RsaSignature *sig;
char* alice_keyfile;
+ struct GNUNET_TIME_Absolute et;
cfg = _cfg;
cfg = _cfg;
@@
-259,7
+260,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct in_addr *mail = GNUNET_malloc(sizeof(struct in_addr));
char *mx_record;
uint16_t mx_preference = 1;
struct in_addr *mail = GNUNET_malloc(sizeof(struct in_addr));
char *mx_record;
uint16_t mx_preference = 1;
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, mail));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
GNUNET_assert(1 == inet_pton (AF_INET, ip, mail));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
@@
-282,11
+283,11
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
GNUNET_TIME_UNIT_FOREVER_ABS,
TEST_RECORD_NAME,
&rd, 1);
GNUNET_TIME_UNIT_FOREVER_ABS,
TEST_RECORD_NAME,
&rd, 1);
-
+ et.abs_value = rd.expiration_time;
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
-
rd.expiration
,
+
et
,
1,
&rd,
sig,
1,
&rd,
sig,
@@
-303,10
+304,11
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
GNUNET_TIME_UNIT_FOREVER_ABS,
"+",
&rd, 1);
GNUNET_TIME_UNIT_FOREVER_ABS,
"+",
&rd, 1);
+ et.abs_value = rd.expiration_time;
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
"+",
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
"+",
-
rd.expiration
,
+
et
,
1,
&rd,
sig,
1,
&rd,
sig,
diff --git
a/src/gns/test_gns_simple_shorten.c
b/src/gns/test_gns_simple_shorten.c
index 53717932fc42aa0179a0a1bac14781aff8a9e3ff..8dd813f6d417f3dd5cfe95a7777b2c2f15f49f2d 100644
(file)
--- a/
src/gns/test_gns_simple_shorten.c
+++ b/
src/gns/test_gns_simple_shorten.c
@@
-236,7
+236,7
@@
do_shorten(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
diff --git
a/src/gns/test_gns_simple_zkey_lookup.c
b/src/gns/test_gns_simple_zkey_lookup.c
index b6d02cf3fe683bca7a274d854ee99655348fa658..3c54a149d3427f194788a32cdabf0f651b49b6bf 100644
(file)
--- a/
src/gns/test_gns_simple_zkey_lookup.c
+++ b/
src/gns/test_gns_simple_zkey_lookup.c
@@
-243,7
+243,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
struct GNUNET_NAMESTORE_RecordData rd;
char* ip = TEST_IP;
struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
- rd.expiration
= GNUNET_TIME_UNIT_FOREVER_ABS
;
+ rd.expiration
_time = UINT64_MAX
;
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
@@
-270,7
+270,7
@@
do_lookup(void *cls, const struct GNUNET_PeerIdentity *id,
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
GNUNET_NAMESTORE_record_put (namestore_handle,
&bob_pkey,
TEST_RECORD_NAME,
-
rd.expiration
,
+
GNUNET_TIME_UNIT_FOREVER_ABS
,
1,
&rd,
sig,
1,
&rd,
sig,