Jouni Malinen c65168ccd2 OpenSSL: Fix crypto_bignum_to_bin() with padlen == 0
The earlier change to add support for BN_bn2binpad() and
BN_bn2bin_padded() broke this function for cases where no padding is
used (padlen == 0). Those would have always failed after the changes and
the function would return -1. There are no such cases in the current
hostap.git, so this did not have any real issues, but anyway, better fix
this function to match its documentation.

Fixes: 1e237903f5b5 ("OpenSSL: Use BN_bn2binpad() or BN_bn2bin_padded() if available")
Signed-off-by: Jouni Malinen <j@w1.fi>
2019-08-03 16:28:02 +03:00
..
2017-03-07 13:19:10 +02:00
2019-04-26 17:43:45 +03:00
2019-02-11 02:35:29 +02:00
2012-08-19 16:53:15 +03:00
2019-01-02 01:24:18 +02:00
2016-12-28 14:31:42 +02:00
2017-02-16 22:15:29 +02:00