|
@@ -385,16 +385,6 @@ static const char test_ri2[] =
|
|
"cf34GXHv61XReJF3AlzNHFpbrPOYmowmhrTULKyMqow=\n"
|
|
"cf34GXHv61XReJF3AlzNHFpbrPOYmowmhrTULKyMqow=\n"
|
|
"-----END SIGNATURE-----\n";
|
|
"-----END SIGNATURE-----\n";
|
|
|
|
|
|
-static const char test_md_16[] =
|
|
|
|
- "onion-key\n"
|
|
|
|
- "-----BEGIN RSA PUBLIC KEY-----\n"
|
|
|
|
- "MIGJAoGBANBJz8Vldl12aFeSMPLiA4nOetLDN0oxU8bB1SDhO7Uu2zdWYVYAF5J0\n"
|
|
|
|
- "st7WvrVy/jA9v/fsezNAPskBanecHRSkdMTpkcgRPMHE7CTGEwIy1Yp1X4bPgDlC\n"
|
|
|
|
- "VCnbs5Pcts5HnWEYNK7qHDAUn+IlmjOO+pTUY8uyq+GQVz6H9wFlAgMBAAE=\n"
|
|
|
|
- "-----END RSA PUBLIC KEY-----\n"
|
|
|
|
- "ntor-onion-key Gg73xH7+kTfT6bi1uNVx9gwQdQas9pROIfmc4NpAdC4=\n"
|
|
|
|
- "p reject 25,119,135-139,445,563,1214,4661-4666,6346-6429,6699,6881-6999\n";
|
|
|
|
-
|
|
|
|
static const char test_md_18[] =
|
|
static const char test_md_18[] =
|
|
"onion-key\n"
|
|
"onion-key\n"
|
|
"-----BEGIN RSA PUBLIC KEY-----\n"
|
|
"-----BEGIN RSA PUBLIC KEY-----\n"
|
|
@@ -436,15 +426,6 @@ test_md_generate(void *arg)
|
|
ri = router_parse_entry_from_string(test_ri, NULL, 0, 0, NULL, NULL);
|
|
ri = router_parse_entry_from_string(test_ri, NULL, 0, 0, NULL, NULL);
|
|
tt_assert(ri);
|
|
tt_assert(ri);
|
|
|
|
|
|
- /* XXXX test family lines. */
|
|
|
|
- /* XXXX test method 14 for A lines. */
|
|
|
|
- /* XXXX test method 15 for P6 lines. */
|
|
|
|
-
|
|
|
|
- microdesc_free(md);
|
|
|
|
- md = NULL;
|
|
|
|
- md = dirvote_create_microdescriptor(ri, 16);
|
|
|
|
- tt_str_op(md->body, OP_EQ, test_md_16);
|
|
|
|
-
|
|
|
|
microdesc_free(md);
|
|
microdesc_free(md);
|
|
md = NULL;
|
|
md = NULL;
|
|
md = dirvote_create_microdescriptor(ri, 18);
|
|
md = dirvote_create_microdescriptor(ri, 18);
|