]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use builtin MD4, RC4 for OpenSSL 3.0
authorGreg Hudson <ghudson@mit.edu>
Fri, 8 Oct 2021 21:45:03 +0000 (17:45 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 28 Oct 2021 16:00:45 +0000 (12:00 -0400)
commite557f051d1605ee980b136cae020866873ffb223
tree240ed13eb9dc48ac94c46fbcaf87571ba6c3931a
parentce4e370f1717972fef92ae6d749107ebd11b65bc
Use builtin MD4, RC4 for OpenSSL 3.0

In OpenSSL 3.0, to use MD4 or RC4 one must load the "legacy" crypto
provider.  To do this in libk5crypto, we would need to create and use
an OpenSSL library context to avoid interfering with other users of
the library.  Tearing down this context at finalization time would be
further complicated by OpenSSL's use of atexit() for library
finalization, which causes its finalizer to be run earlier than
properly registered finalizers on Linux.

For simplicity, use the builtin implementations of MD4 and RC4 for
OpenSSL 3.0 and later.  Also use the builtin DES key parity
implementation since OpenSSL 3.0 deprecates DES_set_odd_parity() with
no replacement.

ticket: 9034 (new)
src/lib/crypto/krb/crypto_int.h