bn_test: use bn_copy() instead of BN_free/BN_dup
authortb <tb@openbsd.org>
Fri, 7 Apr 2023 22:25:09 +0000 (22:25 +0000)
committertb <tb@openbsd.org>
Fri, 7 Apr 2023 22:25:09 +0000 (22:25 +0000)
commit80ef34bc528ae99a99672f4ad876720f812db7da
treeb21100c1ec3beb6296029b4bb8d7ccd3b8edb8bc
parentbb44b87c63da8025211b654381c3c306bafeb855
bn_test: use bn_copy() instead of BN_free/BN_dup

This is not only simpler but also required by an upcoming change.
regress/lib/libcrypto/bn/bn_test.c