aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2010-10-01 14:06:57 -0700
committerRobert Ransom <rransom.8774@gmail.com>2010-10-04 17:57:29 -0700
commitd3879dbd16ccc7b6bc8393f92343f8669f8e0dc4 (patch)
treeb06e23d4df5cbfeaca04ef4c064db52edf148074 /src/or/router.c
parent89dffade8da372e296ae2d564dda102e9a7d566b (diff)
downloadtor-d3879dbd16ccc7b6bc8393f92343f8669f8e0dc4.tar
tor-d3879dbd16ccc7b6bc8393f92343f8669f8e0dc4.tar.gz
Refactor tor_tls_context_new:
* Make tor_tls_context_new internal to tortls.c, and return the new tor_tls_context_t from it. * Add a public tor_tls_context_init wrapper function to replace it.
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index bc0e67c9b..bde6e25a7 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -472,7 +472,7 @@ init_keys(void)
}
set_identity_key(prkey);
/* Create a TLS context; default the client nickname to "client". */
- if (tor_tls_context_new(get_identity_key(), MAX_SSL_KEY_LIFETIME) < 0) {
+ if (tor_tls_context_init(get_identity_key(), MAX_SSL_KEY_LIFETIME) < 0) {
log_err(LD_GENERAL,"Error creating TLS context for Tor client.");
return -1;
}
@@ -550,7 +550,7 @@ init_keys(void)
tor_free(keydir);
/* 3. Initialize link key and TLS context. */
- if (tor_tls_context_new(get_identity_key(), MAX_SSL_KEY_LIFETIME) < 0) {
+ if (tor_tls_context_init(get_identity_key(), MAX_SSL_KEY_LIFETIME) < 0) {
log_err(LD_GENERAL,"Error initializing TLS context");
return -1;
}