aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/md5.h
Commit message (Collapse)AuthorAgeFilesLines
* libmd, kern, stand: consolidate md5 implementations (NFC)Kyle Evans2024-09-301-40/+0
| | | | | | | | | | | | | | | | | | | | | 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
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Fix C++ includability of crypto headers with static array sizesAlan Somers2016-10-181-8/+0
| | | | | | | | | | | | | | | | | | | | C99 allows array function parameters to use the static keyword for their sizes. This tells the compiler that the parameter will have at least the specified size, and calling code will fail to compile if that guarantee is not met. However, this syntax is not legal in C++. This commit reverts r300824, which worked around the problem for sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can be used in headers as a static array size, but will still compile in C++ mode. Reviewed by: cem, ed MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8277 Notes: svn path=/head/; revision=307584
* libmd: introduce functions that operate on an fd instead of filenameEd Maste2016-10-171-0/+6
| | | | | | | | | | Reviewed by: allanjude, cem MFC after: 2 months Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D8264 Notes: svn path=/head/; revision=307521
* libmd: Work around C++'s inability to understand CConrad Meyer2016-05-271-0/+8
| | | | | | | Reported by: antoine@ (x265) Notes: svn path=/head/; revision=300824
* Unbreak build following rev. 282726Thomas Quinot2015-05-101-0/+18
| | | | | | | | | | | | | | | | | (Makefile.inc1): add dependency of xinstall on libmd to avoid failure of parallel bootstrap. (lib/libmd/*.h): do not redefine symbols if already defined as macros (libcrypt uses the same sources internally, redefining symbols with a prefix of its own). Fixes build failures caused by previous change to libmd. Reported by: ian Pointy hat to: thomas Notes: svn path=/head/; revision=282736
* Ensure libmd symbols do not clash with libcryptoThomas Quinot2015-05-101-0/+19
| | | | | | | | | | | | | | | | Add a prefix to all symbols in libmd to avoid incompatibilites with same-named, but not binary compatible, symbols from libcrypto. Also introduce Weak aliases to avoid the need to rebuild dependent binaries and a major version bump. PR: 199119 Differential Revision: D2216 Reviewed by: roberto, delphij MFC after: 2 weeks Notes: svn path=/head/; revision=282726
* Just pick up the real thing from <sys/md5.h>Poul-Henning Kamp1996-12-221-39/+1
| | | | Notes: svn path=/head/; revision=20787
* close bin/1648 libmd not 64bit safe.Poul-Henning Kamp1996-10-221-2/+2
| | | | | | | | | if something fails to compile now, you need to add #include <sys/types.h> Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov> Notes: svn path=/head/; revision=19099
* Add a structure definition to the MD* Contexts, so that cvs can usePeter Wemm1995-12-111-1/+1
| | | | | | | the standard libmd version of MD5 instead of it's own seperate copy.. Notes: svn path=/head/; revision=12762
* Change this to do what it should have done from the start.Poul-Henning Kamp1995-07-121-3/+3
| | | | | | | | Add argument for buffer for output. Fix manuals. Notes: svn path=/head/; revision=9488
* Added "const" to the arguments here and there.Poul-Henning Kamp1994-11-071-2/+2
| | | | Notes: svn path=/head/; revision=4245
* Reviewed by: phkPoul-Henning Kamp1994-07-241-0/+42
Imported libmd. This library contains MD2, MD4 and MD5. These three boggers pop up all over the place all of the time, so I decided we needed a library with them. In general they are used for security checks, so if you use them you want to link them static. Notes: svn path=/cvs2svn/branches/ORIG/; revision=1802