]> git.ipfire.org Git - thirdparty/tor.git/commit
Add some asserts to get_{tlsclient|server}_identity_key
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Oct 2010 17:54:12 +0000 (13:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Oct 2010 17:54:12 +0000 (13:54 -0400)
commit03adb8caadb894a7fcd7c7a24e3147fa6d3fc4f9
treea15f7db95aec32ed4aec9edcaca217b6ff94dae1
parent704076680abd188dcb3432403e591a6cb614a1dc
Add some asserts to get_{tlsclient|server}_identity_key

We now require that:
  - Only actual servers should ever call get_server_identity_key
  - If you're being a client or bridge, the client and server keys should
    differ.
  - If you're being a public relay, the client and server keys
    should be the same.
src/or/router.c