diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-08-29 08:39:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-04 14:52:35 -0400 |
commit | 36f3bdac032523c6d98022c84059d8ebd69dfdfe (patch) | |
tree | eea45e6d9bbef824151bd098dbc9e06fa70f626c /src/test/testing_common.c | |
parent | 52ac539b9938af6c47355b67ce1def1236f4ee39 (diff) | |
download | tor-36f3bdac032523c6d98022c84059d8ebd69dfdfe.tar.gz tor-36f3bdac032523c6d98022c84059d8ebd69dfdfe.zip |
Update prefork and postfork NSS code for unit tests.
Diffstat (limited to 'src/test/testing_common.c')
-rw-r--r-- | src/test/testing_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/testing_common.c b/src/test/testing_common.c index 17a0756803..42b5190ca0 100644 --- a/src/test/testing_common.c +++ b/src/test/testing_common.c @@ -223,11 +223,17 @@ an_assertion_failed(void) tinytest_set_test_failed_(); } +void tinytest_prefork(void); void tinytest_postfork(void); void -tinytest_postfork(void) +tinytest_prefork(void) { free_pregenerated_keys(); + crypto_prefork(); +} +void +tinytest_postfork(void) +{ crypto_postfork(); init_pregenerated_keys(); } |