summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/router.c b/src/or/router.c
index c53bb8b4e9..f7a50ae88f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -148,11 +148,11 @@ set_client_identity_key(crypto_pk_env_t *k)
client_identitykey = k;
}
-/** Returns the current client identity key; requires that the key has
- * been set.
+/** Returns the current client identity key for use on outgoing TLS
+ * connections; requires that the key has been set.
*/
crypto_pk_env_t *
-get_client_identity_key(void)
+get_tlsclient_identity_key(void)
{
tor_assert(client_identitykey);
return client_identitykey;
@@ -490,7 +490,7 @@ init_keys(void)
set_client_identity_key(prkey);
/* Create a TLS context. */
if (tor_tls_context_init(0,
- get_client_identity_key(),
+ get_tlsclient_identity_key(),
NULL,
MAX_SSL_KEY_LIFETIME_ADVERTISED) < 0) {
log_err(LD_GENERAL,"Error creating TLS context for Tor client.");
@@ -586,7 +586,7 @@ init_keys(void)
/* 3. Initialize link key and TLS context. */
if (tor_tls_context_init(public_server_mode(options),
- get_client_identity_key(),
+ get_tlsclient_identity_key(),
get_server_identity_key(),
MAX_SSL_KEY_LIFETIME_ADVERTISED) < 0) {
log_err(LD_GENERAL,"Error initializing TLS context");