Commit Graph

10 Commits

Author SHA1 Message Date
bjh21 bcaedc129c Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
not being in the host libc.
This will be necessary to make cksum into a host tool.
2002-03-31 12:58:54 +00:00
mycroft 605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem d896261208 back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
kleink 279f31c6ee Partially revert previous change: the assertions made in utility functions
defined with file scope only are redundant, and will never fail.
1999-09-17 09:25:34 +00:00
lukem b48252f365 * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
  and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

		_DIAGASSERT(path != NULL)
	#ifdef _DIAGNOSTIC
		if (path == NULL) {
			errno = EFAULT;
			return (-1);
		}
	#endif
1999-09-16 11:44:54 +00:00
christos 2c89343c25 delint 1998-11-13 15:46:52 +00:00
kleink 1070537dd5 Need internal names for MD[45]{Init,Final,Update}(). 1998-10-20 17:04:45 +00:00
mycroft 423c2aade7 constify some tables. 1998-07-26 11:38:24 +00:00
thorpej 3fd6710857 Liberal application of suggestions in /usr/share/misc/style. 1997-04-30 00:36:22 +00:00
thorpej e176fc8fc9 Add MD4/MD5 routines to the C library, taken directly from FreeBSD's
"libmd".
1997-01-30 01:01:39 +00:00