Commit graph

193 commits

Author SHA1 Message Date
Poul-Henning Kamp c6bcf724da Split the padding out into a separate function.
Synchronize the kernel and libmd versions of md5c.c

PR:		misc/6127
Reviewed by:	phk
Submitted by:	Ari Suutari <ari@suutari.iki.fi>
1998-03-27 10:23:00 +00:00
Bruce Evans c8151f7b9b Don't use the beforedepend target. It was a no-op here except for
helping bsd.dep.mk break `make -jN depend'.
1998-03-19 15:27:08 +00:00
Philippe Charnier a5941fc2aa .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq 1998-03-19 07:34:22 +00:00
Peter Wemm 1840bd1444 If not building a.out, still build a pic version of libmd. This allows
things like libskey.so to be dynamically self contained.

Things like md5(1) where speed is critical should still link with libmd.a,
but for things like login, where it's a once-off call if skey is used, it's
not worth the hassle.
1997-09-05 11:49:43 +00:00
Joerg Wunsch f778764443 Make the MD* header files C++-aware. Also, string arguments are supposed
to be of type `const char *'.

PR:		3291
Submitted by:	dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
1997-08-25 05:24:31 +00:00
Bruce Evans 09589ca82e FIxed arg types (mostly missing consts) in synopsis. 1997-03-19 00:52:58 +00:00
Peter Wemm 7e546392b5 Revert $FreeBSD$ to $Id$ 1997-02-22 15:12:41 +00:00
Jordan K. Hubbard 1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Poul-Henning Kamp 76516938fa Just pick up the real thing from <sys/md5.h> 1996-12-22 10:32:17 +00:00
Poul-Henning Kamp 15cfc283d8 Make this compile in the kernel too, major cosmetic cleanup. 1996-12-22 10:27:25 +00:00
Bruce Evans 1ab6205ce1 Moved #include of <sys/types.h> earlier so that this compiles when
<stdio.h> doesn't (bogusly) include <sys/types.h>.

Cleaned up #includes.
1996-10-25 06:48:29 +00:00
Poul-Henning Kamp 52377df350 Add #include <sys/types> 1996-10-22 16:28:56 +00:00
Poul-Henning Kamp 40060a90b9 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>
1996-10-22 16:27:47 +00:00
Garrett Wollman 04422105e3 Use -mdoc macros properly.
Translate from Danglish into English.
Refer to the alogrithms as ``RSA Data Security MDX message digest'' as
required by the license.
1996-10-09 21:00:48 +00:00
Peter Wemm 62217f350b cmp -s || install -c ==> install -C, use a .for loop 1996-08-30 01:53:09 +00:00
Mike Pritchard 6c65d95969 Some minor man page cleanup. 1996-08-23 20:52:53 +00:00
Poul-Henning Kamp 8bc66d9bd2 Fix a memory leak in MD[245]End()
Submitted by:	Ikuo Nakagawa <ikuo@isl.intec.co.jp>
PR:	misc/1424
1996-07-24 20:55:38 +00:00
John Polstra 228a10153e Correct two errors in the manual page. 1996-05-28 18:57:31 +00:00
Poul-Henning Kamp c896bf9116 Don't install mdX.3, it's the template used to build the other pages. 1996-02-09 22:44:44 +00:00
Poul-Henning Kamp 5dc3e051ab Bill was a little to fast here... 1996-02-09 20:57:53 +00:00
Mike Pritchard 6fad16fd59 Add some missing MLINKS, correct some cross references, correct some
file locations and some minor formatting/style problems.
1996-02-09 16:20:10 +00:00
Mike Pritchard c211e812bb Added some missing MLINKS for section 3 man pages.
Also corrected a few minor formatting errors, file location and cross
references in some of the section 3 man pages.

This shuts up a lot of the output from "manck" for section 3.
1996-02-09 00:45:45 +00:00
Peter Wemm c60e216884 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..
1995-12-11 02:18:22 +00:00
David Greenman d49b5c24e6 Back out that last change; we don't build this shared. 1995-09-06 14:34:50 +00:00
David Greenman ed79e03022 Bumped shared lib rev to 2.1. 1995-09-06 14:27:07 +00:00
Bruce Evans 48cfb668fc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.

Previously I missed dozens of Makefiles that skip the install after
using `cmp -s' to decide that the install isn't necessary.
1995-08-06 12:24:38 +00:00
Poul-Henning Kamp 05f65b296e Change this to do what it should have done from the start.
Add argument for buffer for output.
Fix manuals.
1995-07-12 09:13:49 +00:00
Rodney W. Grimes 6c06b4e2aa Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
Garrett Wollman 003d29986d No sense in copying the hex[] array in each call to MDXEnd(), it's a
constant.  (There probably ought to be a single libc version of it.)
1995-04-27 16:05:51 +00:00
Poul-Henning Kamp 6c20486de4 Clean a bunch of -Wall warnings. 1995-02-24 08:51:34 +00:00
Poul-Henning Kamp d66cc71bb5 Speed md5 up around 30% by shorting out a couple of cumbersome
memcpy equivalent functions.
1995-02-21 06:01:49 +00:00
Jordan K. Hubbard f932e96d48 Eliminate a bogus tab. 1995-01-24 00:13:56 +00:00
Poul-Henning Kamp 4385de1699 Added "const" to the arguments here and there. 1994-11-07 20:48:35 +00:00
Paul Traina a78d3e072d Clean up beforeinstall 1994-11-01 09:14:39 +00:00
Poul-Henning Kamp 345ee1c674 Added beforeinstall rule to install .h files. We might need some .mk
support for this kind of thing.  Look at src/Makefile target "includes".
1994-09-19 05:30:33 +00:00
Poul-Henning Kamp 9d8044d0d9 libmd no longer built as shared-lib, only static.
Renamed the beforeinstall to test.
1994-09-18 07:22:08 +00:00
Bruce Evans a9d26259dd Build *.3 and *.ref at build time, not at install time. 1994-09-08 11:24:54 +00:00
Jordan K. Hubbard 5fb32aaddf Make mddriver static.
Submitted by:	jkh
1994-09-04 02:40:31 +00:00
Bruce Evans d160679a5d Use ${LDFLAGS} instead of static for compiling binaries. Neither is
sufficient for cross compiling but it's best to test with the flags
normally used.

Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
1994-08-28 17:45:25 +00:00
Paul Richards 0609e634fe Added ${.CURDIRb to vuilding of man pages so it works with obj
Submitted by:	Paul Richards
1994-08-25 13:33:35 +00:00
Jordan K. Hubbard 7105368244 Boy, was *this* ever bollixed!
1. Copyright files looked for in the wrong place

2. cmp was looking in wrong place for test data.

3. Driver for test not linked static, thus dynamic resolution of library
   not working.

4. Man page installation not consistent with source.

Reviewed by:
Submitted by:	jkh
1994-08-08 19:22:14 +00:00
Garrett Wollman 0abc7bfc94 Make obj directory work right. md?hl.c should probably be
deleted, but I'll leave that up to PHK.
1994-08-04 21:20:03 +00:00
Poul-Henning Kamp c9502b535e 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.
1994-07-24 03:29:56 +00:00