]> git.ipfire.org Git - thirdparty/hostap.git/commit
openssl: Remove deprecated functions from des_encrypt()
authorDavide Caratti <davide.caratti@gmail.com>
Tue, 17 Aug 2021 08:58:54 +0000 (10:58 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 19 Aug 2021 09:10:33 +0000 (12:10 +0300)
commitd265dd2d965db3669d07caa69539beb8def0edb2
treec3fe3a7332dca357cb89bbe61eff8b93c1c8409c
parent46b60299a4ec1f25a42d27bc455ae110a399574f
openssl: Remove deprecated functions from des_encrypt()

NetworkManager-CI detected systematic failures on test scenarios using
MSCHAPv2 when wpa_supplicant uses OpenSSL-3.0.0.
The 'test_module_tests.py' script also fails, and the following log is
shown:

 1627404013.761569: generate_nt_response failed
 1627404013.761582: ms_funcs: 1 error

It seems that either DES_set_key() or DES_ecb_encrypt() changed their
semantic, but it doesn't make sense to fix them since their use has been
deprecated. Converting des_encrypt() to avoid use of deprecated
functions proved to fix the problem, and removed a couple of build
warnings at the same time.

Reported-by: Vladimir Benes <vbenes@redhat.com>
Signed-off-by: Davide Caratti <davide.caratti@gmail.com>
src/crypto/crypto_openssl.c