bn_test: pass BN_CTX into all functions
authortb <tb@openbsd.org>
Fri, 7 Apr 2023 22:32:59 +0000 (22:32 +0000)
committertb <tb@openbsd.org>
Fri, 7 Apr 2023 22:32:59 +0000 (22:32 +0000)
commit0edabd2238e180b0dfabe629d150ed80a88398fa
treec746b4d5374dd0ada15147b9abcb780e6fd1628a
parent457e50926d6a4c54fea6ff955ea20d6505e75503
bn_test: pass BN_CTX into all functions

There is a BN_CTX at program scope. Pass it into all test functions.
This simplifies memory management at the end of the functions quite a bit.
regress/lib/libcrypto/bn/bn_test.c