[tor-bugs] #27299 [Core Tor/Tor]: hsv3: Clarify timing sources around hsv3 code

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Nov 3 19:58:22 UTC 2018


#27299: hsv3: Clarify timing sources around hsv3 code
------------------------------------------+--------------------------------
 Reporter:  asn                           |          Owner:  (none)
     Type:  defect                        |         Status:  new
 Priority:  Medium                        |      Milestone:  Tor:
                                          |  unspecified
Component:  Core Tor/Tor                  |        Version:
 Severity:  Normal                        |     Resolution:
 Keywords:  tor-hs hsv3 refactoring easy  |  Actual Points:
Parent ID:                                |         Points:
 Reviewer:                                |        Sponsor:
------------------------------------------+--------------------------------

Comment (by ffmancera):

 I am going to work on this patch. This seems to be huge because there is a
 lot of files using timing sources in `src/features/hs`. I am going to add
 some notes in the ticket if there is no problem.

 I saw that we are using `approx_time()` which is an alias of `time(NULL)`,
 but at the same time and in the same file, we are using both. As
 `approx_time.h` has different utilities for timing, we should use it
 instead of `time(NULL)`. What do you think?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27299#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list