summaryrefslogtreecommitdiff
path: root/src/test/test.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-11 12:36:09 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 08:40:10 -0400
commitacbb60cd6310d30c8cb7631ee52ce86150021ab1 (patch)
tree910537a7fe37d5032ef454adb1d8831f6cfec276 /src/test/test.h
parentaf2459f09e86aece0fb0679f7e8abd8f2439ed80 (diff)
downloadtor-acbb60cd6310d30c8cb7631ee52ce86150021ab1.tar.gz
tor-acbb60cd6310d30c8cb7631ee52ce86150021ab1.zip
Move unittests' RSA pregen code into a new file, and improve.
This patch moves the pregenerated RSA key logic into a new testing_rsakeys.c. Also, it adds support for RSA2048, since the link handshake tests want that. Also, it includes pregenerated keys, rather than trying to actually generate the keys at startup, since generating even a small handful of RSA2048 keys makes for an annoying delay.
Diffstat (limited to 'src/test/test.h')
-rw-r--r--src/test/test.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test.h b/src/test/test.h
index bf1f53d207..bbbc87cd16 100644
--- a/src/test/test.h
+++ b/src/test/test.h
@@ -74,6 +74,8 @@
const char *get_fname(const char *name);
struct crypto_pk_t *pk_generate(int idx);
+void init_pregenerated_keys(void);
+void free_pregenerated_keys(void);
#define US2_CONCAT_2__(a, b) a ## __ ## b
#define US_CONCAT_2__(a, b) a ## _ ## b