Implement and use a generic auth. cookie initialization function.
commit33c3e60a376291faed073dcfb6c9b8a0098572a0
authorGeorge Kadianakis <desnacked@riseup.net>
Tue, 4 Jun 2013 17:00:28 +0000 (4 20:00 +0300)
committerNick Mathewson <nickm@torproject.org>
Thu, 15 Aug 2013 16:03:37 +0000 (15 12:03 -0400)
tree85c817c417797c276b1a5849493773c5a5285408
parent13784d47536704e8b2fea918ffe4f9bf8c019f88
Implement and use a generic auth. cookie initialization function.

Use the generic function for both the ControlPort cookie and the
ExtORPort cookie.

Also, place the global cookie variables in the heap so that we can
pass them around more easily as pointers.

Also also, fix the unit tests that broke by this change.

Conflicts:
src/or/config.h
src/or/ext_orport.c
src/or/config.c
src/or/config.h
src/or/control.c
src/or/ext_orport.c
src/or/ext_orport.h
src/test/test_extorport.c