Make tor-gencert create 2048 bit signing keys.
Avoid free()ing from an mmap on corrupted microdesc cache

The 'body' field of a microdesc_t holds a strdup()'d value if the
microdesc's saved_location field is SAVED_IN_JOURNAL or
SAVED_NOWHERE, and holds a pointer to the middle of an mmap if the
microdesc is SAVED_IN_CACHE.  But we weren't setting that field
until a while after we parsed the microdescriptor, which left an
interval where microdesc_free() would try to free() the middle of
the mmap().

This patch also includes a regression test.

This is a fix for #10409; bugfix on 0.2.2.6-alpha.
Avoid double-free on failure to dump_descriptor() a cached md

This is a fix for 10423, which was introducd in caa0d15c in 0.2.4.13-alpha.

Spotted by bobnomnom.
Merge remote-tracking branch 'public/bug10409_023' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
	src/or/microdesc.c

Conflict because one change was on line adjacent to line where
01206893 got fixed.
Merge branch 'bug10423' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'
Never allow OpenSSL engines to replace the RAND_SSLeay method

This fixes bug 10402, where the rdrand engine would use the rdrand
instruction, not as an additional entropy source, but as a replacement
for the entire userspace PRNG.  That's obviously stupid: even if you
don't think that RDRAND is a likely security risk, the right response
to an alleged new alleged entropy source is never to throw away all
previously used entropy sources.

Thanks to coderman and rl1987 for diagnosing and tracking this down.
Merge branch 'bug10402_redux_024' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'

Conflicts:
	src/common/crypto.c
Merge remote-tracking branch 'linus/bug10324'
Fix a logic error in circuit_stream_is_being_handled.

When I introduced the unusable_for_new_circuits flag in
62fb209d837f3f551, I had a spurious ! in the
circuit_stream_is_being_handled loop.  This made us decide that
non-unusable circuits (that is, usable ones) were the ones to avoid,
and caused it to launch a bunch of extra circuits.

Fixes bug 10456; bugfix on 0.2.4.12-alpha.
Merge branch 'bug10456' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'
forward-port recent changelogs and release notes
Fix automapping to ipv6

Bugfix on 0.2.4.7-alpha; fixes bug 10465.
Merge branch 'bug10465' into maint-0.2.4
Merge remote-tracking branch 'origin/maint-0.2.4'
and forward-port those lines too
Clarify DirPort multiplicity

Fix for #10470 as suggested by arma