Changes in version 0.2.2.1-alpha - 2009-08-26 - Hidden services no longer publish version 0 descriptors, and clients do not request or use version 0 descriptors. However, the old hidden service authorities still accept and serve version 0 descriptors when contacted by older hidden services/clients.
Nick, would you accept a patch that removes version 0 hidden service code? Or would you prefer writing that patch yourself and me reviewing it?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
Please find my branch bug10841 that removes all remaining hidden service version 0 directory code I could find. Tested with a hidden service and a hidden service client.
I'm surprised to see DIR_PURPOSE_FETCH_RENDDESC and DIR_PURPOSE_UPLOAD_RENDDESC disappear. I guess they were v0 only. (Next time we add a v1 or a v2, we should make sure that we rename the old functions to "*_v0", so that we don't get confused this way again.)
I wondered about removing the "case -1" case from connection_dir_client_reached_eof. I guess that return value shouldn't happen anymore.... but having these semi-enumerated error codes makes me twitchy. Maybe we should be using an enum for these. I guess that's another commit. I can do that one if you like.
Do we still need rend_parse_service_descriptor? I think you may have removed the only thing that called it.
I'm surprised to see DIR_PURPOSE_FETCH_RENDDESC and DIR_PURPOSE_UPLOAD_RENDDESC disappear. I guess they were v0 only. (Next time we add a v1 or a v2, we should make sure that we rename the old functions to "*_v0", so that we don't get confused this way again.)
Correct, those two were only used for v0.
I wondered about removing the "case -1" case from connection_dir_client_reached_eof. I guess that return value shouldn't happen anymore.... but having these semi-enumerated error codes makes me twitchy. Maybe we should be using an enum for these. I guess that's another commit. I can do that one if you like.
Okay. Do you mind making that change to an enum?
Do we still need rend_parse_service_descriptor? I think you may have removed the only thing that called it.
True! Please find my updated branch bug10841.
I wonder, is there a simple way to find unused functions in tor?