Constify crypto_pk_get_digest().
Add better support to obfuscate statistics.
Fix: call circuit_has_opened() for rendezvous circuit

In circuit_get_open_circ_or_launch(), for a rendezvous circuit,
rend_client_rendcirc_has_opened() but circuit_has_opened() is preferred here
since it will call the right function for a specific circuit purpose.

Furthermore, a controller event is triggered where the former did not.

Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Merge remote-tracking branch 'dgoulet/bug13936_025_v2'
Add two hidden-service related statistics.

The two statistics are:
 1. number of RELAY cells observed on successfully established
    rendezvous circuits; and
 2. number of .onion addresses observed as hidden-service
    directory.

Both statistics are accumulated over 24 hours, obfuscated by rounding
up to the next multiple of a given number and adding random noise,
and written to local file stats/hidserv-stats.

Notably, no statistics will be gathered on clients or services, but
only on relays.
HS stats: Add changes file and improve man page.
Merge branch 'asn-karsten-task-13192-5-squashed'
Fix unit test.

Looks like we forgot to update unit tests when we switched from 32-bit to
64-bit ints while tweaking 7cd53b7.
Define an int64_min when it is missing
LLONG_MIN => INT64_MIN.
Fix transparent proxy checks to allow OS X to use ipfw or pf

OS X uses ipfw (FreeBSD) or pf (OpenBSD). Update the transparent
proxy option checks to allow for both ipfw and pf on OS X.

Fixes bug 14002.
Fix clang warning, IPv6 address comment, buffer size typo

The address of an array in the middle of a structure will
always be non-NULL. clang recognises this and complains.
Disable the tautologous and redundant check to silence
this warning.

Fixes bug 14001.
Fix a comment in tor_addr_parse
Make log bufer 10k, not 9.78k.
Merge remote-tracking branch 'teor/bug14002-osx-transproxy-ipfw-pf'
Using macros and inline function for quick lookup of channel state.
Use channel state lookup macros in channel.c
Using channel state lookup macros in channeltls.c
Using channel state lookup macros in circuitbias.c.
Using CHANNEL_IS_OPEN macro in circuitbuild.c