summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-23 01:23:53 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-23 01:23:53 -0400
commit2527acb2dc8b71515ac0c882e3af4fc034ab1b48 (patch)
tree48bdb4a6919a11fdb337969bb46353701895ad54 /src/or/router.c
parentcb7fff193e2749f241e646b155de3ee33623606e (diff)
parentb80a8bba199b9adfb9c893641ba770566fa548e1 (diff)
downloadtor-2527acb2dc8b71515ac0c882e3af4fc034ab1b48.tar.gz
tor-2527acb2dc8b71515ac0c882e3af4fc034ab1b48.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Conflicts: src/common/Makefile.am src/or/control.c
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 63ed4cf404..2b11a52026 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -492,8 +492,8 @@ init_keys(void)
char fingerprint_line[MAX_NICKNAME_LEN+FINGERPRINT_LEN+3];
const char *mydesc;
crypto_pk_env_t *prkey;
- char digest[20];
- char v3_digest[20];
+ char digest[DIGEST_LEN];
+ char v3_digest[DIGEST_LEN];
char *cp;
or_options_t *options = get_options();
dirinfo_type_t type;
@@ -505,7 +505,8 @@ init_keys(void)
if (!key_lock)
key_lock = tor_mutex_new();
- /* There are a couple of paths that put us here before */
+ /* There are a couple of paths that put us here before we've asked
+ * openssl to initialize itself. */
if (crypto_global_init(get_options()->HardwareAccel,
get_options()->AccelName,
get_options()->AccelDir)) {