HomeFreeBSD

libmd, kern, stand: consolidate md5 implementations (NFC)

Description

libmd, kern, stand: consolidate md5 implementations (NFC)

Reduce the number of md5c.c between the three of these from two to one
by just reaching into the kernel build for both userland builds. The
precedent for this already exists for sha2 in both cases.

_libmd_ symbol privatization bits have been moved to sys/md5.h and
md5.h remains to #include <sys/md5.h> for compatibility.

This stops exporting MD5Pad() in the process because the kernel stopped
exporting it in 502a35d60f4c. soversion is bumped accordingly.

This also renames the libc version of stack_protector.c; it previously
only worked by coincidence because .PATH ordering worked out such that
we got the right one, but this is not the case anymore. Remove the
landmine.

PR: 280784 (exp-run)
Reviewed by: allanjude, delphij
Differential Revision: https://reviews.freebsd.org/D34497

Details

Provenance
kevansAuthored on Mar 8 2022, 3:39 PM
Reviewer
allanjude
Differential Revision
D34497: libmd, kern, stand: consolidate md5 implementations (NFC)
Parents
rG9ba8670a8b17: cxgbe(4): Allow t4_tom to be unloaded safely.
Branches
Unknown
Tags
Unknown