]> git.ipfire.org Git - thirdparty/tor.git/commit
Split crypto_global_init() into pre/post config
authorNick Mathewson <nickm@torproject.org>
Wed, 12 Feb 2014 16:56:29 +0000 (11:56 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 12 Feb 2014 17:04:07 +0000 (12:04 -0500)
commitd3fb846d8c98c13d349762682e714e8312f20270
tree68d2ca881730b581d0f94faf9c548c672a9c7f0f
parent0e97c8e23e2572c14dd0f4f4fbfca77ee8a48be2
Split crypto_global_init() into pre/post config

It's increasingly apparent that we want to make sure we initialize our
PRNG nice and early, or else OpenSSL will do it for us.  (OpenSSL
doesn't do _too_ bad a job, but it's nice to do it ourselves.)

We'll also need this for making sure we initialize the siphash key
before we do any hashes.
src/common/crypto.c
src/common/crypto.h
src/or/main.c