aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-09-18 21:17:45 +0000
committerRoger Dingledine <arma@torproject.org>2007-09-18 21:17:45 +0000
commiteb9dc12ce94749665962d9ca30f76ac4341e2662 (patch)
tree822c3b3990526b753804b4a9adeed8cbde050d42 /src/or/rendservice.c
parent722aac798e68d226de7f0b1a857e1becbce2faf7 (diff)
downloadtor-eb9dc12ce94749665962d9ca30f76ac4341e2662.tar
tor-eb9dc12ce94749665962d9ca30f76ac4341e2662.tar.gz
Drop support for v1 rendezvous descriptors, since we never used
them anyway, and the code has probably rotted by now. Based on patch from Karsten Loesing. svn:r11496
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 152b91bf8..3beb7d508 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -937,7 +937,7 @@ find_intro_circuit(routerinfo_t *router, const char *pk_digest)
* and upload it to all the dirservers.
*/
static void
-upload_service_descriptor(rend_service_t *service, int version)
+upload_service_descriptor(rend_service_t *service)
{
char *desc;
size_t desc_len;
@@ -946,7 +946,6 @@ upload_service_descriptor(rend_service_t *service, int version)
/* Update the descriptor. */
rend_service_update_descriptor(service);
if (rend_encode_service_descriptor(service->desc,
- version,
service->private_key,
&desc, &desc_len)<0) {
log_warn(LD_BUG, "Internal error: couldn't encode service descriptor; "
@@ -1110,7 +1109,7 @@ rend_consider_services_upload(time_t now)
/* if it's time, or if the directory servers have a wrong service
* descriptor and ours has been stable for 30 seconds, upload a
* new one of each format. */
- upload_service_descriptor(service, 0);
+ upload_service_descriptor(service);
service->next_upload_time = now + rendpostperiod;
}
}