ikev2: fix BN_bn2bin re-allocation 71/41371/2
authorStanislav Zaikin <[email protected]>
Tue, 6 Aug 2024 16:10:13 +0000 (18:10 +0200)
committerBeno�t Ganne <[email protected]>
Wed, 7 Aug 2024 10:12:22 +0000 (10:12 +0000)
commitfa7b7a41e7ca9400dda2266a10dd9179be40c128
tree851e58edcba94c0741f769ac3435bdc3ee4d3a36
parentcf9356d642ce131c6562fcd281c01e51af888ec3
ikev2: fix BN_bn2bin re-allocation

the former code was re-allocating the vector when padding takes place.
it's not necessary since we have the correct size. also, it caused
issues since upper layer doesn't know about re-allocation and it caused
crash. with this patch many test-cases are enabled again.

Type: fix

Change-Id: Idf0b320101670ec64d62e9aac6399cc7c54c996f
Signed-off-by: Stanislav Zaikin <[email protected]>
src/plugins/ikev2/ikev2_crypto.c
test/test_ikev2.py