History log of /freebsd-current/lib/libmd/md5.h
Revision Date Author Comments
# 2a63c3be 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c comment pattern

Remove /^/[*/]\s*\$FreeBSD\$.*\n/


# 8254c3c5 18-Oct-2016 Alan Somers <asomers@FreeBSD.org>

Fix C++ includability of crypto headers with static array sizes

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


# de13c242 17-Oct-2016 Ed Maste <emaste@FreeBSD.org>

libmd: introduce functions that operate on an fd instead of filename

Reviewed by: allanjude, cem
MFC after: 2 months
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8264


# c6b03be1 26-May-2016 Conrad Meyer <cem@FreeBSD.org>

libmd: Work around C++'s inability to understand C

Reported by: antoine@ (x265)


# 55b13095 10-May-2015 Thomas Quinot <thomas@FreeBSD.org>

Unbreak build following rev. 282726

(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


# 9d8b6686 10-May-2015 Thomas Quinot <thomas@FreeBSD.org>

Ensure libmd symbols do not clash with libcrypto

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 76516938 22-Dec-1996 Poul-Henning Kamp <phk@FreeBSD.org>

Just pick up the real thing from <sys/md5.h>


# 40060a90 22-Oct-1996 Poul-Henning Kamp <phk@FreeBSD.org>

close bin/1648 libmd not 64bit safe.

if something fails to compile now, you need to add #include <sys/types.h>

Partially Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>


# c60e2168 10-Dec-1995 Peter Wemm <peter@FreeBSD.org>

Add a structure definition to the MD* Contexts, so that cvs can use
the standard libmd version of MD5 instead of it's own seperate copy..


# 05f65b29 12-Jul-1995 Poul-Henning Kamp <phk@FreeBSD.org>

Change this to do what it should have done from the start.
Add argument for buffer for output.
Fix manuals.


# 4385de16 07-Nov-1994 Poul-Henning Kamp <phk@FreeBSD.org>

Added "const" to the arguments here and there.


# c9502b53 23-Jul-1994 Poul-Henning Kamp <phk@FreeBSD.org>

Reviewed by: phk
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.