Remove preprocessor mess in EVP_PKEY_{de,en}crypt_old()
authortb <tb@openbsd.org>
Wed, 20 Dec 2023 10:14:14 +0000 (10:14 +0000)
committertb <tb@openbsd.org>
Wed, 20 Dec 2023 10:14:14 +0000 (10:14 +0000)
commit9a2a8e9b90c2d1ffca1b8f1c94f304e57db01f2c
treec06150a2eae474f09dc8c4b14f513487a2f21e88
parentfbb4acecdc80075525e9102426c43ac1a540178b
Remove preprocessor mess in EVP_PKEY_{de,en}crypt_old()

This was done the worst possible way. It would be much simpler to invert
the logic and use a single #ifdef. jsing prefers keeping the current
logic and suggested we ditch the preprocessor mess altogether.

ok jsing, claudio agreed with the initial diff
lib/libcrypto/evp/p_dec.c
lib/libcrypto/evp/p_enc.c