aboutsummaryrefslogtreecommitdiff
path: root/src/or/hibernate.c
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2010-10-03 22:38:53 -0700
committerRobert Ransom <rransom.8774@gmail.com>2010-10-04 21:51:53 -0700
commita2bb0bfdd5731ef3cebf6e14fa7bebb98d5f2d8f (patch)
tree79ff1358306000c378f020da4bdb3a0483e38bb1 /src/or/hibernate.c
parent17efbe031d4b96d872b2e0bdf3785b232f49bf44 (diff)
downloadtor-a2bb0bfdd5731ef3cebf6e14fa7bebb98d5f2d8f.tar.gz
tor-a2bb0bfdd5731ef3cebf6e14fa7bebb98d5f2d8f.zip
Maintain separate server and client identity keys when appropriate.
Fixes a bug described in ticket #988.
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r--src/or/hibernate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c
index 3c6a3fa033..e9be5930d1 100644
--- a/src/or/hibernate.c
+++ b/src/or/hibernate.c
@@ -522,7 +522,7 @@ accounting_set_wakeup_time(void)
uint64_t time_to_exhaust_bw;
int time_to_consider;
- if (! identity_key_is_set()) {
+ if (! server_identity_key_is_set()) {
if (init_keys() < 0) {
log_err(LD_BUG, "Error initializing keys");
tor_assert(0);
@@ -530,7 +530,7 @@ accounting_set_wakeup_time(void)
}
format_iso_time(buf, interval_start_time);
- crypto_pk_get_digest(get_identity_key(), digest);
+ crypto_pk_get_digest(get_server_identity_key(), digest);
d_env = crypto_new_digest_env();
crypto_digest_add_bytes(d_env, buf, ISO_TIME_LEN);