aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerkeys.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-10 11:30:33 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:40:10 -0400
commitaf2459f09e86aece0fb0679f7e8abd8f2439ed80 (patch)
tree7c62650c028b86d93dc1a97fd897544b4489ee71 /src/or/routerkeys.c
parenta90a111a5f1c2f0c18c9e2baaa6eccd8c7111723 (diff)
downloadtor-af2459f09e86aece0fb0679f7e8abd8f2439ed80.tar.gz
tor-af2459f09e86aece0fb0679f7e8abd8f2439ed80.zip
Unit tests for cert-chain-processing, including failed cases
Check out the coverage!
Diffstat (limited to 'src/or/routerkeys.c')
-rw-r--r--src/or/routerkeys.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/routerkeys.c b/src/or/routerkeys.c
index 88d091a58c..f0f62522ae 100644
--- a/src/or/routerkeys.c
+++ b/src/or/routerkeys.c
@@ -1059,6 +1059,16 @@ get_master_identity_key(void)
return &master_identity_key->pubkey;
}
+#ifdef TOR_UNIT_TESTS
+/* only exists for the unit tests, since otherwise the identity key
+ * should be used to sign nothing but the signing key. */
+const ed25519_keypair_t *
+get_master_identity_keypair(void)
+{
+ return master_identity_key;
+}
+#endif
+
const ed25519_keypair_t *
get_master_signing_keypair(void)
{