aboutsummaryrefslogtreecommitdiff
path: root/src/or/test_data.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-13 19:06:23 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-13 19:06:23 +0000
commitc3626cdba7a438986f593b7b76be2399a24100ac (patch)
treee2b92c03a9c885f7a2150043395c4445273f4d61 /src/or/test_data.c
parent05cf945a1c540806fd7e3be14a52d6c4c01215ea (diff)
downloadtor-c3626cdba7a438986f593b7b76be2399a24100ac.tar.gz
tor-c3626cdba7a438986f593b7b76be2399a24100ac.zip
r13395@catbus: nickm | 2007-06-13 15:01:23 -0400
Unit tests and debugging for generating and parsing consensus networkstatus documents. Still need to test actual contents. svn:r10589
Diffstat (limited to 'src/or/test_data.c')
-rw-r--r--src/or/test_data.c92
1 files changed, 92 insertions, 0 deletions
diff --git a/src/or/test_data.c b/src/or/test_data.c
index 64993b6bbb..fc2d84fb89 100644
--- a/src/or/test_data.c
+++ b/src/or/test_data.c
@@ -191,3 +191,95 @@ const char AUTHORITY_SIGNKEY_2[] =
"rjZyXmEZS3oe7TRCDD28GAGMmxSDvNfOOpyn14ishEs5AQ==\n"
"-----END RSA PRIVATE KEY-----\n";
+const char AUTHORITY_CERT_3[] =
+"dir-key-certificate-version 3\n"
+"fingerprint ED3719BF554DE9D7D59F5CA5A4F5AD121D020ED9\n"
+"dir-key-published 2007-06-13 16:52:40\n"
+"dir-key-expires 2008-06-13 16:52:40\n"
+"dir-identity-key\n"
+"-----BEGIN RSA PUBLIC KEY-----\n"
+"MIIBigKCAYEAtB+yw4BNxtZAG4cPaedkhWNmeij7IuNWmXjh58ZYEGurvGyHs1w4\n"
+"QlwNYI2UftSIeIGdWZ5fJ17h9P3xvO6eeJuOt4KPrNOxUbSGrELEx1Lje1fDAJ1X\n"
+"SvN+dvptusxtyFUr8afgTPrFIvYuazQ6q/Rw+NDagjmDx3h/A/enihpBnjwzeH8j\n"
+"Xzu7b+HKnzFnNfveTDdvSy0NSC6tCOnrf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