Revert "kerberos: Fix numerous segfaults when using weak crypto"
authorCy Schubert <cy@FreeBSD.org>
Fri, 12 Jan 2024 07:39:02 +0000 (23:39 -0800)
committerCy Schubert <cy@FreeBSD.org>
Fri, 12 Jan 2024 07:42:33 +0000 (23:42 -0800)
commit3091cdb11fb05e554a54710116be87ee1f55c287
treea052b6300197a5ecc389d236d9f98afda107bb96
parent91dc2374661d717a30d646e5c4200508dfd24a4c
Revert "kerberos: Fix numerous segfaults when using weak crypto"

This revision breaks Linux and MacOS cross builds because
TARGET_ENDIANNESS is not define during bootstrapping on these
platforms.

I think the correct approach would be to separate the new
fbsd_ossl_provider_load() and unload functions into their own
library (instead of libroken). This avoids the less desirable
option of including bsd.cpu.mk in secure/lib/Makefile.common,
which does build but could complicate future work.

Reported by: jrtc27

This reverts commit cb350ba7bf7ca7c4cb97ed2c20ab45af60382cfb.
13 files changed:
Makefile.inc1
crypto/heimdal/lib/kadm5/create_s.c
crypto/heimdal/lib/kadm5/kadm5_locl.h
crypto/heimdal/lib/krb5/context.c
crypto/heimdal/lib/krb5/crypto.c
crypto/heimdal/lib/krb5/salt.c
crypto/heimdal/lib/roken/version-script.map
kerberos5/include/crypto-headers.h
kerberos5/include/fbsd_ossl_provider.h [deleted file]
kerberos5/lib/libroken/Makefile
kerberos5/lib/libroken/fbsd_ossl_provider_load.c [deleted file]
kerberos5/libexec/kdc/Makefile
share/mk/src.libnames.mk