diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-08-19 15:41:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-08-19 15:41:28 +0000 |
commit | 24f1d29be17eef10c308049f484af1fc85a10696 (patch) | |
tree | c22c3879e8f5e730fbfa53c48549d2723f9b2c46 /src/or/test.c | |
parent | 0711408c2280b9b5c284061a81c9e34836429e7f (diff) | |
download | tor-24f1d29be17eef10c308049f484af1fc85a10696.tar.gz tor-24f1d29be17eef10c308049f484af1fc85a10696.zip |
Apply proposal 121 patch 3, with minor tweaks and a few comments.
svn:r16598
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/test.c b/src/or/test.c index bec7eec460..311d23979e 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -4049,8 +4049,8 @@ test_rend_fns_v2(void) intro->intro_key = crypto_pk_dup_key(pk2); smartlist_add(generated->intro_nodes, intro); } - test_assert(rend_encode_v2_descriptors(descs, generated, now, - NULL, 0) > 0); + test_assert(rend_encode_v2_descriptors(descs, generated, now, 0, + REND_NO_AUTH, NULL, NULL) > 0); test_assert(rend_compute_v2_desc_id(computed_desc_id, service_id_base32, NULL, now, 0) == 0); test_memeq(((rend_encoded_v2_service_descriptor_t *) @@ -4065,9 +4065,8 @@ test_rend_fns_v2(void) test_assert(parsed); test_memeq(((rend_encoded_v2_service_descriptor_t *) smartlist_get(descs, 0))->desc_id, parsed_desc_id, DIGEST_LEN); - test_assert(rend_decrypt_introduction_points(parsed, NULL, - intro_points_encrypted, - intro_points_size) == 3); + test_assert(rend_parse_introduction_points(parsed, intro_points_encrypted, + intro_points_size) == 3); test_assert(!crypto_pk_cmp_keys(generated->pk, parsed->pk)); test_eq(parsed->timestamp, now); test_eq(parsed->version, 2); |