diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-26 18:33:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-26 18:33:33 +0000 |
commit | 5e86e87124e643108c827366daac878e708d935d (patch) | |
tree | 9b7f3e77b257c52c77324c58fcb9624385c74319 /src/or/config.c | |
parent | 95a01599ae2e7c2006f3bdae7da34e4cdb95b4f8 (diff) | |
download | tor-5e86e87124e643108c827366daac878e708d935d.tar.gz tor-5e86e87124e643108c827366daac878e708d935d.zip |
Add basic HttpsProxyAuthenticator support, based on patch
from Adam Langley.
svn:r4115
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 62fa32e4a0..b3d2ec0ee0 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -134,6 +134,7 @@ static config_var_t config_vars[] = { VAR("HashedControlPassword",STRING, HashedControlPassword, NULL), VAR("HttpProxy", STRING, HttpProxy, NULL), VAR("HttpsProxy", STRING, HttpsProxy, NULL), + VAR("HttpsProxyAuthenticator",STRING,HttpsProxyAuthenticator,NULL), VAR("HiddenServiceOptions",LINELIST_V, RendConfigLines, NULL), VAR("HiddenServiceDir", LINELIST_S, RendConfigLines, NULL), VAR("HiddenServicePort", LINELIST_S, RendConfigLines, NULL), @@ -343,8 +344,6 @@ options_act(void) { set_exit_redirects(sl); } - /* Start backgrounding the process, if requested. */ - /* Finish backgrounding the process */ if (options->RunAsDaemon) { /* We may be calling this for the n'th time (on SIGHUP), but it's safe. */ @@ -1512,6 +1511,13 @@ options_validate(or_options_t *options) } } + if (options->HttpsProxyAuthenticator) { + if (strlen(options->HttpsProxyAuthenticator) >= 48) { + log(LOG_WARN, "HttpsProxyAuthenticator is too long (>= 48 chars)."); + result = -1; + } + } + if (options->HashedControlPassword) { if (decode_hashed_password(NULL, options->HashedControlPassword)<0) { log_fn(LOG_WARN,"Bad HashedControlPassword: wrong length or bad base64"); |