mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
53a3b39da1
This is a big-ish patch, but it's very straightforward. Under this clang warning, we're not actually allowed to have a global variable without a previous extern declaration for it. The cases where we violated this rule fall into three roughly equal groups: * Stuff that should have been static. * Stuff that was global but where the extern was local to some other C file. * Stuff that was only global when built for the unit tests, that needed a conditional extern in the headers. The first two were IMO genuine problems; the last is a wart of how we build tests.
95 lines
4.4 KiB
C++
95 lines
4.4 KiB
C++
static const char* VOTE_BODY_V3 =
|
|
"network-status-version 3\n"
|
|
"vote-status vote\n"
|
|
"consensus-methods 13 14 15 16 17 18 19 20 21\n"
|
|
"published 2015-09-02 19:34:15\n"
|
|
"valid-after 2015-09-02 19:50:55\n"
|
|
"fresh-until 2015-09-02 20:07:38\n"
|
|
"valid-until 2015-09-02 20:24:15\n"
|
|
"voting-delay 100 250\n"
|
|
"client-versions 0.1.2.14,0.1.2.17\n"
|
|
"server-versions 0.1.2.10,0.1.2.15,0.1.2.16\n"
|
|
"known-flags Authority Exit Fast Guard MadeOfCheese MadeOfTin Running Stable V2Dir Valid\n"
|
|
"flag-thresholds stable-uptime=0 stable-mtbf=0 fast-speed=0 guard-wfu=0.000% guard-tk=0 guard-bw-inc-exits=0 guard-bw-exc-exits=0 enough-mtbf=0 ignoring-advertised-bws=0\n"
|
|
"params circuitwindow=80 foo=660\n"
|
|
"dir-source Voter3 D867ACF56A9D229B35C25F0090BC9867E906BE69 3.4.5.6 3.4.5.6 80 9000\n"
|
|
"contact voter@example.com\n"
|
|
"legacy-dir-key 4141414141414141414141414141414141414141\n"
|
|
"dir-key-certificate-version 3\n"
|
|
"fingerprint D867ACF56A9D229B35C25F0090BC9867E906BE69\n"
|
|
"dir-key-published 2008-12-12 18:07:24\n"
|
|
"dir-key-expires 2009-12-12 18:07:24\n"
|
|
"dir-identity-key\n"
|
|
"-----BEGIN RSA PUBLIC KEY-----\n"
|
|
"MIIBigKCAYEAveMpKlw8oD1YqFqpJchuwSR82BDhutbqgHiez3QO9FmzOctJpV+Y\n"
|
|
"mpTYIJLS/qC+4GBKFF1VK0C4SoBrS3zri0qdXdE+vBGcyrxrjMklpxoqSKRY2011\n"
|
|
"4eqYPghKlo5RzuqteBclGCHyNxWjUJeRKDWgvh+U/gr2uYM6fRm5q0fCzg4aECE7\n"
|
|
"VP6fDGZrMbQI8jHpiMSoC9gkUASNEa6chLInlnP8/H5qUEW4TB9CN/q095pefuwL\n"
|
|
"P+F+1Nz5hnM7fa5XmeMB8iM4RriUmOQlLBZgpQBMpEfWMIPcR9F1Gh3MxERqqUcH\n"
|
|
"tmij+IZdeXg9OkCXykcabaYIhZD3meErn9Tax4oA/THduLfgli9zM0ExwzH1OooN\n"
|
|
"L8rIcJ+2eBo3bQiQUbdYW71sl9w7nSPtircbJUa1mUvWYLPWQxFliPiQSetgJLMj\n"
|
|
"VQqtPmV2hvN2Xk3lLfJO50qMTK7w7Gsaw8UtV4YDM1Hcjp/hQaIB1xfwhXgl+eUU\n"
|
|
"btUa4c+cUTjHAgMBAAE=\n"
|
|
"-----END RSA PUBLIC KEY-----\n"
|
|
"dir-signing-key\n"
|
|
"-----BEGIN RSA PUBLIC KEY-----\n"
|
|
"MIGJAoGBALPSUInyuEu6NV3NjozplaniIEBzQXEjv1x9/+mqnwZABpYVmuy9A8nx\n"
|
|
"eoyY3sZFsnYwNW/IZjAgG23pEmevu3F+L4myMjjaa6ORl3MgRYQ4gmuFqpefrGdm\n"
|
|
"ywRCleh2JerkQ4VxOuq10dn/abITzLyaZzMw30KXWp5pxKXOLtxFAgMBAAE=\n"
|
|
"-----END RSA PUBLIC KEY-----\n"
|
|
"dir-key-crosscert\n"
|
|
"-----BEGIN ID SIGNATURE-----\n"
|
|
"FTBJNR/Hlt4T53yUMp1r/QCSMCpkHJCbYBT0R0pvYqhqFfYN5qHRSICRXaFFImIF\n"
|
|
"0DGWmwRza6DxPKNzkm5/b7I0de9zJW1jNNdQAQK5xppAtQcAafRdu8cBonnmh9KX\n"
|
|
"k1NrAK/X00FYywju3yl/SxCn1GddVNkHYexEudmJMPM=\n"
|
|
"-----END ID SIGNATURE-----\n"
|
|
"dir-key-certification\n"
|
|
"-----BEGIN SIGNATURE-----\n"
|
|
"pjWguLFBfELZDc6DywL6Do21SCl7LcutfpM92MEn4WYeSNcTXNR6lRX7reOEJk4e\n"
|
|
"NwEaMt+Hl7slgeR5wjnW3OmMmRPZK9bquNWbfD+sAOV9bRFZTpXIdleAQFPlwvMF\n"
|
|
"z/Gzwspzn4i2Yh6hySShrctMmW8YL3OM8LsBXzBhp/rG2uHlsxmIsc13DA6HWt61\n"
|
|
"ffY72uNE6KckDGsQ4wPGP9q69y6g+X+TNio1KPbsILbePv6EjbO+rS8FiS4njPlg\n"
|
|
"SPYry1RaUvxzxTkswIzdE1tjJrUiqpbWlTGxrH9N4OszoLm45Pc784KLULrjKIoi\n"
|
|
"Q+vRsGrcMBAa+kDowWU6H1ryKR7KOhzRTcf2uqLE/W3ezaRwmOG+ETmoVFwbhk2X\n"
|
|
"OlbXEM9fWP+INvFkr6Z93VYL2jGkCjV7e3xXmre/Lb92fUcYi6t5dwzfV8gJnIoG\n"
|
|
"eCHd0K8NrQK0ipVk/7zcPDKOPeo9Y5aj/f6X/pDHtb+Dd5sT+l82G/Tqy4DIYUYR\n"
|
|
"-----END SIGNATURE-----\n"
|
|
"r router2 AwMDAwMDAwMDAwMDAwMDAwMDAwM Tk5OTk5OTk5OTk5OTk5OTk5OTk4 2015-09-02 19:09:15 153.0.136.1 443 8000\n"
|
|
"s Running V2Dir\n"
|
|
"v 0.1.2.14\n"
|
|
"w Bandwidth=30 Measured=30\n"
|
|
"p reject 1-65535\n"
|
|
"id ed25519 none\n"
|
|
"m 9,10,11,12,13,14,15,16,17 sha256=xyzajkldsdsajdadlsdjaslsdksdjlsdjsdaskdaaa0\n"
|
|
"r router1 BQUFBQUFBQUFBQUFBQUFBQUFBQU TU1NTU1NTU1NTU1NTU1NTU1NTU0 2015-09-02 19:17:35 153.0.153.1 443 0\n"
|
|
"a [1:2:3::4]:4711\n"
|
|
"s Exit Fast Guard Running Stable Valid\n"
|
|
"v 0.2.0.5\n"
|
|
"w Bandwidth=120 Measured=120\n"
|
|
"p reject 1-65535\n"
|
|
"id ed25519 none\n"
|
|
"m 9,10,11,12,13,14,15,16,17 sha256=xyzajkldsdsajdadlsdjaslsdksdjlsdjsdaskdaaa1\n"
|
|
"r router3 MzMzMzMzMzMzMzMzMzMzMzMzMzM T09PT09PT09PT09PT09PT09PT08 2015-09-02 19:17:35 170.0.153.1 400 9999\n"
|
|
"s Authority Exit Fast Guard Running Stable V2Dir Valid\n"
|
|
"v 0.1.0.3\n"
|
|
"w Bandwidth=120\n"
|
|
"p reject 1-65535\n"
|
|
"id ed25519 none\n"
|
|
"m 9,10,11,12,13,14,15,16,17 "
|
|
"sha256=xyzajkldsdsajdadlsdjaslsdksdjlsdjsdaskdaaa2\n"
|
|
"r router4 NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ Ly8vLy8vLy8vLy8vLy8vLy8vLy8 2015-09-02 19:17:35 192.0.2.3 500 1999\n"
|
|
"s Running V2Dir\n"
|
|
"v 0.1.6.3\n"
|
|
"w Bandwidth=30\n"
|
|
"p reject 1-65535\n"
|
|
"id ed25519 none\n"
|
|
"m 9,10,11,12,13,14,15,16,17 sha256=xyzajkldsdsajdadlsdjaslsdksdjlsdjsdaskdaaa3\n"
|
|
"directory-footer\n"
|
|
"directory-signature D867ACF56A9D229B35C25F0090BC9867E906BE69 CBF56A83368A5150F1A9AAADAFB4D77F8C4170E2\n"
|
|
"-----BEGIN SIGNATURE-----\n"
|
|
"AHiWcHe+T3XbnlQqvqSAk6RY3XmEy1+hM2u9Xk6BNi7BpQkEQM1f0vzRpgn5Dnf2\n"
|
|
"TXQWGUq9Z7jdSVnzWT3xqPA4zjw6eZkj+DKUtwq+oEDZGlf8eHTFmr0NAWfwZbk9\n"
|
|
"NAjbMTUXUP37N2XAZwkoCWwFCrrfMwXrL7OhZbj7ifo=\n"
|
|
"-----END SIGNATURE-----\n";
|
|
|