diff options
author | George Kadianakis <desnacked@riseup.net> | 2013-06-04 20:00:28 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-15 12:03:37 -0400 |
commit | 33c3e60a376291faed073dcfb6c9b8a0098572a0 (patch) | |
tree | 85c817c417797c276b1a5849493773c5a5285408 /src/or/config.h | |
parent | 13784d47536704e8b2fea918ffe4f9bf8c019f88 (diff) | |
download | tor-33c3e60a376291faed073dcfb6c9b8a0098572a0.tar.gz tor-33c3e60a376291faed073dcfb6c9b8a0098572a0.zip |
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
Diffstat (limited to 'src/or/config.h')
-rw-r--r-- | src/or/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.h b/src/or/config.h index 16a8a350d5..eb16e74610 100644 --- a/src/or/config.h +++ b/src/or/config.h @@ -90,6 +90,10 @@ uint32_t get_effective_bwburst(const or_options_t *options); char *get_transport_bindaddr_from_config(const char *transport); +int init_cookie_authentication(const char *fname, const char *header, + int cookie_len, + uint8_t **cookie_out, int *cookie_is_set_out); + or_options_t *options_new(void); void config_register_addressmaps(const or_options_t *options); |