TEST: Enable and fix test_bn2padded() in test/bntest.c
authorRichard Levitte <levitte@openssl.org>
Thu, 25 Nov 2021 08:55:09 +0000 (09:55 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 26 Nov 2021 16:02:28 +0000 (17:02 +0100)
commit23750f677ef61b6bea4e81f23f335ad08fc49b51
tree24bce7c4e6244e62ba09feffae18ececfe947055
parent7a37fd09a8f3607ed8acf55e03479861595be069
TEST: Enable and fix test_bn2padded() in test/bntest.c

This looks like old code, written when the padded variety of BN_bn2bin()
was developped, and disabled by default...  and forgotten.

A few simple changes to update it to the current API is all that was
needed to enable it.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17133)
test/bntest.c