diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-07 06:10:54 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-07 06:10:54 +0000 |
commit | 0bfef523dfe4c4dc83ba2a444045c118ca5ac2b6 (patch) | |
tree | ce30032e0b108f09f5030e10801be06952759065 /src/or/router.c | |
parent | 7512be0b650198b074345b562dbe0c4edc74653a (diff) | |
download | tor-0bfef523dfe4c4dc83ba2a444045c118ca5ac2b6.tar.gz tor-0bfef523dfe4c4dc83ba2a444045c118ca5ac2b6.zip |
simplify the tortls api: we only support being a "server", that
is, even tor clients do the same sort of handshake.
this has been true for years, so it's best to get rid of the
stale code.
svn:r6557
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index d9186adc1e..ee4cba30cf 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -260,7 +260,7 @@ init_keys(void) return -1; set_identity_key(prkey); /* Create a TLS context; default the client nickname to "client". */ - if (tor_tls_context_new(get_identity_key(), 1, + if (tor_tls_context_new(get_identity_key(), options->Nickname ? options->Nickname : "client", MAX_SSL_KEY_LIFETIME) < 0) { log_err(LD_GENERAL,"Error creating TLS context for OP."); @@ -302,7 +302,7 @@ init_keys(void) } /* 3. Initialize link key and TLS context. */ - if (tor_tls_context_new(get_identity_key(), 1, options->Nickname, + if (tor_tls_context_new(get_identity_key(), options->Nickname, MAX_SSL_KEY_LIFETIME) < 0) { log_err(LD_GENERAL,"Error initializing TLS context"); return -1; |