[tor-commits] [tor] 01/02: test: Re-init pregenerated RSA keys for NSS only
gitolite role
git at cupani.torproject.org
Tue May 3 14:05:12 UTC 2022
This is an automated email from the git hooks/post-receive script.
nickm pushed a commit to branch main
in repository tor.
commit 8f77db28427df202d9d6bcbac96da4d1daec099d
Author: Alex Xu (Hello71) <alex_y_xu at yahoo.ca>
AuthorDate: Thu Apr 28 15:06:38 2022 -0400
test: Re-init pregenerated RSA keys for NSS only
Not revalidating keys on every fork speeds up make test from about 45 seconds
to 10 seconds with OpenSSL 1.1.1n and from 6 minutes to 10 seconds with OpenSSL
3.0.2.
---
src/test/testing_common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/test/testing_common.c b/src/test/testing_common.c
index 2fd424c07e..88d04e6082 100644
--- a/src/test/testing_common.c
+++ b/src/test/testing_common.c
@@ -244,14 +244,18 @@ void tinytest_postfork(void);
void
tinytest_prefork(void)
{
+#ifdef ENABLE_NSS
free_pregenerated_keys();
+#endif
subsystems_prefork();
}
void
tinytest_postfork(void)
{
subsystems_postfork();
+#ifdef ENABLE_NSS
init_pregenerated_keys();
+#endif
}
static void
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list