aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
Diffstat (limited to 'src/or')
-rw-r--r--src/or/or.h4
-rw-r--r--src/or/test.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/or/or.h b/src/or/or.h
index fd289c3b7..fac26daac 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -354,8 +354,8 @@ struct crypt_path_t {
};
-#define DH_KEY_LEN 192
-#define DH_ONIONSKIN_LEN 208
+#define DH_KEY_LEN CRYPTO_DH_SIZE
+#define DH_ONIONSKIN_LEN DH_KEY_LEN+16
typedef struct crypt_path_t crypt_path_t;
diff --git a/src/or/test.c b/src/or/test.c
index c288f2b71..45a1bcf2e 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -631,7 +631,6 @@ main(int c, char**v) {
log(LOG_ERR,NULL); /* make logging quieter */
setup_directory();
-#if 0
puts("========================== Buffers =========================");
test_buffers();
puts("========================== Crypto ==========================");
@@ -641,7 +640,6 @@ main(int c, char**v) {
test_util();
puts("\n========================= Onion Skins =====================");
test_onion_handshake();
-#endif
puts("\n========================= Directory Formats ===============");
test_dir_format();
puts("");