Add some asserts to get_{tlsclient|server}_identity_key
commitdc557e8164003d6c09b620333902d7dae3762794
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Oct 2010 17:54:12 +0000 (21 13:54 -0400)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 26 Oct 2011 12:16:54 +0000 (26 14:16 +0200)
tree377ca5140491ebe56d6ed04401e718c9069e8a27
parent2a2301e41117ad8439dbe8039085202fa0d6f6ed
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