failing_routerdescs.inc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. /* This one actually succeeds */
  2. static const char EX_RI_MINIMAL[] =
  3. "router fred 127.0.0.1 9001 0 9002\n"
  4. "signing-key\n"
  5. "-----BEGIN RSA PUBLIC KEY-----\n"
  6. "MIGJAoGBAObzT4opT9uaThByupbb96tYxVpGxzL9CRPKUcU0beGpHyognD9USHWc\n"
  7. "SpSpKfBL5P3xr2i/XTs34M4UTbT9PE7bVyxv7RD/BZmI4gc8R3PMU77xxbpEU5bK\n"
  8. "LF3QUPpuB88m/2fXUGgMNVDc5MIq6pod2NRoDpeU7WA8T3ewXzK5AgMBAAE=\n"
  9. "-----END RSA PUBLIC KEY-----\n"
  10. "onion-key\n"
  11. "-----BEGIN RSA PUBLIC KEY-----\n"
  12. "MIGJAoGBAM1QKsQiup9DNMCgNeE2FkAhCWzpMZKCn1nNlZbDGfE3Z22ex6bdWWY6\n"
  13. "ocEZ3JZDsZsnaZrdYxrL3Mquq7MbHdfx90EdlOvDRP1SAIbZ55mLR77fZTu4BKd/\n"
  14. "h9BC6I26uZE0QavFq3+BhoVVhVn5Mqv05nR9CeUMSSZLxw/RJm4DAgMBAAE=\n"
  15. "-----END RSA PUBLIC KEY-----\n"
  16. "published 2014-10-05 12:00:00\n"
  17. "bandwidth 1000 1000 1000\n"
  18. "reject *:*\n"
  19. "router-signature\n"
  20. "-----BEGIN SIGNATURE-----\n"
  21. "Ft/y3JXowjItgfTHwYcZzuUgXrskluoINW5sr+GQoNYE2F4sT8o0tBBJwqJ6FwKd\n"
  22. "fkIprv9UXqkv5iY+pXSYSI12mY1K5GMNkXiObk46NjuoNNP9l8oidhO6eNfcE+k3\n"
  23. "CRIYS4FbBaD0fWUSwgMuo0Bp83/Wzp3B9ytEBh0/624=\n"
  24. "-----END SIGNATURE-----\n";
  25. /* So does this, and it's bigger. */
  26. static const char EX_RI_MAXIMAL[] =
  27. "router fred 127.0.0.1 9001 0 9002\n"
  28. "signing-key\n"
  29. "-----BEGIN RSA PUBLIC KEY-----\n"
  30. "MIGJAoGBANNI56H+b7SW5LMzvXyY5NJzXszsHZZ4O1CPm4CePhBsAz1r0s1JYJ1F\n"
  31. "Anrc0mEcLtmj0c5+HnhPBNrfpjO6G94Wp3NZMVykHDhfNVDBRyFZMroG8/GlysYB\n"
  32. "MQPGQYR0xBgiuclNHoyk/vygQhZekumamu2O86EIPcfg9LhGIgEbAgMBAAE=\n"
  33. "-----END RSA PUBLIC KEY-----\n"
  34. "onion-key\n"
  35. "-----BEGIN RSA PUBLIC KEY-----\n"
  36. "MIGJAoGBALvuNVSmg6R9USFbQcNbRjMCJAV0Rwdv0DlS6Rl02ibJgb01G7v391xE\n"
  37. "d9Njzgf93n8gOrE195bkUbvS6k/DM3HFGgArq6q9AZ2LTbu3KbAYy1YPsSIh07kB\n"
  38. "/8kkvRRGx37X9WGZU3j5VUEuzqI//xDE9lbanlnnFXpnb6ymehDJAgMBAAE=\n"
  39. "-----END RSA PUBLIC KEY-----\n"
  40. "published 2014-10-05 12:00:00\n"
  41. "bandwidth 1000 1000 1000\n"
  42. "reject 127.0.0.1:*\n"
  43. "accept *:80\n"
  44. "reject *:*\n"
  45. "ipv6-policy accept 80,100,101\n"
  46. "ntor-onion-key s7rSohmz9SXn8WWh1EefTHIsWePthsEntQi0WL+ScVw\n"
  47. "uptime 1000\n"
  48. "hibernating 0\n"
  49. "unrecognized-keywords are just dandy in this format\n"
  50. "platform Tor 0.2.4.23 on a Banana PC Jr 6000 Series\n"
  51. "contact O.W.Jones\n"
  52. "fingerprint CC43 DC8E 8C9E 3E6D 59CD 0399 2491 0C8C E1E4 50D2\n"
  53. "read-history 900 1,2,3,4\n"
  54. "write-history 900 1,2,3,4\n"
  55. "extra-info-digest AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\n"
  56. "hidden-service-dir\n"
  57. "allow-single-hop-exits\n"
  58. "family $AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA $BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\n"
  59. "caches-extra-info\n"
  60. "or-address [::1:2:3:4]:9999\n"
  61. "or-address 127.0.0.99:10000\n"
  62. "opt fred is a fine router\n"
  63. "router-signature\n"
  64. "-----BEGIN SIGNATURE-----\n"
  65. "x5cxL2h2UsEKk2OVnCTxOF8a89HAe/HwQnSlrBy8+l0YdVCcePDJhm1WyWU7ToHZ\n"
  66. "K8auwreuw+u/n14sQHPYrM9NQE689hP4LC9AYOnrCnMHysfVqKuou+DSKYYRgs0D\n"
  67. "ySCmJ9p+xekfmms+JBmS5o5DVo48VGlG0VksegoB264=\n"
  68. "-----END SIGNATURE-----\n"
  69. ;
  70. /* I've messed with 12 bits of the signature on this one */
  71. static const char EX_RI_BAD_SIG1[] =
  72. "router fred 127.0.0.1 9001 0 9002\n"
  73. "signing-key\n"
  74. "-----BEGIN RSA PUBLIC KEY-----\n"
  75. "MIGJAoGBAObzT4opT9uaThByupbb96tYxVpGxzL9CRPKUcU0beGpHyognD9USHWc\n"
  76. "SpSpKfBL5P3xr2i/XTs34M4UTbT9PE7bVyxv7RD/BZmI4gc8R3PMU77xxbpEU5bK\n"
  77. "LF3QUPpuB88m/2fXUGgMNVDc5MIq6pod2NRoDpeU7WA8T3ewXzK5AgMBAAE=\n"
  78. "-----END RSA PUBLIC KEY-----\n"
  79. "onion-key\n"
  80. "-----BEGIN RSA PUBLIC KEY-----\n"
  81. "MIGJAoGBAM1QKsQiup9DNMCgNeE2FkAhCWzpMZKCn1nNlZbDGfE3Z22ex6bdWWY6\n"
  82. "ocEZ3JZDsZsnaZrdYxrL3Mquq7MbHdfx90EdlOvDRP1SAIbZ55mLR77fZTu4BKd/\n"
  83. "h9BC6I26uZE0QavFq3+BhoVVhVn5Mqv05nR9CeUMSSZLxw/RJm4DAgMBAAE=\n"
  84. "-----END RSA PUBLIC KEY-----\n"
  85. "published 2014-10-05 12:00:00\n"
  86. "bandwidth 1000 1000 1000\n"
  87. "reject *:*\n"
  88. "router-signature\n"
  89. "-----BEGIN SIGNATURE-----\n"
  90. "Ft/y3JXowjItgfTHwYcZzuUgXrskluoINW5sr+GQoNYE2F4sT8o0tBBJwqJ6FwKd\n"
  91. "fkIprv9UXqkv5iY+pXSYXX12mY1K5GMNkXiObk46NjuoNNP9l8oidhO6eNfcE+k3\n"
  92. "CRIYS4FbBaD0fWUSwgMuo0Bp83/Wzp3B9ytEBh0/624=\n"
  93. "-----END SIGNATURE-----\n";
  94. /* This is a good signature of the wrong data: I changed 'published' */
  95. static const char EX_RI_BAD_SIG2[] =
  96. "router fred 127.0.0.1 9001 0 9002\n"
  97. "signing-key\n"
  98. "-----BEGIN RSA PUBLIC KEY-----\n"
  99. "MIGJAoGBAObzT4opT9uaThByupbb96tYxVpGxzL9CRPKUcU0beGpHyognD9USHWc\n"
  100. "SpSpKfBL5P3xr2i/XTs34M4UTbT9PE7bVyxv7RD/BZmI4gc8R3PMU77xxbpEU5bK\n"
  101. "LF3QUPpuB88m/2fXUGgMNVDc5MIq6pod2NRoDpeU7WA8T3ewXzK5AgMBAAE=\n"
  102. "-----END RSA PUBLIC KEY-----\n"
  103. "onion-key\n"
  104. "-----BEGIN RSA PUBLIC KEY-----\n"
  105. "MIGJAoGBAM1QKsQiup9DNMCgNeE2FkAhCWzpMZKCn1nNlZbDGfE3Z22ex6bdWWY6\n"
  106. "ocEZ3JZDsZsnaZrdYxrL3Mquq7MbHdfx90EdlOvDRP1SAIbZ55mLR77fZTu4BKd/\n"
  107. "h9BC6I26uZE0QavFq3+BhoVVhVn5Mqv05nR9CeUMSSZLxw/RJm4DAgMBAAE=\n"
  108. "-----END RSA PUBLIC KEY-----\n"
  109. "published 2014-10-05 12:00:01\n"
  110. "bandwidth 1000 1000 1000\n"
  111. "reject *:*\n"
  112. "router-signature\n"
  113. "-----BEGIN SIGNATURE-----\n"
  114. "Ft/y3JXowjItgfTHwYcZzuUgXrskluoINW5sr+GQoNYE2F4sT8o0tBBJwqJ6FwKd\n"
  115. "fkIprv9UXqkv5iY+pXSYSI12mY1K5GMNkXiObk46NjuoNNP9l8oidhO6eNfcE+k3\n"
  116. "CRIYS4FbBaD0fWUSwgMuo0Bp83/Wzp3B9ytEBh0/624=\n"
  117. "-----END SIGNATURE-----\n";
  118. /* This one will fail while tokenizing the first line. */
  119. static const char EX_RI_BAD_TOKENS[] =
  120. "router bob\n"
  121. "signing-key\n"
  122. "-----BEGIN RSA PUBLIC KEY-----\n"
  123. "MIGJAoGBANGCgvZc+JRtAzuzk3gBD2rH9SHrXzjJ1wqdU3tLKr7FamKCMI2pLwSA\n"
  124. "FZUpTuSqB9wJ/iVcYws+/kA3FjLqgPtzJFI0SVLvQcz5oIC1rEWpuP6t88duMlO9\n"
  125. "flOUzmYu29sBffrXkQr8pesYvakyXArOJVeRR7fSvouneV5aDYWrAgMBAAE=\n"
  126. "-----END RSA PUBLIC KEY-----\n"
  127. "onion-key\n"
  128. "-----BEGIN RSA PUBLIC KEY-----\n"
  129. "MIGJAoGBAML+pYZoYc+whKLijupd63xn0gzlEQqe7k07x/lWMqWFT37FfG6YeNr5\n"
  130. "fpFoo77FDfuFaL+VfPfI8i88g157hcPKBVX6OyRH54+l5By0tN91S0H+abXjXQpv\n"
  131. "U/Bvmul+5QpUeVJa1nPg71HRIauoDnBNexUQ7Xf/Bwb2xCt+IJ6DAgMBAAE=\n"
  132. "-----END RSA PUBLIC KEY-----\n"
  133. "published 2014-10-05 12:00:00\n"
  134. "bandwidth 1000 1000 1000\n"
  135. "reject *:*\n"
  136. "router-signature\n"
  137. "-----BEGIN SIGNATURE-----\n"
  138. "tbxtYYzyVqi6w6jz1k8NPjFvZaSNR0WzixVTTvKKGoMPx/6+Z8QAFK1ILzRUVucB\n"
  139. "nRhmZMFaPr3vREMErLRE47ODAzwoBCE9C+vYFvROhgfzuQ3cYXla+4sMaRXYZzjH\n"
  140. "PQ82bTwvSbHsR8fTTgePD/Ac082WxXTGpx6HOLBfNsQ=\n"
  141. "-----END SIGNATURE-----\n"
  142. ;
  143. static const char EX_RI_BAD_PUBLISHED[] =
  144. "router fred 127.0.0.1 9001 0 9002\n"
  145. "signing-key\n"
  146. "-----BEGIN RSA PUBLIC KEY-----\n"
  147. "MIGJAoGBAMoipSwZgTG6SpSOm6ENbyALS1Ljqqa1LSGmtHSRfGYgUQGWZXERXKQj\n"
  148. "P5ql6o7EbGr1wnispGW/KB8Age09jGDvd/oGhQ9TDFluhLZon3obkZSFw7f9iA7Q\n"
  149. "s29rNxoeXXLZVyS7+sux70b8x2Dt4CeG8GA8nQLljy1euwU+qYYJAgMBAAE=\n"
  150. "-----END RSA PUBLIC KEY-----\n"
  151. "onion-key\n"
  152. "-----BEGIN RSA PUBLIC KEY-----\n"
  153. "MIGJAoGBAPzfzQ+2WFMUvnB3z0xD+zwczWcFyYYNW8Lj7/aRGSNN2DICp5uzSjKq\n"
  154. "qkYQ+C8jG21+MR2PE+ZBmq6CL5mvlFKlWKouXUlN7BejwWf2gw0UYag0SYctae1b\n"
  155. "bu8NuUEvdeGWg5Odgs+abH7U9S0hEtjKrmE5vvJS5L841IcaPLCFAgMBAAE=\n"
  156. "-----END RSA PUBLIC KEY-----\n"
  157. "published 2014-10-05 99:00:00\n"
  158. "bandwidth 1000 1000 1000\n"
  159. "reject *:*\n"
  160. "router-signature\n"
  161. "-----BEGIN SIGNATURE-----\n"
  162. "G92pnwCIXGJ9Q0fI9y4m/fHpWCsD0Hnk81/6T4TmRH3jt77fc0uRdomUOC5id4kz\n"
  163. "J2M4vqXwRs5OK+eaPbtxf8Yv6FPmB3OBNCIhwNHIIqzKQStHUhPxD3P6j8uJFwot\n"
  164. "/CNGciDN+owZ2DzwrXpszDfzcyp/nmwhApbi3W601vY=\n"
  165. "-----END SIGNATURE-----\n"
  166. ;
  167. /* Bandwidth field isn't an integer. */
  168. static const char EX_RI_BAD_BANDWIDTH[] =
  169. "router fred 127.0.0.1 9001 0 9002\n"
  170. "signing-key\n"
  171. "-----BEGIN RSA PUBLIC KEY-----\n"
  172. "MIGJAoGBAN32LAvXQaq0p554FcL4LVwnxyiZvscfuFnfpXwWTDRJJHd2+JCttWIx\n"
  173. "v+eW7dNq+rq/tzSzaZwnp8b4V2skLRojSt6UUHD234eZcsPwUNhSr0y1eMuoZbnV\n"
  174. "UBBPevpuXea85aSFEXXRlIpQfvFc43y3/UFoRzo5iMPqReo2uQ4BAgMBAAE=\n"
  175. "-----END RSA PUBLIC KEY-----\n"
  176. "onion-key\n"
  177. "-----BEGIN RSA PUBLIC KEY-----\n"
  178. "MIGJAoGBAMBuF1GvOyVcRDNjzlEmGHJkTA7qkaWgTp33NSY/DPEJoahg0Qswuh2w\n"
  179. "1YCBqem6Txp+/Vl9hoUoUGwb7Vwq0+YDMSyr0z3Ih2NcNjOMZPVtjJuv+3wXrQC8\n"
  180. "LPpCpfU9m9QvhQ7f9zprEqUHOQTT0v5j2a5bpfd++6LFxrMUNwbfAgMBAAE=\n"
  181. "-----END RSA PUBLIC KEY-----\n"
  182. "published 2014-10-05 12:00:00\n"
  183. "bandwidth hello world today\n"
  184. "reject *:*\n"
  185. "router-signature\n"
  186. "-----BEGIN SIGNATURE-----\n"
  187. "svABTGDNJOgaiPLqDlkRU6ldYJcoEe2qHlr4O30lVM2hS3Gg6o4QARL7QRt7VepT\n"
  188. "SruR6pE83xOr7/5Ijq5PlamS4WtODMJSH3DXT2hM5dYYrEX5jsJNZTQ+cYwPQI3y\n"
  189. "ykuvQIutH6ipz5MYc9n0GWAzDjLq1G8wlcEfFXQLD10=\n"
  190. "-----END SIGNATURE-----\n"
  191. ;
  192. /* Onion key is actually a signature. */
  193. static const char EX_RI_BAD_ONIONKEY1[] =
  194. "router fred 127.0.0.1 9001 0 9002\n"
  195. "signing-key\n"
  196. "-----BEGIN RSA PUBLIC KEY-----\n"
  197. "MIGJAoGBANByIdFOKA3r2nnWyLjdZE8oGHqJE62T1zjW/nsCzCJQ8/kBMRYeGDu4\n"
  198. "SeUJJ2rsh2t3PNzkqJM14f4DKmc2q76STsOW0Zcj70Bjhxb9r/OfyELVsi+x3CsE\n"
  199. "Zo/W4JtdlVFjqevhODJdyFNLKOvqwG7sZo/K++Hx01Iu0zXLeg8nAgMBAAE=\n"
  200. "-----END RSA PUBLIC KEY-----\n"
  201. "onion-key\n"
  202. "-----BEGIN RSA PUBLIC KEY-----\n"
  203. "svABTGDNJOgaiPLqDlkRU6ldYJcoEe2qHlr4O30lVM2hS3Gg6o4QARL7QRt7VepT\n"
  204. "SruR6pE83xOr7/5Ijq5PlamS4WtODMJSH3DXT2hM5dYYrEX5jsJNZTQ+cYwPQI3y\n"
  205. "ykuvQIutH6ipz5MYc9n0GWAzDjLq1G8wlcEfFXQLD10=\n"
  206. "-----END RSA PUBLIC KEY-----\n"
  207. "published 2014-10-05 12:00:00\n"
  208. "bandwidth 1000 1000 1000\n"
  209. "reject *:*\n"
  210. "router-signature\n"
  211. "-----BEGIN SIGNATURE-----\n"
  212. "Cc/Y22KFvxXPXZtjvGIyQdjm4EMhXVXJEBwt8PvK7qlO1AgiVjEBPkUrTQQ/paLQ\n"
  213. "lmeCN6jEVcZ8lNiVZgzRQ/2mTO3xLBPj26UNSDuouUwZ01tZ4wPENylNYnLKv5hg\n"
  214. "gYARg/nXEJiTVe9LHl99Hr9EWWruRG2wFQjjTILaWzI=\n"
  215. "-----END SIGNATURE-----\n"
  216. ;
  217. /* Onion key has exponent 3 */
  218. static const char EX_RI_BAD_ONIONKEY2[] =
  219. "router fred 127.0.0.1 9001 0 9002\n"
  220. "signing-key\n"
  221. "-----BEGIN RSA PUBLIC KEY-----\n"
  222. "MIGJAoGBAKP1kWHsH/BZhNSZmn0FyzIrAHtMl1IVPzc7ABbx+kK+IIEMD9k1fy2h\n"
  223. "AP2JTm2UmJDUwutVxPsxmndI+9QsRDpu33E5Ai4U1Rb6Qu+2BRj43YAyg414caIu\n"
  224. "J5LLn6bOzt7gtz0+q69WHbnwgI4zUgUbwYpwoB7k0dRY97xip9fHAgMBAAE=\n"
  225. "-----END RSA PUBLIC KEY-----\n"
  226. "onion-key\n"
  227. "-----BEGIN RSA PUBLIC KEY-----\n"
  228. "MIGHAoGBANBKlyoqApWzG7UzmXcxhXM4T370FbN1edPbw4WAczBDXJslXCU9Xk1r\n"
  229. "fKfoi/+WiTGvH7RcZWPm7wnThq2u2EAO/IPPcLE9cshLBkK28EvDg5K/WsYedbY9\n"
  230. "1Gou+7ZSwMEPv2b13c7eWnSW1YvFa64pVDKu2sKnIjX6Bm0HZGbXAgED\n"
  231. "-----END RSA PUBLIC KEY-----\n"
  232. "published 2014-10-05 12:00:00\n"
  233. "bandwidth 1000 1000 1000\n"
  234. "reject *:*\n"
  235. "router-signature\n"
  236. "-----BEGIN SIGNATURE-----\n"
  237. "cYcBOlapA+R4xq3nn5CjpnzNXdDArMlHuXv4MairjleF1n755ecH8A/R8YIc2ioV\n"
  238. "n/C1TACzFVQ12Q9P3iikVOjIXNxYzaz4Lm/L/Lq4sEOPRJC38QEXeIHEaeM51lE6\n"
  239. "p6kCqXcGu/51p5vAFCSiXI1ciucmx93N+TH1yGKRLV0=\n"
  240. "-----END SIGNATURE-----\n"
  241. ;
  242. static const char EX_RI_BAD_PORTS[] =
  243. "router fred 127.0.0.1 900001 0 9002\n"
  244. "signing-key\n"
  245. "-----BEGIN RSA PUBLIC KEY-----\n"
  246. "MIGJAoGBANVi/MVWhzT5uo3Jxw4ElS7UGmA24dnckdkCLetMhZOcE9e9mg4WcImL\n"
  247. "NuBe2L/9YaL4PFVchCGlq73phKG6yFdqJdjDV8Qh9MJdAYWW2ORrjRvCrspPaYPN\n"
  248. "BGJrkD2Gd4u3sq7f26TIkzmBx0Acd/FD4PQf8+XOt9YYd36ooS4vAgMBAAE=\n"
  249. "-----END RSA PUBLIC KEY-----\n"
  250. "onion-key\n"
  251. "-----BEGIN RSA PUBLIC KEY-----\n"
  252. "MIGJAoGBALtP4cIpAYp9nqo1ak4SxALcndFw4o51U36R4oa+uJS/lYQPHkMMOj6K\n"
  253. "+AVnj9sxkDJ1POaU5lsCQ5JPG1t+Tkh7vDlJb6RCUy25vJOuaQCb9GVVY7KQTJqA\n"
  254. "E0fU73JdKACNjMlbF36aliQhrG4Fq2Uv+y7yp8qsRxQ8jvzEMES/AgMBAAE=\n"
  255. "-----END RSA PUBLIC KEY-----\n"
  256. "published 2014-10-05 12:00:00\n"
  257. "bandwidth 1000 1000 1000\n"
  258. "reject *:*\n"
  259. "router-signature\n"
  260. "-----BEGIN SIGNATURE-----\n"
  261. "xzu2T+pMZtdsS5q1cwXM2hMIH2c8mpAV31G2hKIuiQRwtPD1ne4iJsnoVCXhFakd\n"
  262. "QTq7eTXM174fGWyIT93wvQx/Uqnp29dGZp/VaNOsxHFdYVB4VIVqkBh757h+PSJ+\n"
  263. "VNV5JUm4XQ1QbmniJGdTQp4PLBM++fOXMR3ZNd6rt4o=\n"
  264. "-----END SIGNATURE-----\n"
  265. ;
  266. static const char EX_RI_NEG_BANDWIDTH[] =
  267. "router fred 100.127.0.0.1 9001 0 9002\n"
  268. "signing-key\n"
  269. "-----BEGIN RSA PUBLIC KEY-----\n"
  270. "MIGJAoGBAMCG/ZCXNCF02uXRSCP7qWBN75jDMQZ363ubnQWhF9KDDNWWiwj3UiZR\n"
  271. "zqsM4zKRgjtarWZvp2qxKABFAODd+j9iq5DvUGRbbXv+aR8TT/ifMtwwxHZQBk1F\n"
  272. "1hbsLdwWzGIiyz5k2MVhXnt6JTlklH2hgT++gt9YTHYKxkssaq5TAgMBAAE=\n"
  273. "-----END RSA PUBLIC KEY-----\n"
  274. "onion-key\n"
  275. "-----BEGIN RSA PUBLIC KEY-----\n"
  276. "MIGJAoGBAM3vk/4kOTB1VXrve29JeHOzNUsPwKruBcjxJf+aatxjf6KO2/RW41bM\n"
  277. "gRYq9V7VAYeZTsbS727fy03F5rk3QIBhMJxm9FHatQ6rT/iEDD4Q1UZQsNtm+OLf\n"
  278. "/TkZZhgfB3MiDQ4ld/+GKd7qww8HXTE+m/g1rXNyZPKozn8K7YUHAgMBAAE=\n"
  279. "-----END RSA PUBLIC KEY-----\n"
  280. "published 2014-10-05 12:00:00\n"
  281. "bandwidth 1000 -1000 1000\n"
  282. "reject *:*\n"
  283. "router-signature\n"
  284. "-----BEGIN SIGNATURE-----\n"
  285. "bUBBZYZWqCbsH4/7fNXtC/HgIZNGOfDF9v4d9YfKaDs5xDYf2o67hRcwx5imhrgC\n"
  286. "IU7n9AI4AGxkFoN6g3Y/t4pqebxdkF678rRDCtrlwwreAiUktgrwnetp9Tpo16xj\n"
  287. "V7Uf6LcqQdvu78lRh1dsrY78sf7sb90vusFMPLXGUKM=\n"
  288. "-----END SIGNATURE-----\n"
  289. ;
  290. static const char EX_RI_BAD_IP[] =
  291. "router fred 100.127.0.0.1 9001 0 9002\n"
  292. "signing-key\n"
  293. "-----BEGIN RSA PUBLIC KEY-----\n"
  294. "MIGJAoGBAMtMrM24AJpJCevxnseIpRlSuAIMksfkfky2+noe7Rok8xn6AMQzMrwx\n"
  295. "AiCJ8Jy4DBzIKUiJK4/y1FimyM08qZGR0xeqblCxZ1lbSiXv6OYxoaD2xmWw8zEP\n"
  296. "Zgu4jKReHh+gan1D+XpAbFNY0KrANhjRo96ZZ3AQsZQcWBiPKCynAgMBAAE=\n"
  297. "-----END RSA PUBLIC KEY-----\n"
  298. "onion-key\n"
  299. "-----BEGIN RSA PUBLIC KEY-----\n"
  300. "MIGJAoGBAOPclmBO/amw1RWTSI1y80qY/EPjc0I+sk9HKr0BQOovxqJ0lmy9Gaue\n"
  301. "y+MOejQ9H2hNev0nd7z1fPxEogt7SCe22qJHHX3xDf+D9RpKsvVzDYZsk7hVL7T1\n"
  302. "mwHzuiV/dtRa7yAMp7+q0vTUGesU2PYFYMOyPvz5skNLSWrXOm05AgMBAAE=\n"
  303. "-----END RSA PUBLIC KEY-----\n"
  304. "published 2014-10-05 12:00:00\n"
  305. "bandwidth 1000 1000 1000\n"
  306. "reject *:*\n"
  307. "router-signature\n"
  308. "-----BEGIN SIGNATURE-----\n"
  309. "g6besL/zxOp0N6Q5/7QZgai2kmCU5EAWJlvZrf5jyrjKhsv2a4LDkap07m9QRFqW\n"
  310. "GGe7g5iiABIqnl0kzv7NLX7ah+d/xxv+IILXyZfVTxSw0e+zFb3uPlQ7f9JsGJ8i\n"
  311. "a+w8wyyDBpOAmi8Ny866Cnp9ojVzCyIErUYHFaPvKao=\n"
  312. "-----END SIGNATURE-----\n"
  313. ;
  314. static const char EX_RI_BAD_DIRPORT[] =
  315. "router fred 127.0.0.1 9001 0 bob\n"
  316. "signing-key\n"
  317. "-----BEGIN RSA PUBLIC KEY-----\n"
  318. "MIGJAoGBANKcD6DJ16X3yvdq05jatdwgjO+hyoIpckW9sV/OkdfIZwf+S6Q4pZGC\n"
  319. "doMw5XeOM52gjpx42kUp6M2WlTGDFEpaNU0VyeZYG/M1CM1xvfj3+1PoebioAGdf\n"
  320. "GuhNBCHZdaYNiOGnh9t2GgUomgpE6njdS/lovSrDeTL469hfcUghAgMBAAE=\n"
  321. "-----END RSA PUBLIC KEY-----\n"
  322. "onion-key\n"
  323. "-----BEGIN RSA PUBLIC KEY-----\n"
  324. "MIGJAoGBANWeGHig5wE9UijaNnEW5au3B3hZKSlzCi+T6MYDPbbYhm8qJaVoXUXF\n"
  325. "EP1EUgzDcX3dPEo9upUA1+91GkjGQCo9eOYlqGib8kHIwKnHZK+hernBc/DnOeUp\n"
  326. "Wyk9SW5s+fi12OQhr3NGjbSn76FMY9XU3Qt7m3EviTwWpI3Jr5eRAgMBAAE=\n"
  327. "-----END RSA PUBLIC KEY-----\n"
  328. "published 2014-10-05 12:00:00\n"
  329. "bandwidth 1000 1000 1000\n"
  330. "reject *:*\n"
  331. "router-signature\n"
  332. "-----BEGIN SIGNATURE-----\n"
  333. "t77wEoLjyfMf9LKgBfjveosgwvJ8Go0nb27Ae3Ng9tGtR4qaJQfmwZ5fOOuVU9QC\n"
  334. "3s8ww3aY91KD3NTcN3v3FKngxWtRM8AIfwh4pqT3zW6OSP4+nO3xml7ql0Zf6wfj\n"
  335. "TPFV2941O3yplAsmBJ41sRSWizF04wTtZAIgzY7dMLA=\n"
  336. "-----END SIGNATURE-----\n"
  337. ;
  338. static const char EX_RI_BAD_NAME2[] =
  339. "router verylongnamethatnevereverendsandgoesontoolong 127.0.0.1 9001 0 9002\n"
  340. "signing-key\n"
  341. "-----BEGIN RSA PUBLIC KEY-----\n"
  342. "MIGJAoGBAL0mcUxg7GJ6oxgciLiBCbo+NuZ/OVKRrERCSM6j6iHERcB9+ciSRgQ5\n"
  343. "H6o6FUX2LoRmHYzBk1x7kIjHa9kx9g6CAbBamdZrQbdVnc1y2NrdHB/jvwLj3C48\n"
  344. "PgzFIrLg9OlkuoWck/E+YpPllONfF65e0+ualgVjPgpQpXwmz+ktAgMBAAE=\n"
  345. "-----END RSA PUBLIC KEY-----\n"
  346. "onion-key\n"
  347. "-----BEGIN RSA PUBLIC KEY-----\n"
  348. "MIGJAoGBAOgHvvTAxyjJtHx9W2X7aOI05H9sYDDY+sxhovT/8EpAHrioex54tsMT\n"
  349. "ifgtoXTjGIBEOTDi/1ry39nEW5WPbowqvyzRfR2M43pc96WV7e1nhmD/JrnTYgtR\n"
  350. "5/15KxcMJxoDhod7WZ/wlXBnHc2VevX8JTaeOe9KYORCj5iNbtVZAgMBAAE=\n"
  351. "-----END RSA PUBLIC KEY-----\n"
  352. "published 2014-10-05 12:00:00\n"
  353. "bandwidth 1000 1000 1000\n"
  354. "reject *:*\n"
  355. "router-signature\n"
  356. "-----BEGIN SIGNATURE-----\n"
  357. "j/nFT5gyj20cLHWv94O1jmnqy3n6qkO8Av0OdvvfNeXsMK2UHxk84vzFvEwpUF/Y\n"
  358. "i+VR3LXY4CjTpuliMtjt7BQGtmJSvB8W0CeIUenIGzfwDxW9dG2o7spDldKDB/OU\n"
  359. "C1wyHvKaA6Yss/02RIDa4AxyjsfbgdJ91qK+aAnYAtA=\n"
  360. "-----END SIGNATURE-----\n"
  361. ;
  362. static const char EX_RI_BAD_BANDWIDTH2[] =
  363. "router fred 127.0.0.1 9001 0 9002\n"
  364. "signing-key\n"
  365. "-----BEGIN RSA PUBLIC KEY-----\n"
  366. "MIGJAoGBALQDCm9VEopiYILmt4X9kP6DQazfgKnLXv+6rHbc4qtmvQQD3TVYbxMP\n"
  367. "F4sEUaz+YHAPnomfDVW3a0YFRYXwDzUm1n47YYCyhUzEaD2f69Mcl/gLpKdg+QOy\n"
  368. "boGB1oD4CStWL3y05KhxxTNiTrg+veMzXTqNwryCYm+GoihIAM9fAgMBAAE=\n"
  369. "-----END RSA PUBLIC KEY-----\n"
  370. "onion-key\n"
  371. "-----BEGIN RSA PUBLIC KEY-----\n"
  372. "MIGJAoGBALYHwdx6bmYy09AW5ElN/DWh0fHh3mBK97ryiIMi8FImYfzbw2BR6xuT\n"
  373. "aQT5omqS3PNJJcNWZt5gOyDtA9kLh03cch7t1PenXSYJshbME2bDrZDJKVJMN6vV\n"
  374. "B1v/9HjXsVF50jBzZsJo3j26XCPT5s6u9wqUFWW09QR3E/1HInHVAgMBAAE=\n"
  375. "-----END RSA PUBLIC KEY-----\n"
  376. "published 2014-10-05 12:00:00\n"
  377. "bandwidth 1000 -1000 1000\n"
  378. "reject *:*\n"
  379. "router-signature\n"
  380. "-----BEGIN SIGNATURE-----\n"
  381. "p09ijyuvcW+WKRj4mJA/nkLCvZkRcMzykAWheJi1IHCoqhXFdkFLiIRqjaeDVHRr\n"
  382. "zBtD+YCQiGvFcaQJ9IUhh7IleHcyyljmDYlvuBAxWiKvVZstJac0kclCU4W+g8yK\n"
  383. "0Qug3PmGKk115x2TllHaCZqMo5OkK4I/WAsKp+DnJ1A=\n"
  384. "-----END SIGNATURE-----\n"
  385. ;
  386. static const char EX_RI_BAD_UPTIME[] =
  387. "router fred 127.0.0.1 9001 0 9002\n"
  388. "signing-key\n"
  389. "-----BEGIN RSA PUBLIC KEY-----\n"
  390. "MIGJAoGBAMM0Nubr1VXQ/FcgIQTFxZpZDlAEh2XN8FoJ8d+X5S46VDGijmMoYmyN\n"
  391. "oLXqMTGmOaR0RGZOeGLgDzeY8tLrfF821IjfkXeAANZibUjdsHwqHO3wlWD2v+GN\n"
  392. "0GBocWXEdAp/os229mQQKgYAATJ0Ib3jKhBdtgm5R444u8VX5XnbAgMBAAE=\n"
  393. "-----END RSA PUBLIC KEY-----\n"
  394. "onion-key\n"
  395. "-----BEGIN RSA PUBLIC KEY-----\n"
  396. "MIGJAoGBAMpyOr4kEtSTZw4H9eSkH2+WmwIlO4VBpY2HkPS00l6L5fM2REjt50Xi\n"
  397. "lsNOz8Q6mAn5cMYmsGlv61kg01mCvYc7Z715jGh+1hhVAxMaNS3ED/nSPnslyjhq\n"
  398. "BUm51LhYNHD4ktISIqPMurx6aC8B68UYgKzLgCYNzkathFXSBpjRAgMBAAE=\n"
  399. "-----END RSA PUBLIC KEY-----\n"
  400. "uptime forever-and-a-day\n"
  401. "published 2014-10-05 12:00:00\n"
  402. "bandwidth 1000 1000 1000\n"
  403. "reject *:*\n"
  404. "router-signature\n"
  405. "-----BEGIN SIGNATURE-----\n"
  406. "NHYeiQOu0nZdrhSy31Xz4F0T6OTU23hPQDzoLax1/zq6iTVrz9xi3HGm7HhOMW1j\n"
  407. "YgFGK3+Xm4iJL+DwriunsAIuL5axr3z2hlmFDQHYItP//KyPpOqSrfEOhwcuj/PE\n"
  408. "VbWsiVYwz9VJLO8SfHoBeHI6PsjQRQFt2REBKZhYdxA=\n"
  409. "-----END SIGNATURE-----\n"
  410. ;
  411. static const char EX_RI_BAD_BANDWIDTH3[] =
  412. "router lucy 127.0.0.1 9001 0 9002\n"
  413. "signing-key\n"
  414. "-----BEGIN RSA PUBLIC KEY-----\n"
  415. "MIGJAoGBAO6HrITQTEjV/v/rInQ2REmCFZa4dZg8zIh6+B51U/I6hDiZaKGwpNey\n"
  416. "9OfjoRqT2DwyLEe3ORm9A2RAz2twLBixrpt5IvC0sbGustmW964BHW7k9VvRupwl\n"
  417. "ovujHpLIj5dkLxD15jGXHoTp1yHUVk9NkMGN+ahg6y+QhTbIrWbRAgMBAAE=\n"
  418. "-----END RSA PUBLIC KEY-----\n"
  419. "onion-key\n"
  420. "-----BEGIN RSA PUBLIC KEY-----\n"
  421. "MIGJAoGBAOEpciJFXauEqs31GMTUTzu6edBj9WtV+sIflhGKvU1KKRfwCgOcuKMx\n"
  422. "QiLHHD9AjhMAFGT/qtNbPFkzfYxHKLHw+NLJsxmNtdkYM26FX3ButPiX+69sq9fI\n"
  423. "PCHqQy6z/A7hHwtEk6niWgK2PLhAZCg9duAv+mqFVXe2QEBjax/lAgMBAAE=\n"
  424. "-----END RSA PUBLIC KEY-----\n"
  425. "published 2014-10-05 12:00:00\n"
  426. "bandwidth 1000 1000 electric\n"
  427. "reject *:*\n"
  428. "router-signature\n"
  429. "-----BEGIN SIGNATURE-----\n"
  430. "Jk0Xk1RMJSjEflNRcp4qznaHKcfe2r0kOc7TdLAnM8zyNDVj6+Bn8HWmyp/oFmf6\n"
  431. "xtWKKgkKxriAVIJgqZMchPbr9RuZS+i+cad++FCwpTVkyBP920XWC47jA3ZXSBee\n"
  432. "HK6FaoK5LfmUm8XEU9BVhiwISXaUfTdkR8HfzugFbWk=\n"
  433. "-----END SIGNATURE-----\n"
  434. ;
  435. static const char EX_RI_BAD_NTOR_KEY[] =
  436. "router fred 127.0.0.1 9001 0 9002\n"
  437. "signing-key\n"
  438. "-----BEGIN RSA PUBLIC KEY-----\n"
  439. "MIGJAoGBAKYDCSr0Jh9d/mJKjnGYAHKNBcxR3EJk6GGLwKUrRpN8z/aHRxdWlZF2\n"
  440. "lBml6yQNK/VPftcvOekxrKq3/dISrIFBzFYj6XHNtg31d09UgitVkk0VfRarZiGu\n"
  441. "O6Yv55GSJ9a3AZDE4YmIp5eBjVuChyVkeDFYKVn0ed4sj9gg35rjAgMBAAE=\n"
  442. "-----END RSA PUBLIC KEY-----\n"
  443. "onion-key\n"
  444. "-----BEGIN RSA PUBLIC KEY-----\n"
  445. "MIGJAoGBALXdUQuq1pYHyYP0qU6Ik+oOmwl0eOsuwiLWf9Vd+dsgEszICX4DRWPx\n"
  446. "syDxfxyA/g9FEPvlI7Nglx6cKe2MT0AutSRLbbML4smfuRZNIF35Cnfu5qTGVVzL\n"
  447. "GWVSA2Ip7p+9S9xLhLBdc6qmrxEXCPL6anEhCR4f8AeybXAsz2JLAgMBAAE=\n"
  448. "-----END RSA PUBLIC KEY-----\n"
  449. "published 2014-10-05 12:00:00\n"
  450. "ntor-onion-key s7rSohmz9SXn8WWh1EefTHIsWePthsEntQi0WL+ScVfjdklsdfjkf\n"
  451. "bandwidth 1000 1000 1000\n"
  452. "reject *:*\n"
  453. "router-signature\n"
  454. "-----BEGIN SIGNATURE-----\n"
  455. "Yf9axWyzPudnRvQstNdbtBYo7pGpUEIdECMGcJtFb6v/00pxk4Tt3RiOKa84cOBV\n"
  456. "7V9NjOLdqlx88pGz0DNCJKqToIrwjZDeQ8Q1yi9XClLDkC32fQRX4y6vNBZ3LXLe\n"
  457. "ayVrdRrb41/DP+E7FP4RNPA5czujTfs8xLBMbGew8AA=\n"
  458. "-----END SIGNATURE-----\n"
  459. ;
  460. static const char EX_RI_BAD_FINGERPRINT[] =
  461. "router fred 127.0.0.1 9001 0 9002\n"
  462. "signing-key\n"
  463. "-----BEGIN RSA PUBLIC KEY-----\n"
  464. "MIGJAoGBAM0wDWF2dBLzsmoIDHRugzosCSR9TSvEE0TkvKu6+agfogGtkQJwQ5zO\n"
  465. "sGzZbRR+okO7d+QCED2i3rUs1iikoMUT+pwgvOm8Bxg9R64GK7fl9K5WuAiG11Uj\n"
  466. "DQAfSx5Fo30+rhOhe16c9CT7xJhj//ZKDbXUW7BrJI8zpuOnvgD5AgMBAAE=\n"
  467. "-----END RSA PUBLIC KEY-----\n"
  468. "onion-key\n"
  469. "-----BEGIN RSA PUBLIC KEY-----\n"
  470. "MIGJAoGBAKACg1nWM/WjpUiGwlLQsY3Tq1h0RTz/HmOMx/6rTRxS5HLz0KnLg5zV\n"
  471. "dvmfhxqQVKBkt1N2+y+qO7x71oFzIsFMfHYWSxOCEo8Nkff1BqAPqxxUHvM0HwJo\n"
  472. "d7lswJ/UT1j4+WZNZ4sFIujsIW2/zZqKlxG9xaw0GXJ082Cj9XkPAgMBAAE=\n"
  473. "-----END RSA PUBLIC KEY-----\n"
  474. "published 2014-10-05 12:00:00\n"
  475. "fingerprint 5555\n"
  476. "bandwidth 1000 1000 1000\n"
  477. "reject *:*\n"
  478. "router-signature\n"
  479. "-----BEGIN SIGNATURE-----\n"
  480. "mlqyJ/ZGBINKwSNEi7GpNBCMqIVbL0pGAOBYHJF1GbRlU28uRyNyeELIxIK5ZIet\n"
  481. "ZzKr7KPvlBxlyolScPhTJfP98TFSubrwYz7NnQv0vLI0bD0OyoBf/9/1GYlzgTso\n"
  482. "3mKfnV7THUalpxe9EjQ/x61Yqf26Co0+jYpt8/Ck6tg=\n"
  483. "-----END SIGNATURE-----\n"
  484. ;
  485. static const char EX_RI_MISMATCHED_FINGERPRINT[] =
  486. "router fred 127.0.0.1 9001 0 9002\n"
  487. "signing-key\n"
  488. "-----BEGIN RSA PUBLIC KEY-----\n"
  489. "MIGJAoGBANUAvwbpGbsAyA+mBwjFkvurtRzdw9btDqNKtPImufIE+q+AFTaCnwPr\n"
  490. "kA7vm/O6h6OhgfdYEC2GfYJfwPGM7MDuz+NnuKxUb3qb2DQN2laqow6qWs9La/if\n"
  491. "oHKUjC5mNeAgHcbWapx9CygwaFeVW6FBPl6Db6GIRAlywPSX+XMJAgMBAAE=\n"
  492. "-----END RSA PUBLIC KEY-----\n"
  493. "onion-key\n"
  494. "-----BEGIN RSA PUBLIC KEY-----\n"
  495. "MIGJAoGBANlSGd+Vm9nLiUk6zgu8dPnSFfw4F0R2GYfmzncIGJWtRFTF9ThW/0av\n"
  496. "/9vZAWyVBjjtnpAP5R1BzdJYV2RwimC/6tqoHtkSbCBhdq5Cb/EHG7Xgb8KwNWVJ\n"
  497. "NV1EESDwvWnRfSPGTreRw9+2LkdXri17FhDo2GjRxAq/N7YkLK5hAgMBAAE=\n"
  498. "-----END RSA PUBLIC KEY-----\n"
  499. "published 2014-10-05 12:00:00\n"
  500. "fingerprint CC43 DC8E 8C9E 3E6D 59CD 0399 2491 0C8C E1E4 50D2\n"
  501. "bandwidth 1000 1000 1000\n"
  502. "reject *:*\n"
  503. "router-signature\n"
  504. "-----BEGIN SIGNATURE-----\n"
  505. "Y8MwYBeEfMhoAABK/FgpVRYolZ7jQ2BJL+8Lb6i4yAuk+HeVmPKTX7MqQoekUuin\n"
  506. "/HdPKP+g/9HPMS5pCiW4FMwnXAF0ZocPXF0ndmsTuh0/7VWVOUGgvBpPbIW6guvt\n"
  507. "sLLQ3Cq9a4Kwmd+koatfLB6xSZjhXmOn7nRy7gOdwJ8=\n"
  508. "-----END SIGNATURE-----\n"
  509. ;
  510. static const char EX_RI_BAD_HAS_ACCEPT6[] =
  511. "router fred 127.0.0.1 9001 0 9002\n"
  512. "signing-key\n"
  513. "-----BEGIN RSA PUBLIC KEY-----\n"
  514. "MIGJAoGBAJfPJNA3zZ77v2nlX2j5dXImcB/NhRtkG8XQgF7z+3H17sqoXgBgZ1dq\n"
  515. "IbyJmAy2Lrvk/8VkXNFrT5/ErThn1B98V/PsJOOW1x7jGcix6X4zDYn/MvwC+AxA\n"
  516. "zNP0ozNcVZ6BzVYq8w4I1V4O3Cd6VJesxRVX6mUeSeNawOb7fBY7AgMBAAE=\n"
  517. "-----END RSA PUBLIC KEY-----\n"
  518. "onion-key\n"
  519. "-----BEGIN RSA PUBLIC KEY-----\n"
  520. "MIGJAoGBAKBzfB4mDEJjFTnmtqZxDG8G1yAiccVgAtq9ECEREL/BOQyukixUBeBe\n"
  521. "j/FgXzbMJ7DZAuopuJZU2ma6h14G63fZs7eNFceDtmdLpuCOsFuvJ5Mlkf3hDZ1u\n"
  522. "1KK5q+tiG7MKxgnGrqjPBUO2uubs2Cpx0HmsqBNUalXd/KAkFJbXAgMBAAE=\n"
  523. "-----END RSA PUBLIC KEY-----\n"
  524. "published 2014-10-05 12:00:00\n"
  525. "bandwidth 1000 1000 1000\n"
  526. "reject *:*\n"
  527. "accept6 *:80\n"
  528. "reject6 *:*\n"
  529. "router-signature\n"
  530. "-----BEGIN SIGNATURE-----\n"
  531. "Dp9dLgs9s5beMPxfD0m96as9gNBvlmKhH1RQ/kcOKscia4R8Q42CnUtIqLkCdjOu\n"
  532. "zErc2Vj9QzjKOvlqUqHxP+J+l+ZJez6F+E1tcmK/Ydz3exL8cg9f4sAOCSXcpBey\n"
  533. "llTFDibz6GkQ2j3/Uc4bN/uLzoyZKunpJbSKZP5nt8Q=\n"
  534. "-----END SIGNATURE-----\n"
  535. ;
  536. static const char EX_RI_BAD_NO_EXIT_POLICY[] =
  537. "router fred 127.0.0.1 9001 0 9002\n"
  538. "signing-key\n"
  539. "-----BEGIN RSA PUBLIC KEY-----\n"
  540. "MIGJAoGBAK4fbjTKYqv2fygfjzY53sVTdtbNMjq293/uffKKxFYnOVvPzrHlP6Go\n"
  541. "2S19ZcyDxOuH1unbBChPnV0GpxXX6+bgfDkaFh7+jef0RQ3fpJl84hSvdM8J8SCt\n"
  542. "Q/F4Oqk3NeKKs+zAHDjhAU1G4LkF9/SZ9WZVXlH4a4pf7xgQtaShAgMBAAE=\n"
  543. "-----END RSA PUBLIC KEY-----\n"
  544. "onion-key\n"
  545. "-----BEGIN RSA PUBLIC KEY-----\n"
  546. "MIGJAoGBAKahvyDkmh33ob/bLVO1icgz2ntOZN6ZQUfgpMU4Cd6DQtOEwFUGhbVt\n"
  547. "gvtMHv2+VbxM31ZfUsyBqJ1rJBLpOqlPvSoYwSac2+twa+w/qjfGqcJYhBjP9TV9\n"
  548. "n9y8DzBX85p6vRcCzcuZ4qUJ2nRzdLHwjdgzeLmmCHuPO2dQxQhXAgMBAAE=\n"
  549. "-----END RSA PUBLIC KEY-----\n"
  550. "published 2014-10-05 12:00:00\n"
  551. "bandwidth 1000 1000 1000\n"
  552. "router-signature\n"
  553. "-----BEGIN SIGNATURE-----\n"
  554. "ntgCtMC0VrsY42dKts8igGQ2Nu1BpuzUltisIsJz75dDx2LCqTn7p4VpWbTrj1sH\n"
  555. "MRNOvEPFxVMs0Lu50ZUGRzeV6GrHmzIRnOIWanb3I/jyrJLM0jTIjCOLwdMRA298\n"
  556. "tw8Y9Hnwj4K7K6VvgU8LP4l7MAJNfR6UT46AJ6vkgL0=\n"
  557. "-----END SIGNATURE-----\n"
  558. ;
  559. static const char EX_RI_BAD_IPV6_EXIT_POLICY[] =
  560. "router fred 127.0.0.1 9001 0 9002\n"
  561. "signing-key\n"
  562. "-----BEGIN RSA PUBLIC KEY-----\n"
  563. "MIGJAoGBAKHJKLHqjYoW9M+1q0CGHJRT5u2CnZWb8Qr1DpLkkusQ6ru+cDAG12so\n"
  564. "IpDQh7IyB2JosVJi9ogekYxJ3O1p5WlFUi0X19DMoer9FJ9J7/3s4enGJ/yMBeuu\n"
  565. "jLVRkjMJhsfhj3Cykon+8Rrf520wSmBg1dpJQCXTwtb7DARgYRpZAgMBAAE=\n"
  566. "-----END RSA PUBLIC KEY-----\n"
  567. "onion-key\n"
  568. "-----BEGIN RSA PUBLIC KEY-----\n"
  569. "MIGJAoGBAPJH61Ir6XSu9/Q9tXGaINbXO1GWQQUXtwh6TX9lxnaCNDLGnxiY+ZZw\n"
  570. "+Vqj3LAQoMrz1PpPsF5e0VIxok10Vc8y4cWC+kIitcecut4vWC5FYTtVVP9wtlyg\n"
  571. "YCcVOVhtFQxtLiGqprl84+EVxrR7RQVCMLNDUXIgxAfdnS24eBPDAgMBAAE=\n"
  572. "-----END RSA PUBLIC KEY-----\n"
  573. "published 2014-10-05 12:00:00\n"
  574. "bandwidth 1000 1000 1000\n"
  575. "reject *:*\n"
  576. "ipv6-policy kfdslfdfj sdjfk sdfjsdf\n"
  577. "router-signature\n"
  578. "-----BEGIN SIGNATURE-----\n"
  579. "XWorzVT5Owg+QcsBtksiUNtpQQ5+IdvbsN+0O9FbFtGZeaeBAbPJ3Poz+KFCUjZY\n"
  580. "DeDAiu1cVgODx2St+99LpwEuIBx78HaD8RYU8tHx8LoA+mGC43ogQQS9lmfxzvP5\n"
  581. "eT5WXhkOS5AZ8LZOCOmT+tj/LkSXev2x/NC9+Vc1HPo=\n"
  582. "-----END SIGNATURE-----\n"
  583. ;
  584. static const char EX_RI_BAD_FAMILY[] =
  585. "router fred 127.0.0.1 9001 0 9002\n"
  586. "signing-key\n"
  587. "-----BEGIN RSA PUBLIC KEY-----\n"
  588. "MIGJAoGBAM62QoRxSPnm+ZM4fv9p03Qqbz5SzhXYSNjKWqylBruaofTw6oIM8DtX\n"
  589. "7QnrEe/ou/WtfB+swV/2rt/r0EzmeWBWuDmuSUrN5TC2AdOi9brSJMgXVW6VW77X\n"
  590. "fuIlLd5DVSId2zs3cKLDqp36CUsooA9sS6I5HrvW9QDf3VS3pGBtAgMBAAE=\n"
  591. "-----END RSA PUBLIC KEY-----\n"
  592. "onion-key\n"
  593. "-----BEGIN RSA PUBLIC KEY-----\n"
  594. "MIGJAoGBANg1trpnRzkCi4t4Z4qnBKF612H5A3Zrjg7Jo2b3ajUnON/KEuLPTc3t\n"
  595. "PPN0W4qqeCMmVQEuxf3DRbTPS20ycy4B/JDWYfxCNwuj5YAx04REf7T0Hlx7Aee/\n"
  596. "sHEQBhIBfasA2idhTh3cAm4DMYn+00BqjxF6jmyRA0hyntEABabrAgMBAAE=\n"
  597. "-----END RSA PUBLIC KEY-----\n"
  598. "published 2014-10-05 12:00:00\n"
  599. "bandwidth 1000 1000 1000\n"
  600. "family aaaa,bbbb\n"
  601. "reject *:*\n"
  602. "router-signature\n"
  603. "-----BEGIN SIGNATURE-----\n"
  604. "xOgP3liKF/WEvwbbGzUUVRZ5WPrOI7jex8pZU/02UEnHjit7vCf9fsUcvkeo0xjz\n"
  605. "n3FQHIO1iAJS7dEaEM4nz6wtPUb2iXSU9QajkGBkJ9/V7NHMFIU3FGfP47PIJJkd\n"
  606. "nz5INoS+AsE7PmnDjUMm1H45TCCl8N8y4FO6TtN7p8I=\n"
  607. "-----END SIGNATURE-----\n"
  608. ;
  609. static const char EX_RI_BAD_EI_DIGEST[] =
  610. "router fred 127.0.0.1 9001 0 9002\n"
  611. "signing-key\n"
  612. "-----BEGIN RSA PUBLIC KEY-----\n"
  613. "MIGJAoGBAJ8Sn8AxBRbeIAHUvaKjqmcYOvXz7YFlpYFiVHp/cn+l+KUkIYTOFQXf\n"
  614. "K8AtwjmJ4R2qJIbNlY/6oZGFbizt/B+WPuWsTj+8ACEEDlxx0ibg3EJRB8AZYiWv\n"
  615. "0zC/loiUvHm6fXF5ghvDr9BQzEUo9kBk5haoHwROtGawr1+vOEiNAgMBAAE=\n"
  616. "-----END RSA PUBLIC KEY-----\n"
  617. "onion-key\n"
  618. "-----BEGIN RSA PUBLIC KEY-----\n"
  619. "MIGJAoGBAMzok3ZJtLjXOC8RKltXI8xulwn/ctCvQFHImR0+ccA1uBxaZNYgiIcc\n"
  620. "q8XngROfV8xEgDbYPiWiLXJOMSwOd7hfs3YzRWF+LKftYs8PuRyMJcCoBjOPZ4QX\n"
  621. "HRfTetEvu2SijZMby+lkqpZg2nuF/ipsXUjrabRZdNiIGhC451vdAgMBAAE=\n"
  622. "-----END RSA PUBLIC KEY-----\n"
  623. "extra-info-digest not-a-digest\n"
  624. "published 2014-10-05 12:00:00\n"
  625. "bandwidth 1000 1000 1000\n"
  626. "reject *:*\n"
  627. "router-signature\n"
  628. "-----BEGIN SIGNATURE-----\n"
  629. "c/6zAxO04izQvqdM4bZVGE+ak0nna5pz9XZizFkieZEDWGzWQuVMhXyL5sbsFbsx\n"
  630. "6Hn7DvNRYR/2nA0teDeRyIHMoMHi76te5X9OFDgaeUVCbyJ8h/KZYfPnN86IDbsR\n"
  631. "dCSmj9kX55keu64ccCAH1CqwcN/UsbplXiJJVG5pTfI=\n"
  632. "-----END SIGNATURE-----\n"
  633. ;
  634. static const char EX_RI_ZERO_ORPORT[] =
  635. "router fred 127.0.0.1 0 0 9002\n"
  636. "signing-key\n"
  637. "-----BEGIN RSA PUBLIC KEY-----\n"
  638. "MIGJAoGBAMc4MOhLG3PKPgc+xYVf4eScWzeOf8wq7Cb/JxZm50G0LuvVbhHtHEZX\n"
  639. "VOSHI7mLE1ifakJvCFJRLobMU7lU0yhn18/nKl2Cu5NfFHHeF/NieUBSxBGb2wD6\n"
  640. "aM1azheXrRqvDVVfbI0DLc/XfQC/YNiohOsQ/c9C6wuffA4+Sg85AgMBAAE=\n"
  641. "-----END RSA PUBLIC KEY-----\n"
  642. "onion-key\n"
  643. "-----BEGIN RSA PUBLIC KEY-----\n"
  644. "MIGJAoGBALBWdl9/Vft+NQKQlg5kgvZo+krnhNTRVQojWtUEzom4TFIT+NNKJyMG\n"
  645. "reQXcNdzNptTB0aOBGGwqAesqzsZ2Hje699NsDe7hdl7Sb5yhKDqtdQY6yDXJUFt\n"
  646. "zqpAUkmYMLe2p3kPiWefNso56KYXrZrlNAiIS/FhQ5cmuMC2jPydAgMBAAE=\n"
  647. "-----END RSA PUBLIC KEY-----\n"
  648. "published 2014-10-05 12:00:00\n"
  649. "bandwidth 1000 1000 1000\n"
  650. "reject *:*\n"
  651. "router-signature\n"
  652. "-----BEGIN SIGNATURE-----\n"
  653. "gFg08P9A6QNQjURlebfdhU3DSV0BeM0j2SFza1jF9JcBOWDRmT8FvYFK1B3js6jK\n"
  654. "8LNV8JOUssv14z5CnUY9CO1BD0xSl+vGlSS4VOXD7rxui8IoWgnqnZsitq+Qzs95\n"
  655. "wgFKhHI/49NHyWHX5IMQpeicg0T7Qa6qwnUvspH62p8=\n"
  656. "-----END SIGNATURE-----\n"
  657. ;