mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
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.
This commit is contained in:
parent
4259bc36af
commit
8f77db2842
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue